Date: Fri, 28 Feb 2003 19:45:14 +0100 From: "Roger 'Rocky' Vetterberg" <listsub@401.cx> To: Brian Henning <b1henning@hotmail.com> Cc: freebsd <freebsd-questions@FreeBSD.ORG> Subject: Re: natd Message-ID: <3E5FAE3A.4060701@401.cx> References: <OE448kTNUcWXuwSg6Aq0001e0e8@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Brian Henning wrote: > My local network (192.168.1.0) consists of three machine BSD1 (192.168.1.40) and > BSD2 (192.168.1.42). Both of these machines use gateway/router (BSD3) > 192.168.1.254 > to access the internet. All of these machine are connected to a switch locally. > BSD3 connects to my isp and gets my single ip address that i want to share with > the > rest of my local network. Just a note, these machine get their ip addresses > staticly. > > on my router i recompiled the kernel with these options. > options IPFIREWALL > options IPFIREWALL_VERBOSE #firewall logging capability - optional > options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity > options IPDIVERT #NATD > > i have not added anything to my rc.conf file as of yet. > Eventually i will set up natd and firewall settings in my rc.conf, but can > someone direct me on how to do this manually so i can access the internet > from anywhere on my network. > > r11 is my external network > rl0 is my internal network > > > >>natd -interface rl1 >>ipfw -f flush >>ipfw add divert natd all from any to any via rl1 >>ipfw add pass all from any to any > > > > does this seem correct? > > Thanks for any advice, > > Brian > Add 'sysctl -w net.inet.ip.forwarding=1' to the above commands and you should be surfing in no time. -- R To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E5FAE3A.4060701>