[Gllug] local DNS with smoothwall or IPcop?
Steve Nicholson
yahoogroups at yoursolutions.com
Wed Nov 13 16:37:01 UTC 2002
Simon
Fantastic, thanks for you reply on this and for the update on the missing option. I'll have a quick look through the iptables man page and give it a try. I figure I should be able to do a script so I can easily login and turn it on/off as I require it.
Steve.
On 13 Nov 2002 14:27:24 +0000 Simon A. Boggis wrote:
> 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
>
>
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list