Why you don't maquerade the hole net?
 
 iptables -A POSTROUTING -t nat -s 10.105.105.0/24 -d 0.0.0.0/0.0.0.0 -o eth0 -j MASQUERADE
 
----- Original Message -----
From: Rimas
To: netfilter@lists.netfilter.org
Sent: Monday, September 09, 2002 2:56 PM
Subject: MASQUERADE for 2 Internet connections

Hi folks,
 
I have configured NAT for 1 Inet connection :
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE - working solution
 
I use 10.105.105.x internal IP addresing
 
Now I have a second one Inet connection (eth2).
 
How to make MASQUERADE like this:
1st Inet - MASQUERADE for 10.105.105.100-105
2nd Inet - MASQUERADE for 10.105.105.xx for all except 100-105
 
Basicly to use the same IP addresing for both Inet connections
 
 
 
Thanks in advance
 
Rimas