iptables (was port forwading)
Kevin Brown
plug-discuss@lists.plug.phoenix.az.us
Mon, 18 Mar 2002 12:12:52 -0700
> > > Okay despite the fact that iptables didn't show up when I did lsmod (I
> > > guess I forgot netfilter was part of the *kernel*). It looks like
> > > iptables does install on RH 7.2 So I thought well instead of rewritting
> > > all my ipchains right now maybe I can just add a iptable rule to my
> > > firewall script (if this is vastly wrong please let me know). So here is
> > > my attempt
> > >
> > > iptables -A PREROUTING -t nat -p tcp -d $IPADDR --dport $WEB_PORT \
> > > -j DNAT --to-destination $WEBSERVER
> > >
>
> Thanks Patrick,
> Not sure if it was that or the fact that I realized that my varible name
> was $WEB_SERVER not $WEBSERVER but I'm not getting that error anymore
> now I'm getting
>
> Starting firewalling...
>
> /lib/modules/2.4.7-10/kernel/net/ipv4/netfilter/ip_tables.o:
> init_module: Device or resource busy
> /lib/modules/2.4.7-10/kernel/net/ipv4/netfilter/ip_tables.o: insmod
> /lib/modules/2.4.7-10/kernel/net/ipv4/netfilter/ip_tables.o failed
> /lib/modules/2.4.7-10/kernel/net/ipv4/netfilter/ip_tables.o: insmod
> ip_tables failed
> Hint: insmod errors can be caused by incorrect module parameters,
> including invalid IO or IRQ parameters
> iptables v1.2.3: can't initialize iptables table `nat': iptables who?
> (do you need to insmod?)
> Perhaps iptables or your kernel needs to be upgraded.
> done
>
> So does anyone know if this sounds as if I can simply insmod something??
> or do I need to recompile my kernel?
Or ipchains is already loaded and so you can't load iptables.
lsmod