All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't load MASQUERADE module!
@ 2003-06-22 23:11 sean darcy
  0 siblings, 0 replies; only message in thread
From: sean darcy @ 2003-06-22 23:11 UTC (permalink / raw)
  To: netfilter

I'm trying to a simple NAT scripton a rh9 rawhide kernel:

/sbin/modprobe iptable_nat

/sbin/iptables -t nat     -F
/sbin/iptables -t nat     -A POSTROUTING -o  eth0        -j MASQUERADE

Which gives the error:

iptables: No chain/target/match by that name

or, if I plug in a -v :
MASQUERADE  all opt -- in * out eth0  0.0.0.0/0  -> 0.0.0.0/0
iptables: No chain/target/match by that name

But this works:

/sbin/iptables -t nat     -A POSTROUTING -o  eth0     -j SNAT --to-source 
10.10.10.1

So I figure I need some kernel module installed. I find these from lsmod:

iptable_mangle          2712   0  (autoclean) (unused)
ipt_state               1048   2  (autoclean)
iptable_filter          2348   1  (autoclean)
iptable_nat            20632   1
ip_conntrack           26120   2  [ipt_state iptable_nat]
ip_tables              14520   6  [iptable_mangle ipt_state iptable_filter 
iptable_nat]

In the modules kernel/net/ipv4/netfilter folder I see ipt_MASQUERADE. So...

/sbin/modprobe ipt_MASQUERADE
/lib/modules/2.4.20-20.1.2013.nptl/kernel/net/ipv4/netfilter/ipchains.o: 
init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including 
invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-20.1.2013.nptl/kernel/net/ipv4/netfilter/ipchains.o: 
insmod 
/lib/modules/2.4.20-20.1.2013.nptl/kernel/net/ipv4/netfilter/ipchains.o 
failed
/lib/modules/2.4.20-20.1.2013.nptl/kernel/net/ipv4/netfilter/ipchains.o: 
insmod ipt_MASQUERADE failed

which I assume means that ipchains has to be loaded too, but can't be since 
this is 2.4.x kernel. modules.dep has this:

modules/2.4.20-20.1.2013.nptl/kernel/net/ipv4/netfilter/ipt_MASQUERADE.o:  
/lib/modules/2.4.20-20.1.2013.nptl/kernel/net/ipv4/netfilter/ip_conntrack.o 
\
        
/lib/modules/2.4.20-20.1.2013.nptl/kernel/net/ipv4/netfilter/ipchains.o \
        
/lib/modules/2.4.20-20.1.2013.nptl/kernel/net/ipv4/netfilter/ip_tables.o


Any help would be really appreciated.

sean

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-22 23:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-22 23:11 Can't load MASQUERADE module! sean darcy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.