Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34
@ 1998-06-23  4:40 Darren Kruger
  1998-06-23  5:10 ` B. James Phillippe
  1998-06-23 12:11 ` Paul Tomblin
  0 siblings, 2 replies; 5+ messages in thread
From: Darren Kruger @ 1998-06-23  4:40 UTC (permalink / raw)
  To: axp-list

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

Darren
---
"The truth is out there, but so are lies"	- X-Files
"The truth sets you free"			- Conspiracy Theory


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34
  1998-06-23  4:40 help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34 Darren Kruger
@ 1998-06-23  5:10 ` B. James Phillippe
  1998-06-23  5:59   ` help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34y Harry Mangalam
  1998-06-24  2:18   ` help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34 Darren Kruger
  1998-06-23 12:11 ` Paul Tomblin
  1 sibling, 2 replies; 5+ messages in thread
From: B. James Phillippe @ 1998-06-23  5:10 UTC (permalink / raw)
  To: axp-list

On Mon, 22 Jun 1998, Darren Kruger wrote:

> 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

There must be a HOWTO out there with some information bass-ackwards.  Try
using the interface IP address of your EXTERNAL connection (your PPP
device) with the -V flag, or better yet, do it like this:

ipfwadm -F -a accept -m -S 10.0.0.0/24 -W ppp0

Also, I had a conversation a while ago with someone about the use of
implicit rules (omitting the "accept") in filter rules.  My opinion is that
filter rules are best left with all details explicitly defined.  BTW there
is a mailing list better suited to this problem if you're still having
trouble.  Try linux-ppp@vger.rutgers.edu

Good luck,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34y
  1998-06-23  5:10 ` B. James Phillippe
@ 1998-06-23  5:59   ` Harry Mangalam
  1998-06-24  2:18   ` help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34 Darren Kruger
  1 sibling, 0 replies; 5+ messages in thread
From: Harry Mangalam @ 1998-06-23  5:59 UTC (permalink / raw)
  To: axp-list

You might look in /usr/doc/HOWTO/mini/IP-Masquerade and in the docs ref'ed
therein.

Cheers,
Harry

Harry J Mangalam, Developmental + Cell Biology
Rm 4201, Biological Sciences II, UC Irvine, Irvine, CA, 92697
(949) 824 4824[vox], (949) 824 8551[fax], mangalam@uci.edu
http://hornet.bio.uci.edu/~hjm/

On Mon, 22 Jun 1998, B. James Phillippe wrote:

> On Mon, 22 Jun 1998, Darren Kruger wrote:
> 
> > 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
> 
> There must be a HOWTO out there with some information bass-ackwards.  Try
> using the interface IP address of your EXTERNAL connection (your PPP
> device) with the -V flag, or better yet, do it like this:
> 
> ipfwadm -F -a accept -m -S 10.0.0.0/24 -W ppp0
> 
> Also, I had a conversation a while ago with someone about the use of
> implicit rules (omitting the "accept") in filter rules.  My opinion is that
> filter rules are best left with all details explicitly defined.  BTW there
> is a mailing list better suited to this problem if you're still having
> trouble.  Try linux-ppp@vger.rutgers.edu
> 
> Good luck,
> -bp
> --
> B. James Phillippe <bryan@terran.org>
> Linux Software Engineer, WGT Inc.
> http://earth.terran.org/~bryan
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34
  1998-06-23  4:40 help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34 Darren Kruger
  1998-06-23  5:10 ` B. James Phillippe
@ 1998-06-23 12:11 ` Paul Tomblin
  1 sibling, 0 replies; 5+ messages in thread
From: Paul Tomblin @ 1998-06-23 12:11 UTC (permalink / raw)
  To: axp-list

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34
  1998-06-23  5:10 ` B. James Phillippe
  1998-06-23  5:59   ` help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34y Harry Mangalam
@ 1998-06-24  2:18   ` Darren Kruger
  1 sibling, 0 replies; 5+ messages in thread
From: Darren Kruger @ 1998-06-24  2:18 UTC (permalink / raw)
  To: axp-list

On Mon, 22 Jun 1998, B. James Phillippe wrote:

> On Mon, 22 Jun 1998, Darren Kruger wrote:
> > 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.)
> 
> There must be a HOWTO out there with some information bass-ackwards.  Try
> using the interface IP address of your EXTERNAL connection (your PPP
> device) with the -V flag, or better yet, do it like this:

as someone pointed out, there is an howto under /usr/doc/HOWTO/mini (what
makes a HOWTO mini as opposed to major?) for IP masquerading that tries to
explain all of this.  This is the broken one, as it says to have the -W or
-V option pointing to the ethernet (maqueraded network) interface.  The
man page on ipfwadm is very unclear about those two options two saying
"Optional address (or name in case of -W) of an interface via which a
packet is received, or via which is packet is going to be sent."

> ipfwadm -F -a accept -m -S 10.0.0.0/24 -W ppp0

this worked for me, thanks.  I figured it was something simple like this,
but as I had not seen any one mention IP masquerading on this list, i did
not know if anyone was using it (or if there was some problem with the
alpha port of it)

now i can be off and do more interesting things, like dial-on-demand and
setting up some proxy servers.  Thanks!

Darren
---
"The truth is out there, but so are lies"	- X-Files
"The truth sets you free"			- Conspiracy Theory


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-06-24  2:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-23  4:40 help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34 Darren Kruger
1998-06-23  5:10 ` B. James Phillippe
1998-06-23  5:59   ` help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34y Harry Mangalam
1998-06-24  2:18   ` help on IP masquerading on AS4/200 w RH5.0 kernal v2.0.34 Darren Kruger
1998-06-23 12:11 ` Paul Tomblin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox