Re: Finished: CALL FOR TESTERS Ralink wireless run(4) usb dr
This is my configuration:
/etc/rc.conf
/etc/pf.conf
/usr/local/etc/dhcpd.conf
/etc/hostapd.conf
This is my configuration:
/etc/rc.conf
Code:
ifconfig_em0="inet 192.168.0.1 netmask 255.255.255.0"
wlans_run0=wlan0
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="inet 192.168.2.1 netmask 255.255.255.0 ssid mik mode 11g channel 11"
gateway_enable="YES"
hostapd_enable="YES"
/etc/pf.conf
Code:
ext_if="em0"
int_if="wlan0"
set block-policy return
set skip on lo
# nat
nat on $ext_if from !($ext_if) -> ($ext_if:0)
pass keep state
/usr/local/etc/dhcpd.conf
Code:
option domain-name "example.org";
# opendns
option domain-name-servers 208.67.222.222, 208.67.220.220;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.10 192.168.2.100;
option routers 192.168.2.1;
}
/etc/hostapd.conf
Code:
interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=mik
wpa=1
wpa_passphrase=passphrase
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP