Hi,all I have write a module for DNAT to achieve the purpose as follows: iptables -A PREROUTING -t nat -p udp -d 159.226.1.1 --dport 5001 -j DNAT --to 192.168.1.2:8888 my code is in http://lists.samba.org/pipermail/netfilter-devel/2002-June/004621.html The expected conntrack in "/proc/net/ip_conntrack" I set up is "EXPECTING: proto=17 src=0.0.0.0 dst=159.226.1.1 sport=0 dport=5001" I don't know if my conntrack is correct here? Then in nat module, fill the ip_nat_multi_range struct with 192.168.1.2:8888,but no DNAT happened:-( I am too worried now,somebody can help me ?
Thanks! luoqiang