🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.os.linux.slackware
6 messages
6 total messages Started by JP Sun, 05 Aug 2001 21:54
Help with ipmasqadm
#116
Author: JP
Date: Sun, 05 Aug 2001 21:54
14 lines
1683 bytes
I have been trying to set up port forwarding using ipmasqadm but could not
make it work.  I have the following error when I issued the command
"ipmasqadm portfw -l":

Cound not open "/proc/net/ip_masq/portfw"
Cound not open "/proc/net/portfw"
Check if you have enabled portforwarding

But I have no error messages when I set up the rules using "ipmasqadm
portfw".  Also, ip_forward has the value of 1.  But I cannot find
"/proc/net/ip_masq/portfw".  How can I enable portfowarding on Slackware
2.2.16?

Joe
Re: Help with ipmasqadm
#117
Author: Rhasta
Date: Mon, 06 Aug 2001 00:03
25 lines
2109 bytes
On Sun, 5 Aug 2001 17:54:55 -0400, "JP" <pangjo@hotmail.com> wrote:

>I have been trying to set up port forwarding using ipmasqadm but could not
>make it work.  I have the following error when I issued the command
>"ipmasqadm portfw -l":
>
>Cound not open "/proc/net/ip_masq/portfw"
>Cound not open "/proc/net/portfw"
>Check if you have enabled portforwarding
>
>But I have no error messages when I set up the rules using "ipmasqadm
>portfw".  Also, ip_forward has the value of 1.  But I cannot find
>"/proc/net/ip_masq/portfw".  How can I enable portfowarding on Slackware
>2.2.16?
>
>Joe
>

First, you should upgrade to the latest kernel, as 2.2.16 has a
vulnerability.

Then, for portfw to work with ipmasqadm, you have to compile it either
in the kernel or as a module. If you compile it as  a module and you
do not use kmod to load modules on demand, you have to manually insert
it before doing a port forwarding with ipasqadm.
Re: Help with ipmasqadm
#118
Author: lincoln
Date: Mon, 06 Aug 2001 02:22
41 lines
3028 bytes
Rhasta wrote:

> On Sun, 5 Aug 2001 17:54:55 -0400, "JP" <pangjo@hotmail.com> wrote:
>
> >I have been trying to set up port forwarding using ipmasqadm but could not
> >make it work.  I have the following error when I issued the command
> >"ipmasqadm portfw -l":
> >
> >Cound not open "/proc/net/ip_masq/portfw"
> >Cound not open "/proc/net/portfw"
> >Check if you have enabled portforwarding
> >
> >But I have no error messages when I set up the rules using "ipmasqadm
> >portfw".  Also, ip_forward has the value of 1.  But I cannot find
> >"/proc/net/ip_masq/portfw".  How can I enable portfowarding on Slackware
> >2.2.16?
> >
> >Joe
> >
>
> First, you should upgrade to the latest kernel, as 2.2.16 has a
> vulnerability.
>
> Then, for portfw to work with ipmasqadm, you have to compile it either
> in the kernel or as a module. If you compile it as  a module and you
> do not use kmod to load modules on demand, you have to manually insert
> it before doing a port forwarding with ipasqadm.

I am running 2.2.16 and I just compiled it into the kernel, and voila, it
works!  I tried it with a newer kernel, but then I was getting messages and I
had to download the newest ppp and compile it in, etc, etc.  I reinstalled
with the 2.2.16 kernel, compiled it in, and it works with no other tweaking
(slackware 7.1).  Just follow the usual instructions in the Howtos and you'll
be fine.
If you're really worried about security, then you may have to use the newer
kernel, but it opens up a pandora's box of other things that have to be
updated, and I haven't read anything that warns you or tells you everything
you have to upgrade.

Hope this helps, let me know if I can help,
rutledge_almostaranch
Re: Help with ipmasqadm
#119
Author: JP
Date: Mon, 06 Aug 2001 03:38
69 lines
3756 bytes
Rhasta,

Thanks for letting me know that the 2.2.16 would still work.  But I still
cannot get over the port forwarding problem.  I can issue the command the IP
masqerading command with any error messages:

   ipmasqadm portfw -a -P tcp -L $external_IP 1800 -R $internal_IP 23

However, there is no forwarding occurs.  Also I am still getting these error
messages after "ipmasqadm portfw -l":
    Could not open "/proc/net/ip_masq/portfw"
    Could not open "/proc/net/portfw"
    Check if you have enabled portforwarding

Joe



"lincoln" <rutledge@greenapple.com> wrote in message
news:3B6DF789.430EFC46@greenapple.com...
> Rhasta wrote:
>
> > On Sun, 5 Aug 2001 17:54:55 -0400, "JP" <pangjo@hotmail.com> wrote:
> >
> > >I have been trying to set up port forwarding using ipmasqadm but could
not
> > >make it work.  I have the following error when I issued the command
> > >"ipmasqadm portfw -l":
> > >
> > >Cound not open "/proc/net/ip_masq/portfw"
> > >Cound not open "/proc/net/portfw"
> > >Check if you have enabled portforwarding
> > >
> > >But I have no error messages when I set up the rules using "ipmasqadm
> > >portfw".  Also, ip_forward has the value of 1.  But I cannot find
> > >"/proc/net/ip_masq/portfw".  How can I enable portfowarding on
Slackware
> > >2.2.16?
> > >
> > >Joe
> > >
> >
> > First, you should upgrade to the latest kernel, as 2.2.16 has a
> > vulnerability.
> >
> > Then, for portfw to work with ipmasqadm, you have to compile it either
> > in the kernel or as a module. If you compile it as  a module and you
> > do not use kmod to load modules on demand, you have to manually insert
> > it before doing a port forwarding with ipasqadm.
>
> I am running 2.2.16 and I just compiled it into the kernel, and voila, it
> works!  I tried it with a newer kernel, but then I was getting messages
and I
> had to download the newest ppp and compile it in, etc, etc.  I reinstalled
> with the 2.2.16 kernel, compiled it in, and it works with no other
tweaking
> (slackware 7.1).  Just follow the usual instructions in the Howtos and
you'll
> be fine.
> If you're really worried about security, then you may have to use the
newer
> kernel, but it opens up a pandora's box of other things that have to be
> updated, and I haven't read anything that warns you or tells you
everything
> you have to upgrade.
>
> Hope this helps, let me know if I can help,
> rutledge_almostaranch
>
Re: Help with ipmasqadm
#120
Author: Dale Woodside
Date: Mon, 06 Aug 2001 05:14
66 lines
3228 bytes
Rhasta wrote:
> 
> On Sun, 5 Aug 2001 17:54:55 -0400, "JP" <pangjo@hotmail.com> wrote:
> 
> >I have been trying to set up port forwarding using ipmasqadm but could not
> >make it work.  I have the following error when I issued the command
> >"ipmasqadm portfw -l":
> >
> >Cound not open "/proc/net/ip_masq/portfw"
> >Cound not open "/proc/net/portfw"
> >Check if you have enabled portforwarding
> >
> >But I have no error messages when I set up the rules using "ipmasqadm
> >portfw".  Also, ip_forward has the value of 1.  But I cannot find
> >"/proc/net/ip_masq/portfw".  How can I enable portfowarding on Slackware
> >2.2.16?
> >
> >Joe
> >
> 
> First, you should upgrade to the latest kernel, as 2.2.16 has a
> vulnerability.


I would second that advice even though kppp may give an
error message which you may be able to ignore.

> 
> Then, for portfw to work with ipmasqadm, you have to compile it either
> in the kernel or as a module. If you compile it as  a module and you
> do not use kmod to load modules on demand, you have to manually insert
> it before doing a port forwarding with ipasqadm.


I had a look at the kernel config files for a 2.2.13 and a
2.2.19 kernel (Mandrake) and the only compile support I could find
for port forwarding were:

# Protocol-specific masquerading support will be built as modules.
#
CONFIG_IP_MASQUERADE_MOD=y
CONFIG_IP_MASQUERADE_IPAUTOFW=m
CONFIG_IP_MASQUERADE_IPPORTFW=m

Of course, you could say y instead of m for modules.
The modules this gives in /lib/modules/2.2.19/ipv4 are:

 ip_masq_autofw.o
 ip_masq_portfw.o

If you have these modules already you can load these modules with:

/sbin/modprobe ip_masq_autofw
/sbin/modprobe ip_masq_portfw

and after checking to see that they loaded with lsmod, the following
entries in /proc/net/ip_masq appear:

autofw
portfw

My guess is that these specific modules should be enough to
enable you to use ipmasqadm as you will now be able to find
/proc/net/ip_masq/portfw   and   /proc/net/ip_masq/autofw.

Dale Woodside
Re: Help with ipmasqadm
#115
Author: lefty2446
Date: Tue, 07 Aug 2001 23:37
18 lines
1983 bytes
"lincoln" <rutledge@greenapple.com> wrote in message
news:3B6DF789.430EFC46@greenapple.com...

[Trunicated]

> If you're really worried about security, then you may have to use the
newer
> kernel, but it opens up a pandora's box of other things that have to be
> updated, and I haven't read anything that warns you or tells you
everything
> you have to upgrade.

/usr/src/Documentation/Changes
Everything is listed with the appropriate commands on how to get the version
numbers. Upgrade only what you need, ie if you dont use pcmcia don't upgrade
it. Uninstall it instead.

Adrian
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads