Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ipfwadm
@ 1998-06-23 22:23 vik bajaj
  1998-06-24  2:25 ` ipfwadm Paul Tomblin
  1998-06-25  2:31 ` ipfwadm Maxim Krasnyansky
  0 siblings, 2 replies; 6+ messages in thread
From: vik bajaj @ 1998-06-23 22:23 UTC (permalink / raw)
  To: axp-list

Hello,

I am unable to use ipfwadm to configure masquerade under 2.0.34, RH 5.1,
UDB platform.  I get the setsockopt error;  is there a fix for this?

Thanks.

--Vik


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

* Re: ipfwadm
  1998-06-23 22:23 ipfwadm vik bajaj
@ 1998-06-24  2:25 ` Paul Tomblin
  1998-06-24 14:11   ` ipfwadm vbajaj
  1998-06-25  2:31 ` ipfwadm Maxim Krasnyansky
  1 sibling, 1 reply; 6+ messages in thread
From: Paul Tomblin @ 1998-06-24  2:25 UTC (permalink / raw)
  To: axp-list

Quoting vik bajaj (vbajaj@sas.upenn.edu):
> Hello,
> 
> I am unable to use ipfwadm to configure masquerade under 2.0.34, RH 5.1,
> UDB platform.  I get the setsockopt error;  is there a fix for this?

I'm using it on RH 5.0, 2.0.34, UDB.  No problems.  I get some sort of error
because I do the ipfwadm command in the /etc/rc.d/rc.modules (before I had a
PPP connection to forward to).  I suspect a better place to put the commands
would be in /etc/ppp/ip-up.local.  But as soon as I connect to the net, BANG,
all the machines on my basement LAN are talking to the net.

The commands I use:
ipfwadm -F -p deny
ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

The appropriate bits of my kernel config file:
#
# Networking options
#
CONFIG_FIREWALL=y
CONFIG_NET_ALIAS=y
CONFIG_INET=y
CONFIG_IP_FORWARD=y
CONFIG_IP_MULTICAST=y
CONFIG_SYN_COOKIES=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_MASQUERADE_ICMP=y
CONFIG_IP_ALWAYS_DEFRAG=y
CONFIG_IP_ACCT=y
# CONFIG_IP_ROUTER is not set
CONFIG_NET_IPIP=m
CONFIG_IP_ALIAS=m

#
# (it is safe to leave these untouched)
#
# CONFIG_INET_PCTCP is not set
CONFIG_INET_RARP=m
# CONFIG_NO_PATH_MTU_DISCOVERY is not set
CONFIG_IP_NOSR=y
CONFIG_SKB_LARGE=y


-- 
Paul Tomblin, ptomblin@xcski.com.
"It's just a cardboard model.  Fake security"
"Jeez, that's a first for Microsoft"
   - User Friendly


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

* Re: ipfwadm
  1998-06-24  2:25 ` ipfwadm Paul Tomblin
@ 1998-06-24 14:11   ` vbajaj
  1998-06-24 14:52     ` ipfwadm Paul Tomblin
  0 siblings, 1 reply; 6+ messages in thread
From: vbajaj @ 1998-06-24 14:11 UTC (permalink / raw)
  To: axp-list




| I'm using it on RH 5.0, 2.0.34, UDB.  No problems.  I get some sort of error

The only difference in configurations is that I am running RH 5.1.

| 
| The commands I use:
| ipfwadm -F -p deny
| ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

I do much the same, but get an error:

/sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
ipfwadm: setsockopt failed: Invalid argument

Thanks in advance,

Vik


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

* Re: ipfwadm
  1998-06-24 14:11   ` ipfwadm vbajaj
@ 1998-06-24 14:52     ` Paul Tomblin
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Tomblin @ 1998-06-24 14:52 UTC (permalink / raw)
  To: axp-list

Quoting vbajaj@portal.stwing.upenn.edu (vbajaj@portal.stwing.upenn.edu):
> 
> 
> 
> | I'm using it on RH 5.0, 2.0.34, UDB.  No problems.  I get some sort of error
> 
> The only difference in configurations is that I am running RH 5.1.
> 
> /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
> ipfwadm: setsockopt failed: Invalid argument

Two suggestions:
1. Make sure you have all the correct stuff compiled into your kernel, and
that you've booted with that kernel.  ("make boot" doesn't put in where MILO
can find it, unlike what "make zlilo" does on Intel)
2. Try and ftp the ipfwadm packages from 5.0 and install them instead.  There
might be a bug in 5.1.

-- 
Paul Tomblin, ptomblin@xcski.com.
"It's just a cardboard model.  Fake security"
"Jeez, that's a first for Microsoft"
   - User Friendly


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

* Re: ipfwadm
  1998-06-23 22:23 ipfwadm vik bajaj
  1998-06-24  2:25 ` ipfwadm Paul Tomblin
@ 1998-06-25  2:31 ` Maxim Krasnyansky
  1 sibling, 0 replies; 6+ messages in thread
From: Maxim Krasnyansky @ 1998-06-25  2:31 UTC (permalink / raw)
  To: axp-list

On Tue, 23 Jun 1998, vik bajaj wrote:

> Hello,
> 
> I am unable to use ipfwadm to configure masquerade under 2.0.34, RH 5.1,
> UDB platform.  I get the setsockopt error;  is there a fix for this?
Just use ipfwadm from RedHat-5.0.
> 
> Thanks.
> 
> --Vik
> 
> -- 
> 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
> 

Maxim Krasnyansky		System and Network administrator
UzNet ISP			    Unix system programmer
max@uznet.net			       +7(371)139-83-04                 
max@viper.uznet.net



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

* Re: ipfwadm
@ 1998-11-30  2:19 Ken Marin
  0 siblings, 0 replies; 6+ messages in thread
From: Ken Marin @ 1998-11-30  2:19 UTC (permalink / raw)
  To: RH

It still is giving me the same error.  Could it be that  it is not
configured in the kernel?  I don't know how to check.  I tried to compile my
own using ( make mrproper, make xconfig,[chose the options] make dep, make
clean, make modules, make modules_install, make boot)  but no matter what I
try it can't get it to boot from the new kernel. I'm using  2.0.35

If I try to run insmod I get:

[root@home ipv4]# insmod ip_masq_ftp.o
ip_masq_ftp.o: unresolved symbol ip_masq_new
ip_masq_ftp.o: unresolved symbol ip_masq_skb_replace
ip_masq_ftp.o: unresolved symbol ip_masq_expire
ip_masq_ftp.o: unresolved symbol unregister_ip_masq_app
ip_masq_ftp.o: unresolved symbol ip_masq_set_expire
ip_masq_ftp.o: unresolved symbol register_ip_masq_app
ip_masq_ftp.o: unresolved symbol ip_masq_out_get_2
[root@home ipv4]#



>I'm running or trying to run an AS200 4/233 with RH5.1.  Everything is
>working well except when I try to run any ipfwadm command I get this
same
>error.  (new user)
>
>[root@home /root]# ipfwadm -F -p deny
>ipfwadm: setsockopt failed: Protocol not available
>[root@home /root]#


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

end of thread, other threads:[~1998-11-30  2:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-30  2:19 ipfwadm Ken Marin
  -- strict thread matches above, loose matches on Subject: below --
1998-06-23 22:23 ipfwadm vik bajaj
1998-06-24  2:25 ` ipfwadm Paul Tomblin
1998-06-24 14:11   ` ipfwadm vbajaj
1998-06-24 14:52     ` ipfwadm Paul Tomblin
1998-06-25  2:31 ` ipfwadm Maxim Krasnyansky

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