LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Networking (http://www.linuxquestions.org/questions/forumdisplay.php?f=3)
-   -   iptables DNAT rules error? (http://www.linuxquestions.org/questions/showthread.php?t=4175443481)

shams 12-30-2012 10:24 AM

iptables DNAT rules error?
 
This is the DNAT rule but get error with the iptables-restore in debian wheezy:
Quote:

-A PREROUTING -i ipsec0 -p udp --sport 1701 --dport 1701 -j DNAT --to 192.168.1.1

eSelix 12-30-2012 12:06 PM

You need choose a nat table by "-t nat" for PREROUTING. Check also if argument "--to-destination" works instead of "--to"


All times are GMT -5. The time now is 04:46 PM.