Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ipfwadm (maybe not axp specific problem?)
@ 1997-04-10  8:08 Nicholas Alexander Bastin
  0 siblings, 0 replies; 6+ messages in thread
From: Nicholas Alexander Bastin @ 1997-04-10  8:08 UTC (permalink / raw)


I've been having a few problems making IP masquerading work on my
system.  I've thoroughly read the IP masquerade HOW-TO, and implemented
it's instructions.  I can set up the ethernet and ppp connections fine,
but ipfwadm breaks on the last necessary line in the HOW-TO.  I enter:

	ipfwadm -F -p deny

first, and it does this just fine returning me to the prompt.  Then I do:

	ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0  (yes, I'm aware of
the potential security problem here...)

and the computer returns:

	ipfwadm: setsockopt failed: Invalid argument

I'mnot sure whether this is an AXP-only problem, but I can't figure it out
in any case.  I've even changed -a m to -a masquerade as shown later in
the HOW-TO and I get the same message.  Is there something wrong with
ipfwadm for axp, or is it becoming blatently obvious to the members of the
list that I can't read a simple HOW-TO?  Thanks in advance.

Nick Bastin
System Admin - World Trade Internet Communications

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ipfwadm (maybe not axp specific problem?)
       [not found] <Pine.SGI.3.95.970410040201.24962A-100000@sigma.bgsu.edu>
@ 1997-04-10  9:35 ` Joni Mikael Virtanen
  1997-04-10 14:21 ` Alvin Starr
  1997-04-11  2:20 ` Daniel Gruner
  2 siblings, 0 replies; 6+ messages in thread
From: Joni Mikael Virtanen @ 1997-04-10  9:35 UTC (permalink / raw)


On Thu, 10 Apr 1997, Nicholas Alexander Bastin wrote:

> but ipfwadm breaks on the last necessary line in the HOW-TO.  I enter:
> 
> 	ipfwadm -F -p deny
> 
> first, and it does this just fine returning me to the prompt.  Then I do:
> 
> 	ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0  (yes, I'm aware of
> the potential security problem here...)
> 
> and the computer returns:
> 
> 	ipfwadm: setsockopt failed: Invalid argument

Well, I don't know if its Linux/AXP -based problem but have you tried
to add -P parameter?

I also enter

	/sbin/ipfwadm -F -p deny

first and then I just type

	/sbin/ipfwadm -F -a masquerade -P tcp -S 192.168.1.0/24 -D 0.0.0.0/0
	/sbin/ipfwadm -F -a masquerade -P udp -S 192.168.1.0/24 -D 0.0.0.0/0

and everything works fine.

	Joni

--
Joni Virtanen
          Email: Joni.Virtanen@iki.fi
          WWW:   http://www.iki.fi/ioni/
          IRC:   DJ_Ioni
Never look into eyes of your gods. - Bajoran proverb (ST: DS9)

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ipfwadm (maybe not axp specific problem?)
       [not found] <Pine.SGI.3.95.970410040201.24962A-100000@sigma.bgsu.edu>
  1997-04-10  9:35 ` Joni Mikael Virtanen
@ 1997-04-10 14:21 ` Alvin Starr
  1997-04-11  2:20 ` Daniel Gruner
  2 siblings, 0 replies; 6+ messages in thread
From: Alvin Starr @ 1997-04-10 14:21 UTC (permalink / raw)


On Thu, 10 Apr 1997, Nicholas Alexander Bastin wrote:
> 
> 	I've been having a few problems making IP masquerading work on my
> system.  I've thoroughly read the IP masquerade HOW-TO, and implemented
> it's instructions.  I can set up the ethernet and ppp connections fine,
> but ipfwadm breaks on the last necessary line in the HOW-TO.  I enter:
> 
> 	ipfwadm -F -p deny
> 
> first, and it does this just fine returning me to the prompt.  Then I do:
> 
> 	ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0  (yes, I'm aware of
> the potential security problem here...)
> 
> and the computer returns:
> 
> 	ipfwadm: setsockopt failed: Invalid argument
> 
> I'mnot sure whether this is an AXP-only problem, but I can't figure it out
> in any case.  I've even changed -a m to -a masquerade as shown later in
> the HOW-TO and I get the same message.  Is there something wrong with
> ipfwadm for axp, or is it becoming blatently obvious to the members of the
> list that I can't read a simple HOW-TO?  Thanks in advance.

Is firewalling and the other IP routing protocols enabled? You may have 
to rebuild the kernel.

I found a bug in the firewall code but I do not believe that it is 
related to the masqurading code. 

Alvin Starr                   ||   voice: (416)493-3325
Interlink Connectivity        ||   fax:   (416)493-7974
alvin@iplink.net              ||

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ipfwadm (maybe not axp specific problem?)
       [not found] <Pine.OSF.3.91.970410093752.29178B-100000@caesar.iplink.net>
@ 1997-04-10 18:33 ` Nicholas Alexander Bastin
  0 siblings, 0 replies; 6+ messages in thread
From: Nicholas Alexander Bastin @ 1997-04-10 18:33 UTC (permalink / raw)


> Is firewalling and the other IP routing protocols enabled? You may have 
> to rebuild the kernel.
> 
> I found a bug in the firewall code but I do not believe that it is 
> related to the masqurading code. 
> 

To my knowledge, I have everything necessary enabled except for
CONFIG_IP_ALWAYS_DEFRAG, which was highly recommended, but I accidentally
left it out.  If this is causing my problems, I'll have them fixed by
later today.

Nick

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ipfwadm (maybe not axp specific problem?)
       [not found] <Pine.SGI.3.95.970410040201.24962A-100000@sigma.bgsu.edu>
  1997-04-10  9:35 ` Joni Mikael Virtanen
  1997-04-10 14:21 ` Alvin Starr
@ 1997-04-11  2:20 ` Daniel Gruner
  2 siblings, 0 replies; 6+ messages in thread
From: Daniel Gruner @ 1997-04-11  2:20 UTC (permalink / raw)


> 
> 	I've been having a few problems making IP masquerading work on my
> system.  I've thoroughly read the IP masquerade HOW-TO, and implemented
> it's instructions.  I can set up the ethernet and ppp connections fine,
> but ipfwadm breaks on the last necessary line in the HOW-TO.  I enter:
> 
> 	ipfwadm -F -p deny
> 
> first, and it does this just fine returning me to the prompt.  Then I do:
> 
> 	ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0  (yes, I'm aware of
> the potential security problem here...)
> 
> and the computer returns:
> 
> 	ipfwadm: setsockopt failed: Invalid argument
> 
> I'mnot sure whether this is an AXP-only problem, but I can't figure it out
> in any case.  I've even changed -a m to -a masquerade as shown later in
> the HOW-TO and I get the same message.  Is there something wrong with
> ipfwadm for axp, or is it becoming blatently obvious to the members of the
> list that I can't read a simple HOW-TO?  Thanks in advance.
> 
> Nick Bastin
> System Admin - World Trade Internet Communications
> 

I have been successfully running a masqueraded network for months now,
using the exact same command written above.  My system is RH4.0
2.0.27 kernel, and the following firewall options:

#
# Networking options
#
CONFIG_FIREWALL=y
CONFIG_NET_ALIAS=y
CONFIG_INET=y
CONFIG_IP_FORWARD=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_FIREWALL=y
CONFIG_IP_FIREWALL_VERBOSE=y
CONFIG_IP_MASQUERADE=y

#
# Protocol-specific masquerading support will be built as modules.
#
CONFIG_IP_TRANSPARENT_PROXY=y
CONFIG_IP_ALWAYS_DEFRAG=y
CONFIG_IP_ACCT=y
CONFIG_IP_ROUTER=y
CONFIG_NET_IPIP=y
# CONFIG_IP_MROUTE is not set
CONFIG_IP_ALIAS=y

I explicitly load the ftp masquerading module:
insmod -v /lib/modules/2.0.27/ipv4/ip_masq_ftp.o

Daniel

-- 

Dr. Daniel Gruner                        dgruner@tikva.chem.utoronto.ca
Dept. of Chemistry                       phone:  (416)-978-8689
University of Toronto                    fax:    (416)-978-5325

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ipfwadm (maybe not axp specific problem?)
@ 1997-04-16  1:35 John Schauer
  0 siblings, 0 replies; 6+ messages in thread
From: John Schauer @ 1997-04-16  1:35 UTC (permalink / raw)


>	ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0  (yes, I'm aware of
>the potential security problem here...)
>
>and the computer returns:
>
>	ipfwadm: setsockopt failed: Invalid argument
>
I had this problem on an Intel processor too.  I couldn't find the problem
either.

I have 2 linux boxes running Linux 2.0.27 (intel Slackware).  I used the
same install disk for both and they are configured exactly the same.  On
the first box I get the exact same error.  It works without a problem on
the second.  

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1997-04-16  1:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.OSF.3.91.970410093752.29178B-100000@caesar.iplink.net>
1997-04-10 18:33 ` ipfwadm (maybe not axp specific problem?) Nicholas Alexander Bastin
1997-04-16  1:35 John Schauer
     [not found] <Pine.SGI.3.95.970410040201.24962A-100000@sigma.bgsu.edu>
1997-04-10  9:35 ` Joni Mikael Virtanen
1997-04-10 14:21 ` Alvin Starr
1997-04-11  2:20 ` Daniel Gruner
  -- strict thread matches above, loose matches on Subject: below --
1997-04-10  8:08 Nicholas Alexander Bastin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox