LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-21-2003, 09:52 PM   #1
benleung
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Unhappy [ Invalid Argument on 'iptables' ]


I am using Gentoo Linux with Kernel 2.4.20-r7 with iptables v.1.2.8, I tried to execute a command :

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

iptables: Invalid argument <---------- I got this.

========== quoted from 'lsmod' ==========
ipt_LOG 3384 4 (autoclean)
ipt_MASQUERADE 1336 0 (autoclean)
iptable_filter 1740 1 (autoclean)
iptable_mangle 2136 0 (autoclean) (unused)
========================================

I checked the folder '/lib/modules/2.4.20-gentoo-r7/kernel/net/ipv4/netfilter' and found these modules on my Gentoo

-rw-r--r-- 1 root root 3436 Sep 21 17:05 iptable_filter.o
-rw-r--r-- 1 root root 3780 Sep 21 17:05 iptable_mangle.o

When I checked the same path with my SuSE 8.0 and got :

-rw-r--r-- 1 root root 3256 Mar 27 2002 iptable_filter.o
-rw-r--r-- 1 root root 3660 Mar 27 2002 iptable_mangle.o
-rw-r--r-- 1 root root 22263 Mar 27 2002 iptable_nat.o

It seems a module 'iptable_nat.o' is missing on my Gentoo; and I did not compile the kernel for my SuSE box -- the kernel from the original package. I am sure the 'iptables' relative options already chosen before I compiled the kernel.

I checked the 'How-To' and help for iptables and did not get any help.

Any help ?

Thanks
 
Old 09-23-2003, 12:25 AM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
I would probably recompile the kernel and make sure it has nat compiled as a module or built it
 
  


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
Accept(): Invalid Argument bonhomme Programming 6 07-14-2012 10:12 PM
Iptables, invalid argument, problem with modprobe ivanatora Linux - Software 1 05-11-2005 05:55 AM
alsamixer invalid argument subaruwrx Linux - Software 1 03-12-2005 01:34 PM
KDSKBENT: Invalid Argument tommytomato Linux - Newbie 6 08-27-2004 10:23 PM
xawtv - invalid argument liguorir Linux - Software 0 06-17-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:08 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