Nat, dhcpd and ipfw

Chuck Swiger cswiger at mac.com
Sun Mar 19 13:57:40 UTC 2006


David Ulrich wrote:
[ ... ]
> ############### rc.conf ###############
> # -- sysinstall generated deltas -- # Wed Mar 15 14:08:02 2006
> # Created: Wed Mar 15 14:08:02 2006
> # Enable network daemons for user convenience.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> gateway_enable="YES"
> 
> natd_enable="YES"
> natd_interface="re0"
> natd_flags="-s -u -m"
> ifconfig_re0="DHCP"
> dhcpd_enable="YES"
> dhcpd_iface="vr0"
> dhcpd_flags="vr0"
> keymap="swissfrench.iso.acc"
> nfs_server_enable="YES"
> rpcbind_enable="YES"
> saver="fire"
> scrnmap="NO"
> sshd_enable="YES"
> usbd_enable="YES"
> mysql_enable="YES"
> apache_enable="YES"
> firewall_enable="YES"
> firewall_logging_enable="YES"
> firewall_type="open"
> hostname="Beastie.aspirine.li"
> ifconfig_vr0="inet 10.192.168.5 netmask 255.255.255.0"
> 
[ ... ]
> subnet 10.192.168.0 netmask 255.255.255.0 {
>   range 10.192.168.1 10.192.168.4;
>   option domain-name "aspirine.li";
>   option domain-name-servers 10.192.168.5;
> 
>   default-lease-time 600;
>   max-lease-time 7200;
>   option routers 10.192.168.5;
>   option broadcast-address 10.192.168.255;
> }

You need to put named_enable="YES" into /etc/rc.conf and get your nameserver
working on .5, put another working nameserver into your DHCP config, or both.

-- 
-Chuck


More information about the freebsd-questions mailing list