On Mon, 2004-08-16 at 12:24 +0400, Попов Игорь Николаевич wrote: > Hi All, > I have server, that connects my localnet to inet, clients connects to me via PPPoE (ppp[1-9]). I want to run squid on localhost and I want my clients to connect to it. > > Can somebody help me with redirect rules? > > > > Igor Popov <igorpopov@xxxxxxxxxx> > icq 241601876 > __________ > www.newmail.ru -- бесплатная почта, бесплатный хостинг. > iptables -t nat -A PREROUTING -i "name of interface" -p tcp -m tcp -- dport 80 -j REDIRECT --to-ports 3129 If your default policy is to DROP all INPUT/FORWARD as is it should be. iptables -A INPUT -i "name of interface" -p tcp -m tcp --dport 80 -j ACCEPT You can also use -s "ip address" instead of -i "name of interface". Also, you must put the rules in the proper order in the chain, so -A or -I depends on you. Ted