Subject: Re: sharing a cable connection
To: Louis <razbitum@yahoo.com>
From: Lars Kaislaniemi <klasse@welho.com>
List: netbsd-help
Date: 07/25/2001 06:40:40
25.7.2001 1:36:28, Louis <razbitum@yahoo.com> wrote:
>
> Hi,
>
>I ve got a small network at home and a cable
>connection that i d like to share.
>I had a look at the documentation but after several
>tries, it still doesn t work.
I got my own cable modem connection shared this way:
- Let kernel be what it was, there's no need to compile it for NATing.
- Configure both interfaces so they work (that is, you can ping both the
LAN and Internet machines etc.).
- Set 'ipfilter=YES' and 'ipnat=YES' in rc.conf.
- Set sysctl -w net.inet.ip.forwarding=1.
- Configure ipnat.conf (and definitely you should have a firewall, so
configure ipf.conf too). Your ipnat.conf seems to be ok...
- Run 'ipnat -CF -f /etc/ipnat.conf' (and 'ipf -Fa -f /etc/ipf.conf').
Be happy. :)
--
quubba / Lasse Kaislaniemi