From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10669a,69331b8b40dac006,start X-Google-Attributes: gid10669a,public X-Google-Thread: 111c93,69331b8b40dac006,start X-Google-Attributes: gid111c93,public From: "Christopher" Subject: ip-masquerading Date: 1999/01/15 Message-ID: <77o7tj$fql$2@remarQ.com>#1/1 X-Deja-AN: 433082229 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 X-Complaints-To: newsabuse@remarQ.com X-Trace: 916431603 VDZLC/RQE6162D190C usenet78.supernews.com Organization: Posted via RemarQ, http://www.remarQ.com - Discussions start here! Newsgroups: comp.os.linux.alpha,comp.os.linux.networking 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