Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Paul Tomblin <ptomblin@xcski.com>
To: axp-list@redhat.com
Subject: Re: ipfwadm
Date: Tue, 23 Jun 1998 22:25:09 -0400	[thread overview]
Message-ID: <19980623222509.W19844@xcski.com> (raw)
In-Reply-To: <199806232223.SAA14767@mail2.sas.upenn.edu>; from vik bajaj on Tue, Jun 23, 1998 at 06:23:19PM -0400

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


  reply	other threads:[~1998-06-24  2:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-23 22:23 ipfwadm vik bajaj
1998-06-24  2:25 ` Paul Tomblin [this message]
1998-06-24 14:11   ` ipfwadm vbajaj
1998-06-24 14:52     ` ipfwadm Paul Tomblin
1998-06-25  2:31 ` ipfwadm Maxim Krasnyansky
  -- strict thread matches above, loose matches on Subject: below --
1998-11-30  2:19 ipfwadm Ken Marin
read-only archive

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