Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2007 20:48:49 -0600
From:      Modulok <modulok@gmail.com>
To:        "Jonathan Horne" <freebsd@dfwlp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: quick router question
Message-ID:  <64c038660707141948l6f577355hd1473eacfacbd542@mail.gmail.com>
In-Reply-To: <200707142026.50542.freebsd@dfwlp.com>
References:  <200707142026.50542.freebsd@dfwlp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/14/07, Jonathan Horne <freebsd@dfwlp.com> wrote:
> i want to build a quick a dirty router for a dev environment.  this freebsd
> is
> has 3 interfaces, and ill want anything to be able to access anything, no
> firewalling.
>
> back in the day, i would accomplish the same thing in linux by
> setting /proc/sys/net/ipv4/ip_forward to 1.  is the "be a network gateway"
> from installation the only thing i need to set to allow this to happen?
>
> thanks,
> --
> Jonathan Horne
> http://dfwlpiki.dfwlp.org
> freebsd@dfwlp.com
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

You can set the sysctl variable like so:

sysctl net.inet.ip.forwarding=1;

You can make this change perist across a reboot by appending the
following to /etc/rc.conf:

gateway_enable="YES"

-Modulok-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64c038660707141948l6f577355hd1473eacfacbd542>