From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,69331b8b40dac006 X-Google-Attributes: gid111c93,public X-Google-Thread: 10669a,69331b8b40dac006 X-Google-Attributes: gid10669a,public From: John Walstra Subject: Re: ip-masquerading Date: 1999/01/15 Message-ID: <369FC31B.E48D11E2@cig.mot.com>#1/1 X-Deja-AN: 433133138 Content-Transfer-Encoding: 7bit References: <77o7tj$fql$2@remarQ.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Motorola Cellular Networks and Space Sector - Firmware Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha,comp.os.linux.networking Christopher wrote: > > I have a problem when I try to setup ip-masquerading on my linux firewall. > I have compiled my kernel with all the options for networking, firewalling, > ip-masquerading. > > The trouble I am having is when I try to setup my firewall with > ip-masquerading. > Here is what is happening > > echo "1" > /proc/sys/net/ipv4/ip_forward > <-- no problem > /sbin/depmod -a > <-- no problem > /sbin/modprobe ip_masq_ftp.o > <--no problem > /sbin/modprobe ip_masq_raudio.o > <--no problem > /sbin/modprobe ip_masq_irc.o > <--no problem > /sbin/modprobe ip_masq_cuseeme.o > <--no problem > /sbin/modprobe ip_masq_vdolive.o > <--no problem > /sbin/modprobe ip_masq_quake.o > <-- no problem > /sbin/ipfwadm -F -p deny > <--no problem > /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0 <--this > command fails > /sbin/route add -net 192.168.0.0 > <--no problem > > The problem I am having is when I try to the following command > /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0 > > I get the error message > ipfwadm: setsockopt failed: Invalid argument > > The only way I can get ip-forwarding to work is to type > ipfwadm -F -p masquerade > > I am running redhat 5.2 on a DEC alphastation 200 4/233 > I have installed a second NIC in the system(the box comes with a nic > installed) > I have read in just about every HOW-TO's I can find of networking, > firewalling, PPP, ipforwarding, net3, kernel, alpha, etc......and have > followed all the instructions in them. > > I have eth0 connected to my internal network here at my house. (192.168.0.5) > eth1 is connected to a cable modem with the Cox @home ISP. (24.1.aaa.bb) > > Thanks in advance for any help on this. > > Christopher Here what I have, because I use 192.168.1.1 as my local gateway ipfwadm -F -a m -S 192.168.1.0/16 -D 0.0.0.0/0 I assume (below) should work ipfwadm -F -a m -S 192.168.0.0/16 -D 0.0.0.0/0 -- John Walstra Motorola, Inc. CIG mailto:walstra@cig.mot.com 1475 West Shure Drive 2C4 phone :(847) 632-3071 Arlington Heights, IL 60004 fax :(847) 632-4164 Proud member of MotLUG