[olug] Port Forwarding

Vincent vraffensberger at home.com
Mon Jul 2 03:15:39 UTC 2001


I think that manually removing/adding the modules you need will take care of
this.  I've attached a script which I use.  Edit the addresses for your
setup and try it.




----- Original Message -----
From: "LP" <linuxposse at home.com>
To: <olug at bstc.net>
Sent: Sunday, July 01, 2001 9:40 PM
Subject: Re: [olug] Port Forwarding


> I'm still wrestling with this.
> I'm seeing this error:
>
> /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module:
> Device or resource busy
> Hint: insmod errors can be caused by incorrect module parameters,
including
> invalid IO or IRQ parameters
> /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod
> /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o failed
> /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod
> ip_tables failed
> iptables v1.2.1a: can't initialize iptables table `filter': iptables who?
> (do you need to insmod?)
> Perhaps iptables or your kernel needs to be upgraded.
> /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module:
> Device or resource busy
> Hint: insmod errors can be caused by incorrect module parameters,
including
> invalid IO or IRQ parameters
> /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod
> /lib/modules/
> 2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o failed
> /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod
> ip_tables failed
> iptables v1.2.1a: can't initialize iptables table `nat': iptables who? (do
> you need to insmod?)
> Perhaps iptables or your kernel needs to be upgraded.
>
> Here is the entry in my rc.local that is causing the error:
>
> echo 1 > /proc/sys/net/ipv4/ip_forward
> /sbin/iptables -A INPUT -p tcp -d 24.xxx.xx.x --dport 80 -j ACCEPT
> /sbin/iptables -t nat -A PREROUTING -p tcp \
>          -d 24.xxx.xx.x --dport 80 \
>          -j DNAT --to-destination 192.168.1.2I
>
> I've been playing with this for several hours and could use more input
please.
>
>
>
> At 05:41 PM 6/30/2001 -0500, Jon wrote:
>
> >quick and dirty nat forwarding with 2.4 and iptables
> >/usr/sbin/iptables -t nat -A POSTROUTING -o $INET_IFACE -j MASQUERADE
> >/usr/sbin/iptables -t nat -A PREROUTING -p tcp -d $STATIC_IP \
> >     --dport 1080 -j DNAT --to 192.168.1.2:80
> >
> >On Sat, Jun 30, 2001 at 03:09:51PM -0500, LP wrote:
> > > Im using the RH  2.4.2-2 kernal and I'm searching the web for
information
> > > on port forwarding.
> > >
> > > Any good site you would suggest?
> > >
> > > Gregg
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: olug-unsubscribe at bstc.net
> > > For additional commands, e-mail: olug-help at bstc.net
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: olug-unsubscribe at bstc.net
> >For additional commands, e-mail: olug-help at bstc.net
>

-------------- next part --------------
---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net


More information about the OLUG mailing list