Freebsd machine as a wireless access point ?
    Dirk-Willem van Gulik 
    dirkx at webweaving.org
       
    Fri Apr 23 06:15:10 PDT 2004
    
    
  
On Fri, 23 Apr 2004, Darryl Hoar wrote:
> I have a spare PC with Freebsd installed on it.  Can I configure
> this machine to be a wireless access point ?
Install a prism 2 card and do something like (assuming fxp0
is your upstream iface and wi0 your card in AP mode).
rc.conf
	ifconfig_wi0="inet 10.0.0.1/24 ssid myap channel 11 mediaopt hostap"
	gateway_enable="YES"
	natd_enable="YES"
	natd_interface="fxp0"
Then install from ports isc-dhcpd with a config like:
	ddns-update-style none;
	always-broadcast on;
	subnet 10.0.0.0 netmask 255.255.255.0 {
                range  10.0.0.10 10.0.0.100;
                option broadcast-address 10.0.0.255;
                option subnet-mask 255.255.255.0;
                option routers 10.0.0.1;
	}
You rpopralby want do add a crrect
                option domain-name-servers 10.0.0.1;
etc, etc.
The above is not secure in any way - so you may want to add WEP
for a start and then get more serious; add ipfw packet filtering
and nail things shut.
DW.
    
    
More information about the freebsd-questions
mailing list