quick router question

Modulok modulok at gmail.com
Sun Jul 15 02:48:51 UTC 2007


On 7/14/07, Jonathan Horne <freebsd at 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 at dfwlp.com
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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-


More information about the freebsd-questions mailing list