iptables question (was Re: Squid question)
David A. Bandel
david
Mon May 17 11:57:17 PDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 24 Dec 2003 09:40:53 -0500
Tim Wunder <tim at thewunders.org> wrote:
> On Wednesday 24 December 2003 12:24 am, someone claiming to be M.W.
> Chang wrote:
> > to redirect localhost port 80, try this:
> >
> > iptables -t nat -A PREROUTING -i lo -p tcp --dport 80 -j REDIRECT
> > --to-port 3128
think. is the request coming _in_ or going _out_? It's going _out_ to
someplace else. Its destination (incoming to _them_) is IP:port,
xxx.xxx.xxx.xxx:80. so you're _half_ right (--dport 80). try -o lo for
_output_ device.
Ciao,
David A. Bandel
- --
Focus on the dream, not the competition.
Nemesis Racing Team motto
GPG key autoresponder: mailto:david_key at pananix.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/6alRj31PLQNUbV4RAtdOAJ0ZMNl7JA0gx+Hzf+HggG7maU9deACbB1Ky
zbUY/cJwhI/Ct+YWNS9g/q8=
=4iNY
-----END PGP SIGNATURE-----
More information about the Linux-users
mailing list