Skip to contentSkip to conversation

DNAT on iptables

DISCUSSION Natarajan E 1 participant 1 message Aug 4, 2003

lore
Share & tools
lore
#0 lore raw

Hi Harald,

i use iptables 1.2.8 , & i have to give a static nat for three different ip in my internal network with 3 different external IPs for example

    172.16.0.134  --> mapped to 210.x.x.2
    172.16.0.138 -->  mapped to 210.x.x.3
     172.16.0.139 --> mapped to 210.x.x.4, 

i added the following in PREROUTING
iptables -t nat -A PREROUTING -d 210.x.x.2 -j DNAT --to-destination 172.16.0.134, similarly for other 2 also.. when i tried this , i was not able to reach the internal ip.

Inside segment 172.16.0.0/24--eth1
outside ip address 202.x.x.212--eth0

Please Help ME ! ! ! .
Thanks in advance

Regards
Natraj.E
SIFY LTD.,
Tidal Park
Chennai

Ph : 91-44-
Mobile: 98402-65831

Signature · 5 lines
______________________________________________
http://www.india.com
Now with POP3/SMTP access for only US$14.95/yr

Powered by Outblaze