FB-natd
.../conf/FBfw を作成
# ===================================================================== options IPDIVERT # divert sockets (for NAT) options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=500 # =====================================================================
を追加Kernel を make する。
/etc/rc.conf に次の行を追加する。
# =========================== firewall_enable="YES" firewall_type="open" # ------------------------- ## firewall_enable="YES" ## firewall_script="/etc/rc.ipfw" ## firewall_logging="YES" # =========================== natd_enable="YES" natd_program="/sbin/natd" natd_interface="vge0" natd_flags="-config /etc/natd.conf"
/etc/rc.ipfw と /etc/natd.conf を適宜作成する。
echo -n ' IP gateway=YES'sysctl net.inet.ip.forwarding=1 >/dev/null