Reply To: NAT Pool

Home Page Forums Network Management ZeroShell NAT Pool Reply To: NAT Pool

#53748

redfive
Participant

I didn’t fully understand, but maybe, assuming your internal network 10.0.0.0/26, and the ETH01 as wan interface… don’t set any nat via gui, and in Nat and Virtual Servers script, add something like
iptables -t nat -A POSTROUTING -o ETH01 -s 10.0.0.0/27 -j DNAT –to-source 192.168.96.65
iptables -t nat -A POSTROUTING -o ETH01 -s 10.0.0.32/27 -j DNAT –to-source 192.168.96.66
First rule should translate the range 10.0.0.0/27 to 192.168.96.65 ip address, while the second one, should translate the range 10.0.0.32/27 to 192.168.96.66 ip address.
Regards