From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2378 invoked from network); 24 Jun 1998 02:25:08 -0000 Received: from canoe.roc.servtech.com (HELO canoe.xcski.com) (ptomblin@204.181.4.141) by mail2.redhat.com with SMTP; 24 Jun 1998 02:25:08 -0000 Received: (from ptomblin@localhost) by canoe.xcski.com (8.8.7/8.8.7) id WAA09996; Tue, 23 Jun 1998 22:25:09 -0400 Message-ID: <19980623222509.W19844@xcski.com> Date: Tue, 23 Jun 1998 22:25:09 -0400 From: Paul Tomblin To: axp-list@redhat.com Subject: Re: ipfwadm References: <199806232223.SAA14767@mail2.sas.upenn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 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