* Routing though PPP connection
@ 1996-08-07 7:19 Johan Sarkinen
1996-08-07 7:43 ` Richard Henderson
1996-08-07 14:29 ` Doug DeJulio
0 siblings, 2 replies; 3+ messages in thread
From: Johan Sarkinen @ 1996-08-07 7:19 UTC (permalink / raw)
Hi,
after reading everything I could find and I think, tried every variant of a=
rgs
to route(8) and still don't get it to work...
Here's my wanted funktionality: I want to have my Linux machine, hereafter =
called
MY-GW, working as a Internet gateway for my local network, i.e. Internet co=
mpletely =
available for all machines on the local network.
MY-GW connects to my Internet operator via PPP, dynamical IP, and everythin=
g works
fine on it (ping, DNS, ftp, www, ...).
On my clients, Macintoshes, I can ping MY-GW and use services running on it=
,
including world-wide DNS. I've got this handled smart, if I'm connected or =
not.
(Cached named mini-howto, PPP-HOWTO and other documents - excellent help!)
But now:
1. Isn't there some way to use route(8) to set up proper network routes or
must I use routed/gated.
2. If gated is required, where can I get one adopted, preferable binary, fo=
r
axp. I got the latest I found from ftp.redhat.com and some other place
(the sources) but can't get them compiled - haven't had time to get into=
the
details...
3. If routed(?) is enough, how should I write the /etc/networks file. I thi=
nk
the man page is a little bit hard to read (for the novice I am).
Someone got an example?
4. Is there any other trick one can use to get this up and running?
(I've read about the IP Masquarade, but the ipfw(8) command isn't suppor=
ted
on my axp with kernel 1.3.90 - at least what I've read in net-tools pack=
ages
found by me.)
MY-GW: Noname (AXPpci33/166), RedHat 3.0.03, Kernel 1.3.90.
Using dip to make ppp connection to my internet operator (manually activati=
on for =
the time beeing, I want this to be handled automatically when any user requ=
ests =
internet resources. But that's a later problem...
Kindly Johan S=E4rkinen, johan@memtek.se
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Routing though PPP connection
1996-08-07 7:19 Routing though PPP connection Johan Sarkinen
@ 1996-08-07 7:43 ` Richard Henderson
1996-08-07 14:29 ` Doug DeJulio
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1996-08-07 7:43 UTC (permalink / raw)
> 4. Is there any other trick one can use to get this up and running?
> (I've read about the IP Masquarade, but the ipfw(8) command isn't
> supported on my axp with kernel 1.3.90 - at least what I've read in
> net-tools packages found by me.)
I'm happily using ipfwadm on an alpha with a 2.0.11 kernel to do just
what you want. It compiles out of the box; I believe there was one
print command that scaled time wrong for the alpha, but is otherwise
works great. I believe linux/Documentation/Changes has a pointer to
the home site for this package.
Like you, I've got dynamic IP address assignments on the PPP side. The
internal network side is using the non-routed 192.168.2.0 network.
I apppend the rc script that is invoked just after the network is
initialized in states 3 and 5. The documentation for ipfwadm is
somewhat thin; it took me a bit to figure out what it wanted to do its
thing.
r~
-----
#!/bin/sh
#
# fw.init Bring up/down the masquerade firewall
#
# Source function library.
. /etc/rc.d/init.d/functions
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /sbin/ipfwadm ] || exit 0
# See how we were called.
case "$1" in
start)
echo "Starting IP Masquerading"
ipfwadm -F -i accept -S 192.168.2.0/8 -D 0.0.0.0/0 -m
ipfwadm -M -s 3600 120 300
;;
stop)
ipfwadm -F -d accept -S 192.168.2.0/8 -D 0.0.0.0/0 -m
;;
esac
exit 0
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Routing though PPP connection
1996-08-07 7:19 Routing though PPP connection Johan Sarkinen
1996-08-07 7:43 ` Richard Henderson
@ 1996-08-07 14:29 ` Doug DeJulio
1 sibling, 0 replies; 3+ messages in thread
From: Doug DeJulio @ 1996-08-07 14:29 UTC (permalink / raw)
On Wed, 7 Aug 1996, Johan Sarkinen wrote:
> Here's my wanted funktionality: I want to have my Linux machine, hereafter called
> MY-GW, working as a Internet gateway for my local network, i.e. Internet completely
> available for all machines on the local network.
> MY-GW connects to my Internet operator via PPP, dynamical IP, and everything works
> fine on it (ping, DNS, ftp, www, ...).
In order to do what you want, you have to have control of the routing
information on the *other* side of the PPP link as well as on your own side.
If your provider won't help you with this, you have to do it some other way,
like via masqerading.
My home network has my Alpha, a desktop PC, a laptop PC, and a Mac SE/30, and
I connect it all to the net with masqerading through my Alpha. It works
(except for FTP/RealAudio, because I can't get modules to load, but that's
minor).
> But now:
> 1. Isn't there some way to use route(8) to set up proper network routes or
> must I use routed/gated.
You don't need a daemon if you've got the help of your provider, and if you
don't have that help, it won't work even with a daemon.
> 4. Is there any other trick one can use to get this up and running?
> (I've read about the IP Masquarade, but the ipfw(8) command isn't supported
> on my axp with kernel 1.3.90 - at least what I've read in net-tools packages
> found by me.)
The ipfw command isn't supported, but ipfwadm works.
I had to explicitly masquerade individual machines instead of my local net
(ie. "ipfwadm -F -a masq -S 192.168.1.0/24 -D 0.0.0.0/0 -p all" didn't work,
but "ipfwadm -F -a masq -S 192.168.1.3 -D 0.0.0.0/0 -p all" does work).
I have the ip-up script that PPP calls turn on masqerading, and ip-down turns
it off. I also run a cacheing nameserver on the firewalling box. All of my
other hosts are told that box is their nameserver and gateway.
--
Doug DeJulio | mailto:ddj@aisb.org
Ancient Illuminated Seers of Bavaria | http://www.aisb.org/~ddj/
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-08-07 14:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-07 7:19 Routing though PPP connection Johan Sarkinen
1996-08-07 7:43 ` Richard Henderson
1996-08-07 14:29 ` Doug DeJulio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox