Hi,

I am newbie with Iptables.

I try to do a 3 way Firewall with IPtables.

I have a eth0(LAN) with 10.0.0.0/24
a eth1(Internet) with 1.2.3.114/30
a eth2 (DMZ) with 1.2.3.126/28

I did a

iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth1 -j MASQUERADE
iptables -A PREROUTING -t nat -d 1.2.3.118 -j DNAT --to 10.0.0.15

I can connect to 1.2.3.118 from Internet but if i want to access internet
from 10.0.0.15 I go outside with 1.2.3.114
How to correct my rules to get outside acces with my NAT'ed' IP.?


Reply via email to