MASQUERADE
Hi,
Is there any different way to do MASQUERADE in kernel 2.6.3-7 with iptables v1.2.9?
I get,
# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE iptables: Invalid argument
A quick look at the man page did not suggest anything. Any ideas to what is missing?
With warm regards,
-Payal
Quoted 5 lines · Payal Rathod
Hi,
Is there any different way to do MASQUERADE in kernel 2.6.3-7 with iptables v1.2.9?
I get,
Quoted 9 lines
# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE iptables: Invalid argumentA quick look at the man page did not suggest anything. Any ideas to what is missing?
With warm regards,
-Payal
First of all I'd like to say that I'm in no way an expert but are you sure that you have the right stuff compiled in kernel or as modules? In 2.6.7 I had to select to compile MASQUERADE in the kernel, same thing with the mangle table if I remember correctly.
--
Erik Wikström
Quoted 9 lines · Erik Wikström
Quoted 8 lines · Payal Rathod
Hi,
Is there any different way to do MASQUERADE in kernel 2.6.3-7 with iptables v1.2.9?
I get,# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE iptables: Invalid argument
Quoted 7 lines
Quoted 2 lines
A quick look at the man page did not suggest anything. Any ideas to what is missing?
First of all I'd like to say that I'm in no way an expert but are you sure that you have the right stuff compiled in kernel or as modules? In 2.6.7 I had to select to compile MASQUERADE in the kernel, same thing with the mangle table if I remember correctly.
I see no reason not to compile everything you need for netfilter into the
kernel (instead of building as modules). That way you know all the support
is there from bootup, nothing can be removed through forgetfulness or malice, and you don't have to worry about whether A depends on B, depends on C, etc..
Sure, if you want to use a new feature you didn't previously build, you need to recompile the kernel and do a reboot, but in most cases that should be (a) infrequent, and (b) pretty simple.
Regards,
Antony.
Signature · 10 lines
In Heaven, the police are British, the chefs are Italian, the beer is Belgian,
the mechanics are German, the lovers are French, the entertainment is
American, and everything is organised by the Swiss.
In Hell, the police are German, the chefs are British, the beer is American,
the mechanics are French, the lovers are Swiss, the entertainment is Belgian,
and everything is organised by the Italians.
Please reply to the list;
please don't CC me.Thanx to both of you for these answers.
Here is my goal: install iptables 1.2.11 on Fedora Core 2. I need new features that are not in original package.
what I don't understand is why I can't compile it on my system.
It says also having problem with /usr/include/linux/autoconf.h which is file from glibc_kernheaders package. This is up to date !
Well well.
I don't know what to do ! It is not the first time that I compile iptables, even if my previous experiences was with 2.4 kernel.
Wilfried
Quoted 46 lines · Antony Stone
Quoted 9 lines · Erik Wikström
Quoted 8 lines · Payal Rathod
Hi,
Is there any different way to do MASQUERADE in kernel 2.6.3-7 with iptables v1.2.9?
I get,# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE iptables: Invalid argumentQuoted 7 lines
Quoted 2 lines
A quick look at the man page did not suggest anything. Any ideas to what is missing?
First of all I'd like to say that I'm in no way an expert but are you sure that you have the right stuff compiled in kernel or as modules? In 2.6.7 I had to select to compile MASQUERADE in the kernel, same thing with the mangle table if I remember correctly.
I see no reason not to compile everything you need for netfilter into the
kernel (instead of building as modules). That way you know all the support
is there from bootup, nothing can be removed through forgetfulness or malice, and you don't have to worry about whether A depends on B, depends on C, etc..Sure, if you want to use a new feature you didn't previously build, you need to recompile the kernel and do a reboot, but in most cases that should be (a) infrequent, and (b) pretty simple.
Regards,
Antony.
--
In Heaven, the police are British, the chefs are Italian, the beer is Belgian, the mechanics are German, the lovers are French, the entertainment is American, and everything is organised by the Swiss.In Hell, the police are German, the chefs are British, the beer is American, the mechanics are French, the lovers are Swiss, the entertainment is Belgian, and everything is organised by the Italians.
Please reply to the list;
please don't CC me.
Hi,
Quoted 2 lines · Antony Stone
Sure, if you want to use a new feature you didn't previously build, you need to recompile the kernel and do a reboot, but in most cases that should be (a)
The issue was that iptables was not started (???). I had to do /etc/init.d/iptables start and then it worked pretty well.
Now any ideas why?
-Payal
Hi,
On Fri, 9 Jul 2004 12:35:13 +0200, Erik Wikström
Quoted 4 lines
First of all I'd like to say that I'm in no way an expert but are you sure that you have the right stuff compiled in kernel or as modules? In 2.6.7 I had to select to compile MASQUERADE in the kernel, same thing with the mangle table if I remember correctly.
I used the default RPM package which came with the Mandrake 10.0 official distro.
-Payal