[Gllug] local DNS with smoothwall or IPcop?

Simon A. Boggis simon at dcs.qmul.ac.uk
Wed Nov 13 14:27:24 UTC 2002


Oops, whilst cutting and pasting those together I lost the "-p tcp"
which would be needed with "--dport 80".

Simon

On Wed, 2002-11-13 at 13:34, Simon A. Boggis wrote:
> iptables -t nat -I PREROUTING 1 -d 1.2.3.4 --dport 80 -j DNAT
                                             ^ insert "-p tcp"
> --to-destination 5.6.7.8

> 
> iptables -t nat -I POSTROUTING 1 -d 5.6.7.8 --dport 80 -j SNAT
                                             ^ insert "-p tcp"
> --to-source 5.6.7.254

> If you want to redirect all traffic remove the "--dport 80"
                                                  ^ insert "-p tcp"

-- 
----------------------------------------------------------------------
Dr Simon A. Boggis                                  Systems Programmer
Department of Computer Science,                     Tel. 020 7882 7522
Queen Mary, University of London, London E1 4NS UK. 
---- GPG public key <http://www.dcs.qmul.ac.uk/~simon/#publickey> ----


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list