Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » Free-BSD » RC.CONF FreeBSD for VLAN

RC.CONF FreeBSD for VLAN

# This file now contains just the overrides from /etc/defaults/rc.conf.

defaultrouter=”10.252.1.1″
gateway_enable=”YES”
named_enable=”YES”
squid_enable=”YES”
sendmail_enable=”NONE”
sendmail_enable=”NO”
apache22_enable=”YES”
sendmail_submit_enable=”NO”
sendmail_outbound_enable=”NO”
sendmail_msp_queue_enable=”NO”
clear_tmp_enable=”YES”
#if_vlan_load=”YES” –> ada di /boot/loader.conf
saver=”logo”
scrnmap=”NO”

hostname=”firewall.ptpn-11.com”
ifconfig_bge0=”inet 192.168.0.254 netmask 255.255.255.0″
ifconfig_xl0=”inet 10.252.1.3 netmask 255.255.0.0″
#ifconfig_rl0=”inet 192.168.10.111 netmask 255.255.255.0″

keymap=”us.iso”
linux_enable=”YES”
sshd_enable=”YES”
usbd_enable=”NO”

pf_enable=”YES” # Enable PF (load module if required)
pf_rules=”/etc/pf.conf” # rules definition file for pf
pf_flags=”” # additional flags for pfctl startup
pflog_enable=”YES” # start pflogd(8)
pflog_logfile=”/var/log/pflog” # where pflogd should store the logfile
pflog_flags=”” # additional flags for pflogd startup
gateway_enable=”YES” # Enable as LAN gateway

cloned_interfaces=”vlan0 vlan1 vlan2 vlan3 vlan4 vlan5 vlan6″

ifconfig_vlan0=”inet 192.168.10.254 netmask 255.255.255.0 vlan 10 vlandev bge0″
ifconfig_vlan1=”inet 192.168.11.254 netmask 255.255.255.0 vlan 11 vlandev bge0″
ifconfig_vlan2=”inet 192.168.12.254 netmask 255.255.255.0 vlan 12 vlandev bge0″
ifconfig_vlan3=”inet 192.168.13.254 netmask 255.255.255.0 vlan 13 vlandev bge0″
ifconfig_vlan4=”inet 192.168.14.254 netmask 255.255.255.0 vlan 14 vlandev bge0″
ifconfig_vlan5=”inet 192.168.15.254 netmask 255.255.255.0 vlan 15 vlandev bge0″
ifconfig_vlan6=”inet 192.168.16.254 netmask 255.255.255.0 vlan 16 vlandev bge0″

.:GoodLuck:.

Filed under: Free-BSD

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>