LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2013, 05:40 AM   #1
sahods
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
iptables command returned with an error


Hi

While using Enterprise Linux 2.16.0, I keyed in the command

iptables -t nat -A PREROUTING -d 192.168.4.42/32 -j DNAT -to-destination 10.1.4.1
. I received the message - Bad argument '10.1.4.1' try 'iptables -h' or 'iptables --help' for more information.

Any thoughts on why I am having a hard time in trying out the recommendation in http://thewiringcloset.wordpress.com...ble-snat-dnat/

Kind regards

Last edited by sahods; 12-05-2013 at 10:34 AM.
 
Old 12-04-2013, 06:45 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,688

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by sahods View Post
Hi

I While using Enterprise Linux 2.16.0, I keyed in the command

iptables -t nat -A PREROUTING -d 192.168.4.42/32 -j DNAT -to-destination 10.1.4.1
. I received the message - Bad argument '10.1.4.1' try 'iptables -h' or 'iptables --help' for more information.
The to-destination parameter requires two hyphens: --to-destination. I haven't tried it out, but could this be the cause of your trouble?
 
1 members found this post helpful.
Old 12-05-2013, 10:33 AM   #3
sahods
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up Thanks

Many thanks. Your suggestion worked for me.

Quote:
Originally Posted by sahods View Post
Hi

While using Enterprise Linux 2.16.0, I keyed in the command

iptables -t nat -A PREROUTING -d 192.168.4.42/32 -j DNAT -to-destination 10.1.4.1
. I received the message - Bad argument '10.1.4.1' try 'iptables -h' or 'iptables --help' for more information.

Any thoughts on why I am having a hard time in trying out the recommendation in http://thewiringcloset.wordpress.com...ble-snat-dnat/

Kind regards
 
  


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
building sge-8.1.3 error - collect2: error: ld returned 1 exit status Reignfire Linux - Software 0 05-08-2013 02:45 PM
[SOLVED] IPtables&routing on an Untangle box, need some advice, traffic not being returned scheidel21 Linux - Networking 3 09-02-2010 09:57 AM
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 06:25 AM
Error KDE SU permission problem - Su returned with an error. Yaste and SU compromise. mrukjames SUSE / openSUSE 3 06-15-2009 08:01 PM
hostname command returned (none) sigmacunfu Linux - Newbie 5 09-26-2006 12:18 AM


All times are GMT -5. The time now is 07:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration