I have the following problem :
I want to have host X in LAN A visible in LAN B with an IP of then LAN B
LAN A: 192.168.100.0
HOST X: 192.168.100.10
LAN B: 192.168.254.0
IP : 192.168.254.6
on the router between LAN A & B :
arp -s 192.168.254.6 xx:xx:xx:xx:xx:xx pub
ipnatadm -o -I -i -b -S 192.168.100.10/32 -M 192.168.254.6/32
on the HOST X, if I ping a host (192.168.254.2) on the lan B :
IP NAT out (before) eth1 ICMP/0 src:192.168.100.10 dst:192.168.254.2 nat-src:192.168.254.6 nat-dst:0.0.0.0 L=84 S=0x00 I=1163 F=0x0000 T=255
IP NAT out (after) eth1 ICMP/0 src:192.168.254.6 dst:192.168.254.2 nat-src:192.168.254.6 nat-dst:0.0.0.0 L=84 S=0x00 I=1163 F=0x0000 T=255
then there is no echo.
Why the nat-dst is at 0.0.0.0 ?
The host X cannot ping the router when the nat rule is set but without the nat rule, the ping is ok.
I have tried with 2.0.36 and 2.2.5 kernel...