a way to forward packets to another gateway?

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

 



	Is there a way of forwarding certain types of packets to another 
gateway on the same LAN?
	For example I have 2 gateways on the same network (10.0.0.1 & 
10.0.0.2), both are ADSLs and have a bunch of clients which are 
evenly masqueraded on them. There is Squid running on 10.0.0.1 and 
I'd like for the www connections comming from clients sitting on 
10.0.0.2 gateway to be redirected to squid on 10.0.0.1. 10.0.0.1 runs 
transparent proxy. It should be as simple as transmitting unchanged 
packets to another gateway on the receiving (internal to LAN) 
interface. Still I could not find a way to do such thing on 
linux/iptables.

	In FreeBSD there is ipfw rule which does the thing:
		ipfw fwd 10.0.0.1 tcp from some_client to any 80

	I'm open to any other remedies I don't know of (such as some kind of 
DNAT/SNAT). I.e. this is just my guess on how to make it work.

	Thanks
-- 
Saulius Menkevicius, razzmatazz@mail.lt on 2002.12.09




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux