Connecting networks

Erik Norgaard norgaard at
Tue Dec 11 14:19:19 PST 2007

Alaor Barroso de Carvalho Neto wrote:

> defaultroute=""
> hostname=""
> gateway_enable="YES"
> ifconfig_em0="inet XXX.XXX.XXX.XXX netmask"
> ifconfig_xl0="inet netmask"
> ifconfig_xl1="inet netmask"
> ifconfig_xl2="inet netmask"
> pf_enable="YES"
> pf_rules="/etc/pf.conf"
> pf_flags=""
> pflog_enable="YES"
> pflog_logfile="/var/log/pflog"
> pflog_flags=""

> Thankz guyz for your attention with me! I'm going to have nightmares with
> this trouble.

Summing up, your local networks should be able to communicate accross 
the BSD box once you have gateway_enable="YES", you do not need NAT for 
that to work. If it doesn't work, then your firewall may be blocking.

For access to the Internet from any of the local networks you need to 
configure NAT.

If you need help with that you need to post your pf ruleset. Everything 
else seems correct.

Cheers, Erik

Erik Nørgaard
Ph: +34.666334818                 

More information about the freebsd-questions mailing list