[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
howtos:network_services:running_an_access_point_from_a_slackware_box [2022/11/13 03:28 (UTC)] – [5.4 Socket Status] louigi600howtos:network_services:running_an_access_point_from_a_slackware_box [2023/01/20 09:43 (UTC)] – [4.3 DNS and DHCP Servers] fix typos tim
Line 199: Line 199:
 ===== 4.3 DNS and DHCP Servers ===== ===== 4.3 DNS and DHCP Servers =====
 Now it's time to start dnsmasq. You can actually leave it running from boot if you like or even run specific servers at your choice. I now run separate dnsmasq instances for each AP so I've abandoned Slackware's rc.dnsmasq and start it from my custom network scripts which requires separate config files for each interface (like /etc/dnsmasq/br0.conf and /etc/dnsmasw/wlan1.conf). Now it's time to start dnsmasq. You can actually leave it running from boot if you like or even run specific servers at your choice. I now run separate dnsmasq instances for each AP so I've abandoned Slackware's rc.dnsmasq and start it from my custom network scripts which requires separate config files for each interface (like /etc/dnsmasq/br0.conf and /etc/dnsmasw/wlan1.conf).
-Configuring it is something you should look into to suit best your networking needs ... let's just look at some of the most common tings.+Configuring it is something you should look into to suit best your networking needs ... let's just look at some of the most common things.
 Supposing that you want to assign ip addresses belonging to 192.168.0.0/24 and this are the options you will need: Supposing that you want to assign ip addresses belonging to 192.168.0.0/24 and this are the options you will need:
  
Line 211: Line 211:
   * dhcp-leasefile=/run/dnsmasq/dnsmasq.leases   * dhcp-leasefile=/run/dnsmasq/dnsmasq.leases
   * conf-dir=/etc/dnsmasq.d   * conf-dir=/etc/dnsmasq.d
-The options local and domain allow dnsmasq to tell clients they belong to a domain and in return serve as authoritative for that domain. Some distributions that use NetworkManager will not get local resolution to work unless yo define these 2 options.+The options local and domain allow dnsmasq to tell clients they belong to a domain and in return serve as authoritative for that domain. Some distributions that use NetworkManager will not get local resolution to work unless you define these 2 options.
  
 The options except-interface bind-interfaces and listen-address are particularly useful if you want to run more then one instance of dnsmasq. The options except-interface bind-interfaces and listen-address are particularly useful if you want to run more then one instance of dnsmasq.
Line 597: Line 597:
  
 ===== 5.5 Virtual AP ===== ===== 5.5 Virtual AP =====
-If your wireless NIC supports it you might like to run multiple virtual APs+If your wireless NIC supports it you might like to run multiple virtual APs. As mentioned in Chapter 2 to be able to do this  
 +you will need the "valid interface combinations" sections to have #AP to be greater than one and if you optionally want them to live on separate channels you will need #channels to be greater than 1. 
 +If this is the case then you can add virtual AP like this 
 + 
 +  iw phy0 interface add vap0 type __ap 
 +or 
 +  iw wlan0 interface add vap0 type __ap 
 +   
 +this will create a new virtual AP, arbitrarily called vap0 on which you will need to activate a separate instance of hostapd as explained in Chapter 4. 
 +Incidentally the type can be any of of these (as long as your wireless NIC supports them): 
 + 
 +  * monitor 
 +  * managed  
 +  * wds 
 +  * mesh  
 +  * ibss  
 +  * __ap 
 + 
 + 
 +if you subsequentlt want to remove the virtual AP toy can terminate the hostapd running on it, optionally put the nick in down state and then tell iw you want to delete the virtual device: 
 + 
 +  iw vap0 del 
 +  
  
 ====== 6 Remote Administration ====== ====== 6 Remote Administration ======
 howtos:network_services:running_an_access_point_from_a_slackware_box ()