Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-30-2012, 10:24 AM   #1
Registered: Jan 2004
Posts: 463

Rep: Reputation: 30
iptables DNAT rules error?

This is the DNAT rule but get error with the iptables-restore in debian wheezy:
-A PREROUTING -i ipsec0 -p udp --sport 1701 --dport 1701 -j DNAT --to
Old 12-30-2012, 12:06 PM   #2
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,261

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables rules with some error nadvig Linux - Newbie 1 07-10-2012 07:23 PM
[SOLVED] How to DNAT with iptables jshailes Linux - Networking 2 12-29-2011 07:58 PM
IPTables trouble with DNAT target (bad argument error) Eightpock Linux - Software 9 06-16-2008 10:36 AM
iptables with dnat mhm Linux - Networking 3 12-31-2007 07:10 AM
Rules before DNAT Jacky1668 Linux - Security 2 05-17-2004 10:16 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration