All of lore.kernel.org
 help / color / mirror / Atom feed
* SNAT from multiple interfaces with the same IP?
@ 2005-12-04 12:30 Carl-Daniel Hailfinger
  2005-12-04 15:31 ` Patrick McHardy
  0 siblings, 1 reply; 6+ messages in thread
From: Carl-Daniel Hailfinger @ 2005-12-04 12:30 UTC (permalink / raw)
  To: Netfilter Development Mailinglist

Hi,

some time ago, I read that netfilter is unable to perform SNAT
for identical ranges on different interfaces.

Scenario:

eth0: 192.168.0.1/16
eth1: 192.168.0.1/16
eth2: 10.2.0.1/8

iptables -t nat -A POSTROUTING -i eth0 -s 192.168.0.0/16 -j SNAT --to-source 10.0.0.0-10.0.255.255
iptables -t nat -A POSTROUTING -i eth1 -s 192.168.0.0/16 -j SNAT --to-source 10.1.0.0-10.1.255.255

Will that work or is connection tracking unable to differentiate
between the 192.168/16 subnets on eth0 and eth1? My problem is
that although the ranges on eth0 and eth1 are sparsely populated,
some IPs exist in both networks. Communication between the networks
on eth0 and eth1 is not necessary, I just want them to be able to
communicate with the outside (on eth2).

If this is not possible, is there a patch in POM or something else
with which I can achieve my goal with only one machine.


Regards,
Carl-Daniel

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

end of thread, other threads:[~2005-12-04 23:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-04 12:30 SNAT from multiple interfaces with the same IP? Carl-Daniel Hailfinger
2005-12-04 15:31 ` Patrick McHardy
2005-12-04 15:37   ` Herve Eychenne
2005-12-04 16:02     ` Patrick McHardy
2005-12-04 23:35       ` Herve Eychenne
2005-12-04 23:41         ` Patrick McHardy

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.