iptables & masquerading...

Jean-Francois Bélanger jef at tech-info.qc.ca
Fri Aug 8 20:51:03 UTC 2003


Just use :

/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -o ppp0 -j SNAT
--to-source [net_ip_adr] 

Work fine whit this.

Jean-Francois

On Fri, 2003-08-08 at 10:21, Greg Sanders wrote:
> I just upgraded from a pre 8 beta to the current beta and it looks like
> masquerading is borked...
> 
> [root at lanfest1 root]# iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -o
> ppp0 -j MASQUERADE
> iptables: No chain/target/match by that name
> 
> [root at lanfest1 root]# lsmod | grep ip
> ipt_REJECT              4024   0  (autoclean)
> ipt_state               1080   0  (autoclean)
> iptable_filter          2444   0  (autoclean)
> iptable_nat            21816   0  (autoclean) (unused)
> ip_conntrack           27208   2  (autoclean) [ipt_state iptable_nat]
> ip_tables              15776   6  [ipt_REJECT ipt_state iptable_filter
> iptable_nat]
> 
> [root at lanfest1 root]# modprobe ipt_MASQUERADE
> /lib/modules/2.4.21-20.1.2024.2.1.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.21-20.1.2024.2.1.nptl/kernel/net/ipv4/netfilter/ipchains.o:
> insmod
> /lib/modules/2.4.21-20.1.2024.2.1.nptl/kernel/net/ipv4/netfilter/ipchains.o
> failed
> /lib/modules/2.4.21-20.1.2024.2.1.nptl/kernel/net/ipv4/netfilter/ipchains.o:
> insmod ipt_MASQUERADE failed
> 
> Is this a known issue with the stock kernel, am I doing something wrong or
> what?
> 
> Greg Sanders - Sysadmin, Webhead, Tolkien-phile
> ElCoronel @ irc.freenode.net - http://elcoronel.com/
> -------------------------------------------------------------------------
> No word to save thee.
> -William Shakespeare, Measure for Measure
> 
> 
> 
> --
> Rhl-beta-list mailing list
> Rhl-beta-list at redhat.com
> http://www.redhat.com/mailman/listinfo/rhl-beta-list





More information about the fedora-test-list mailing list