Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: John Walstra <walstra@cig.mot.com>
Subject: Re: ip-masquerading
Date: 1999/01/15	[thread overview]
Message-ID: <369FC31B.E48D11E2@cig.mot.com> (raw)
In-Reply-To: 77o7tj$fql$2@remarQ.com

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



  parent reply	other threads:[~1999-01-15  5:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-15  5:00 ip-masquerading Christopher
1999-01-15  5:00 ` ip-masquerading Qkev
1999-01-15  5:00 ` John Walstra [this message]
1999-01-16  5:00   ` ip-masquerading Bart
1999-01-16  5:00     ` ip-masquerading John Wolanski
1999-01-17  5:00       ` ip-masquerading Ashley
1999-01-16  5:00 ` ip-masquerading Michal Jaegermann
1999-01-17  5:00   ` ip-masquerading waxhead
1999-01-17  5:00   ` ip-masquerading Dan Watson
1999-01-18  5:00   ` ip-masquerading hvdkooij
1999-01-18  5:00   ` ip-masquerading hvdkooij
1999-01-19  5:00     ` ip-masquerading warp
1999-01-20  5:00       ` ip-masquerading hvdkooij
1999-01-18  5:00 ` ip-masquerading Guido D
1999-01-25  5:00 ` ip-masquerading Raymond Doetjes
1999-01-29  5:00   ` ip-masquerading Christopher G. Petty
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