[olug] Port Forwarding

LP linuxposse at home.com
Mon Jul 2 03:20:24 UTC 2001


If you attached a script, sorry, I don't see it.

Gregg

At 10:15 PM 7/1/2001 -0500, you wrote:
>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


More information about the OLUG mailing list