Jump to content

iptables: where is the invalid argument?


Guest rflovato
 Share

Recommended Posts

Guest rflovato

Hi,

 

Where are the invalid argument?:

 

[root@localhost root]# iptables -A POSTROUTING -t nat -j SNAT --to-source 200.219.169.201 -s 172.16.9.0/24 -o eth0

iptables: Invalid argument

 

[root@localhost root]# uname -a

Linux localhost 2.6.3-7mdk #1 Wed Mar 17 15:56:42 CET 2004 i686 unknown unknown GNU/Linux

 

In the kernel 2.4 of the same Mandrake 10, it's work!!!

 

I'm always used this without problems.

 

Thanks

 

Roger

 

ps: with other distros with kernel 2.6, this line works normally.

Link to comment
Share on other sites

It looks like iptables is

 

A) Not installed

 

B) Not in your PATH

 

 

 

Type as root 'updatedb' then 'slocate iptables' then 'set' to check if iptables is in a directory in your path. (it's normally in /sbin)

 

Also make sure that iptables is running as a service..

Edited by thinkliberty
Link to comment
Share on other sites

  • 2 months later...
Also make sure that iptables is running as a service..

I know this is old - but I've just dealt with the same problem...

This last point is the clincher - ensuring iptables is running as a service.

If iptables wasn't in the PATH or wasn't installed - command not found errors would've been returned.

ty

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...