LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptables DNAT rules error? (https://www.linuxquestions.org/questions/linux-networking-3/iptables-dnat-rules-error-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 07:04 AM.