Sie sind auf Seite 1von 2

TwoNICCards

nfe0=ippublic
re0=iplokal

#ee/etc/rc.conf

hostname="squid.hypernet.co.id"
ifconfig_nfe0="inet122.102.xx.xxxnetmask255.255.255.252"sesuaikandgnippublicanda
ifconfig_re0="inet192.168.77.1netmask255.255.255.0"
defaultrouter="122.102.xx.xxx"
sshd_enable="YES"
#Setdumpdevto"AUTO"toenablecrashdumps,"NO"todisable
dumpdev="NO"

gateway_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
natd_enable="YES"
natd_interface="nfe0"
natd_flags=""
dhcpd_enable="YES"
dhcpd_flags="q"

dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="re0"

dhcpd_withumask="022"

#ee/boot/loader.conf
net.inet.ip.fw.default_to_accept="1"
ipfw_load="YES"
ipdivert_load="YES"
optionsIPFIREWALL_DEFAULT_TO_ACCEPT
optionsIPFIREWALL_VERBOSE

#pkginstalliscdhcp43server

#ee/usr/local/etc/dhcpd.conf.

#dhcpd.conf
#
#SampleconfigurationfileforISCdhcpd
#

#optiondefinitionscommontoallsupportednetworks...

optiondomainname"hypernet.co.id"
optiondomainnameservers114.129.23.9,114.129.22.77,120.29.159.53

defaultleasetime600
maxleasetime86400

#Usethistoenble/disabledynamicdnsupdatesglobally.
#ddnsupdatestylenone

#IfthisDHCPserveristheofficialDHCPserverforthelocal
#network,theauthoritativedirectiveshouldbeuncommented.
#authoritative

#Usethistosenddhcplogmessagestoadifferentlogfile(youalso
#havetohacksyslog.conftocompletetheredirection).
logfacilitylocal7

#Noservicewillbegivenonthissubnet,butdeclaringithelpsthe
#DHCPservertounderstandthenetworktopology.
#Thisisaverybasicsubnetdeclaration.

subnet192.168.77.0netmask255.255.255.0{
range192.168.77.10192.168.77.50
optionrouters192.168.77.1
}

#rebootPC

Das könnte Ihnen auch gefallen