LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 12-30-2012, 11:24 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 400

Rep: Reputation: 30
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
 
Old 12-30-2012, 01:06 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,245

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


Reply


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 08:23 PM
[SOLVED] How to DNAT with iptables jshailes Linux - Networking 2 12-29-2011 08:58 PM
IPTables trouble with DNAT target (bad argument error) Eightpock Linux - Software 9 06-16-2008 11:36 AM
iptables with dnat mhm Linux - Networking 3 12-31-2007 08:10 AM
Rules before DNAT Jacky1668 Linux - Security 2 05-17-2004 11:16 PM


All times are GMT -5. The time now is 07:28 AM.

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