From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26597 invoked from network); 23 Jun 1998 13:22:14 -0000 Received: from canoe.roc.servtech.com (HELO canoe.xcski.com) (root@204.181.4.141) by softdnserror with SMTP; 23 Jun 1998 13:22:14 -0000 Received: (from ptomblin@localhost) by canoe.xcski.com (8.8.7/8.8.7) id IAA12533; Tue, 23 Jun 1998 08:11:55 -0400 Message-ID: <19980623081154.O19844@xcski.com> Date: Tue, 23 Jun 1998 08:11:54 -0400 From: Paul Tomblin To: axp-list@redhat.com Subject: Re: help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34 References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: ; from Darren Kruger on Mon, Jun 22, 1998 at 09:40:10PM -0700 Quoting Darren Kruger (darrenk@rahul.net): > I have been for some time trying to get IP masquerading working on my > alphastation. I started playing with v4.2, but have upgraded in an effort > to recompile the kernal with all the correct options. When i bring up a > ppp connection, I can not ping throught it, nor anything else. I'm pretty > sure it's somewhere in my config, though i know not where. > > can anyone give me some hints on where I'm going wrong? thanks in > advance. > > my local network is 10.0.0.0/24, the alpha's eth0 interface has an ip > address of 10.0.0.113 (which i'm using as the gateway for my windoze 95 > machine.) > > to enable masquerading, i'm running the following commands: > ipfwadm -F -p deny > ipfwadm -F -a -m -S 10.0.0.0/24 -D 0.0.0.0/0 -V 10.0.0.113 > > in /etc/sysconfig/network i have the following line: > FORWARD_IPV4=true > > in my .config file, i have the following 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 > > 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 This looks pretty much what I've got (except I'm using 192.168.1.0/24 as my source). You also need to set up your other machine so that it uses your linux box's ethernet ip (NOT the PPP ip, because it doesn't know it) as the default gateway. You said you can't ping through it. Do you mean you can't ping from the other computer out through the linux box? Have you tried pinging by number instead of by name? It's quite probable that you don't have DNS set up right, that's what kills most people. I run a named on my linux box so that the other machines on the network can get name service within the local network even when not connected. So I have my other boxes list that as their primary DNS, and then list the DNSes that my ISP provides as secondaries. Works pretty well - I just added a Windows 95 machine to the local network at home, and it worked pretty much right away. (I had two linux boxen and a Mac on it before, and I'm adding another Mac as soon as the ethernet card comes) The youngest daughter was thrilled when she started whining "I need to look up something on the web" when her mother was using the Mac and I was using the Linux box, and I just pointed to the Windows box and said "Internet Exploder". -- Paul Tomblin, ptomblin@xcski.com. "It's just a cardboard model. Fake security" "Jeez, that's a first for Microsoft" - User Friendly