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, 04: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 09:34 AM.
 
Old 12-04-2013, 05:45 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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, 09: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 01:45 PM
[SOLVED] IPtables&routing on an Untangle box, need some advice, traffic not being returned scheidel21 Linux - Networking 3 09-02-2010 08: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 05:25 AM
Error KDE SU permission problem - Su returned with an error. Yaste and SU compromise. mrukjames SUSE / openSUSE 3 06-15-2009 07:01 PM
hostname command returned (none) sigmacunfu Linux - Newbie 5 09-25-2006 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:44 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
Open Source Consulting | Domain Registration