Hello everyone.
I'm trying to set up a WIFI Access Point on my FreeBSD 9 machine.
First, I using a simple USB card with urtwn(4), but on FreeBSD 9 there is no driver.
Next I take from work a USB Tp-link card with uses zyd(4) driver, no results.
So I bought Runlink USB WIFI Adapter, that using run(4) driver that supports hostap mode ( I've read that ).
Unfortunately when I setting up a pseudo interface like that:
There is an error:
I have done Kernel rebuild, so maybe it's a problem?
Please help me, I'm frustrated.
Cheers
-- Edit ---
Ok, there is a progress.
I do it like this:
And then all my devices see my network and can connect to it.
But, when connected the local network working fine, but there is no route to global Internet.
--- Edit ---
Ok, i solve this by adding into pf.conf
I'm trying to set up a WIFI Access Point on my FreeBSD 9 machine.
First, I using a simple USB card with urtwn(4), but on FreeBSD 9 there is no driver.
Next I take from work a USB Tp-link card with uses zyd(4) driver, no results.
So I bought Runlink USB WIFI Adapter, that using run(4) driver that supports hostap mode ( I've read that ).
Unfortunately when I setting up a pseudo interface like that:
ifconfig wlan0 create wlandev run0There is an error:
Code:
ifconfig: wlandev: bad value
I have done Kernel rebuild, so maybe it's a problem?
Please help me, I'm frustrated.
Cheers
-- Edit ---
Ok, there is a progress.
I do it like this:
ifconfig wlan0 create wlandev run0 wlanmode hostap
ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid UNITI mode 11g channel 1
ifconfig bridge0 create addm wlan0 addm em0 up
ifconfig bridge0 inet 192.168.1.1 netmask 255.255.255.0
service hostapd start
service isc-dhcpd startAnd then all my devices see my network and can connect to it.
But, when connected the local network working fine, but there is no route to global Internet.
--- Edit ---
Ok, i solve this by adding into pf.conf
Code:
ext_if = "en0"
int_if = "wlan0"
internal_net = "192.168.0.0/24"
nat on $ext_if from $internal_net to any -> ($ext_if)
Last edited by a moderator: