[PLUG] Need to redirect traffic.
Doug Porter
porterds@purdue.edu
Wed, 30 Aug 2000 10:37:35 -0500
i have tried to do something very similar to this before, and there was
no way i could get ipchains to redirect to another host. it seems to
only redirect to another local port. i did however find a program called
transproxy that worked very well. good luck.
http://www.transproxy.nlc.net.au/
- doug porter <porterds@purdue.edu>
Richard June wrote:
>
> 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.
>
> ____________________________________________________
> The Purdue Linux Users' Group (PLUG) mailing list.
> plug mailing list - plug@csociety.purdue.edu
> http://csociety.ecn.purdue.edu/mailman/listinfo/plug