Skip to contentSkip to conversation

my DNAT not working...help

DISCUSSION [email protected] 2 participants 2 messages Apr 30, 2007 – May 2, 2007

lore
Share & tools
lore
#0 lore raw

Hi my DNAT is no longer working?

This used to work on kernel 2.6.10 FC3, i am now running kernel 2.6.18 on CentOS5 due to hardware upgrade

These are my nat rules ..

iptables -t nat -A POSTROUTING -o eth1 -s 10.22.200.25 -j SNAT --to 172.15.0.15 iptables -t nat -A PREROUTING -i eth1 -d 172.15.0.15 -j DNAT --to 10.22.200.25

I can see my traffic getting natted to 172.15.0.15 but though a tcpdump but not back to 10.22.200.25 any ideas?

#1 lore raw

Hi,

maybe try

route add default gw 10.x.x.x .... what is default gateway for 10.22.200.25 host ( or for that network ) .....
please copy/paste route -n on host 10.22.200.25

Regards

Elvir Kuric

Quoted 18 lines · On 4/30/07, [email protected] <[email protected]> wrote:

Hi my DNAT is no longer working?

This used to work on kernel 2.6.10 FC3, i am now running kernel 2.6.18 on
CentOS5 due to hardware upgrade

These are my nat rules ..

iptables -t nat -A POSTROUTING -o eth1 -s 10.22.200.25 -j SNAT --to
172.15.0.15
iptables -t nat -A PREROUTING -i eth1 -d 172.15.0.15 -j DNAT --to
10.22.200.25

I can see my traffic getting natted to 172.15.0.15 but though a tcpdump but
not back to 10.22.200.25
any ideas?