iptables question (was Re: Squid question)

M.W. Chang mwchang
Mon May 17 11:57:16 PDT 2004


to redirect localhost port 80, try this:

iptables -t nat -A PREROUTING -i lo -p tcp --dport 80 -j REDIRECT
--to-port 3128

note the -i is now lo not eth0.


-- 
  .~.    Might, Courage, Vision. In Linux We Trust.
 / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
  ^ ^    1:22pm up 5 days, 23:53, 0 users, load average: 1.02, 1.04, 1.16


More information about the Linux-users mailing list