Subject: Re: IP Masquerade
To: None <netbsd-help@netbsd.org>
From: Bruce Anderson <brucea@wavefront.com>
List: netbsd-help
Date: 10/18/1998 00:32:00
% cat /etc/netstart.local
sysctl -w net.inet.tcp.rfc1323=0
if [ -f /etc/ipnat.conf ]; then
sysctl -w net.inet.ip.forwarding=1;
echo 'starting IP network address translation (ipnat)...';
/usr/sbin/ipnat -f /etc/ipnat.conf
fi
#No spaces allowed
BA-
On Sat, Oct 17, 1998 12:22 PM, Sean Clarke <mailto:sean@bxfm.com> wrote:
> I still think I need to change the kernel, I tried that and I just got
> net.inet.ip.forwarding = 0
> top level name in is invalid
> top level name YES in YES is invalid
>
> --Sean
> On Sat, 17 Oct 1998, Yong S. Yi wrote:
>
> > On Sat, 17 Oct 1998, Colin BRADLEY wrote:
> > >Sean Clarke wrote:
> > >
> > >/*
> > > * Yea I used to use linux but just a few months ago I got into the
BSD's.
> > > * I know there is a package just called "ppp" that does the exact
same
> thing
> > > * pretty much as ip_masq. I don't know where I got it from and I
never
> made
> > > * a backup so I am kinda screwed. If anyone knows where "ppp" is for
> making BSD act as a router please
> > > * tell me!
> > >
> > > Forget using ppp as a router. Just run a ppp connection on
> > > your one interface, set up your new "router" box as your
> > > default gateway for your other boxes, and use sysctl to
> > > turn on ip forwarding.
> > >
> > > % sysctl -w net.inet.ip.forwarding = YES
> >
> > Yes, but the guy is still going to need to get his PPP stuff working,
no?
> > Also, to enable IP forwarding, he will have to modify the kernel
> > configuration file (not sure of GENERIC does it) in order to have
kernel
> > support for it.
> >
> > > or something like that, the man page tells you how to do it. I've
> > > just got it set up in /etc/netstart.local to do that..
> > >
> > > Regards,
> > >
> > > - Colin
> >
>
>
>
>