gateway_enable="NO"

Lokadamus lokadamus at gmx.de
Mon Nov 29 01:07:04 UTC 2010


Am 25.11.2010 05:38, schrieb Lamac Lamaco:
> The system installed now and in adresses /etc or /etc/rc.d there is no
> script.
> Does system work in default as ROUTER?
> I ask this question, because i tried it works.
> As it is written  "gateway_enable="NO" # Set to YES if this host will be a
> gateway" in the address ->  /etc/defaults/rc.conf
>   But if I write  gateway_enable="NO"  in the address /etc/rc.conf , my
> system will work in as ROUTER. I say this because the host in my system's
> local network can ping my system's global IP. As i know it can be only in
> ROUTER.
>
> Thanks.
> _______________________________________________
> 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"
>
No, in default FreeBSD isn't working as a router.
Look with sysctl at:
net.inet.ip.fw.default_to_accept
When is it set to 1, FreeBSD is working as a router, with a value of 0 
it doesn't work as a router.
Look with tcpdump where networktraffic is going.

http://www.freebsd.org/doc/handbook/network-routing.html
http://www.freebsd.org/doc/handbook/network-natd.html


More information about the freebsd-questions mailing list