Wireless Access Point Gateway

Well akhirnya selesai juga untuk dapat membangun access point, yang dibutuhkan hanya cvsup, upgrade dan compile kernel. Untuk card digunakan chipset atheros.
Untuk cvsup sama seperti OpenBSD, bedanya di "tag", di OpenBSD biasa di tulis
tag=. #untuk current
atau
tag=OpenBSD_x_x #branch
di FreeBSD bisa di tulis:
tag=. #untuk versi current ,
atau
tag=RELENG_x_x #untuk branch
dan
tag=RELENG_x_x_x_RELEASE #untuk versi Release
supaya sistem mengenali card wireless kita, edit file GENERIC dan tambahkan
device wlan # 802.11 support
device wlan_wep # 802.11 WEP support
device wlan_ccmp # 802.11 CCMP support
device wlan_tkip # 802.11 TKIP support
device wlan_xauth # 802.11 external authenticator support
device wlan_acl
device ath # Atheros 5xxx wireless NICs.
device ath_hal
device ath_rate_amrr
dan tambahkan module untuk PF
device pf # required
device pflog # optional
device pfsync # optional
#ALTQ
options ALTQ
options ALTQ_CBQ # Class Bases Queuing (CBQ)
options ALTQ_RED # Random Early Detection (RED)
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC)
options ALTQ_PRIQ # Priority Queuing (PRIQ)
options ALTQ_NOPCC # Required for SMP build
kemudian lakukan compile kernel, make build, kemudian reboot maka wireless card kita sudah terinstall dan mesin siap di setting sebagai access point.
$dmesg | grep ath0
ath0:
ath0: Ethernet address: 00:11:95:bd:67:8c
ath0: mac 7.9 phy 4.5 radio 5.6
$ifconfig ath0 inet 10.10.10.1 netmask 255.255.255.0 mediaopt hostap ssid wap up
masukan ke rc.conf
$ee /etc/rc.conf
ifconfig_ath0="inet 10.10.10.1 netmask 255.255.255.0 mediaopt hostap ssid wap"
$ifconfig ath0
ath0: flags=8843
inet6 fe80::211:95ff:febd:678c%ath0 prefixlen 64 scopeid 0x1
inet 10.10.10.1 netmask 0xffffff00 broadcast 10.10.10.255
ether 00:11:95:bd:67:8c
media: IEEE 802.11 Wireless Ethernet autoselect
status: associated
ssid wap channel 1 bssid 00:11:95:bd:67:8c
authmode OPEN privacy OFF deftxkey 0
txpowmax 36 protmode CTS dtimperiod 1 bintval 100
$sysctl net.inet.ip.forwarding=1 , atau masukan di /etc/sysctl.conf
$ee /etc/sysctl.conf
net.inet.ip.forwarding=1
edit /etc/pf.conf
$ee /etc/pf.conf
ext_if0="rl0"
int_if_wlan0="ath0"
internal_net="10.10.10.0/24"
external_addr="194.169.30.10/32"
scrub in all
nat on $ext_if0 from !($ext_if0) -> ($ext_if0:0)
set di client
$ifconfig ath0 inet 10.10.10.2 netmask 255.255.255.0 ssid wap up
masukan ke rc.conf
$ee /etc/rc.conf
ifconfig_ath0="inet 10.10.10.2 netmask 255.255.255.0 ssid wap"
$ifconfig ath0
ath0: flags=8843
inet6 fe80::211:95ff:febd:6835%ath0 prefixlen 64 scopeid 0x2
inet 10.10.10.2 netmask 0xffffff00 broadcast 10.10.10.255
ether 00:11:95:bd:68:35
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
status: associated
ssid wap channel 1 bssid 00:11:95:bd:67:8c
authmode OPEN privacy OFF deftxkey 0
txpowmax 36 protmode CTS roaming MANUAL bintval 100
$ ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1): 56 data bytes
64 bytes from 10.10.10.1: icmp_seq=0 ttl=64 time=0.344 ms
64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=0.254 ms
64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=0.251 ms
64 bytes from 10.10.10.1: icmp_seq=3 ttl=64 time=0.246 ms
64 bytes from 10.10.10.1: icmp_seq=4 ttl=64 time=0.253 ms
^C
--- 10.10.10.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.246/0.270/0.344/0.037 ms
dari hasil testing untuk range saat ini hanya dengan menggunakan antenna standart default dari card bisa mencapai +/- 50m indoor/outdoor (menurut spec untuk indoor/outdoor=100m/300m,lumayan ;D), untuk authentikasi bisa gunakan hostapd/wpa_supplicant bisa dengan menggunakan metode WPA-PSK/WPA-EAP/WPA2.
