Need to redirect traffic.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux