[PLUG] Need to redirect traffic.

Richard June rjune@ims1.imagestream-is.com
Wed, 30 Aug 2000 10:05:51 -0500 (EST)


I have a setup like this.
      Server connected to the internet.
      v
-----[ ]------() 
           |   ^
           |   Proxy machine.
          { }
           ^
           Network.

Every computer in the network (172.17.0.0/16) uses the server for their
default gw (172.17.0.1) i want to grab all the web traffic and redirect it
to the proxy machine(172.17.0.90) what is it I would have to do get this
to work? I've tried redir, with no success, and marking the traffic then
picking it out with the mfw module for ipmasqadm. the system is kernel
2.2.6 and I've compiled in all the stuff that ipmasqadm says it needs. but
to no avail.

here's what I did to try redir.
/sbin/ipchains -A input -p TCP -d 192.168.100.144/32  -j ACCEPT
/sbin/ipchains -A input -p TCP -s 192.168.100.0/25 -d 0/0 www -j REDIRECT\ 
3128
redir --lport 3128 --caddr=192.168.100.1 --cport=23 --syslog --name=REDIR --debug

No packets showed up to redir.
Any pointers would be appreciated.