All of lore.kernel.org
 help / color / mirror / Atom feed
* is it possible with iptables
@ 2003-12-15  6:14 Hlynur Thor Olason
  2003-12-15  7:45 ` Cedric Blancher
  0 siblings, 1 reply; 2+ messages in thread
From: Hlynur Thor Olason @ 2003-12-15  6:14 UTC (permalink / raw)
  To: netfilter

Im trying to get local traffic from a linux box destined for the same box
routed through a test network.



further explanation:



I have 2 Ethernet cards in the linux box.


Call them eth0 with IP address 192.168.0.1    and

eth1 with IP = 192.168..0.2



eth1= 192.168.0.2 is connected to another computer a gateway which has the
IP address 192.168.0.3. This computer is then connected to an external
network which is again connected to eth0=192.168.0.1 in the first box.



Now the problem is I want to get locally generated packages in the box
destined for 192.168.0.2 (eth1 in the box) to leave the box and be routed
trough the network to the box again.



I have been trying to use iptables but not found a solution.



Any suggestion would be welcome?  / Thor



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: is it possible with iptables
  2003-12-15  6:14 is it possible with iptables Hlynur Thor Olason
@ 2003-12-15  7:45 ` Cedric Blancher
  0 siblings, 0 replies; 2+ messages in thread
From: Cedric Blancher @ 2003-12-15  7:45 UTC (permalink / raw)
  To: Hlynur Thor Olason; +Cc: netfilter

Le lun 15/12/2003 à 07:14, Hlynur Thor Olason a écrit :
> Im trying to get local traffic from a linux box destined for the same box
> routed through a test network.

You should have a look to iproute package, trying to play with advanced
routing stuff. Having a look at local routing table should be a good
start :

root@elendil:~# ip route list table local
[...]
local 192.168.1.2 dev eth0  proto kernel  scope host  src 192.168.1.2
[...]

Maybe deleting this kind of entries will achieve what you want.

-- 
http://www.netexit.com/~sid/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
>> Hi! I'm your friendly neighbourhood signature virus.
>> Copy me to your signature file and help me spread! 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-15  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-15  6:14 is it possible with iptables Hlynur Thor Olason
2003-12-15  7:45 ` Cedric Blancher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.