On Tuesday 18 June 2002 8:43 am, luoqiang wrote: > Hi,all > > After reading the hacking howto and the code of ip_conntack_ftp.c and > ip_nat_ftp.c,I want to write a module for DNAT to achieve the purpose as > follows:
> iptables -A PREROUTING -t nat -p udp -d 159.226.1.1 --dport 5003 > -j DNAT --to 192.168.1.2:5003 Excuse my ignorance here, but why do you need to write a module for this ? Why can't you just do it with a rule such as the one you've written ? Antony.
