Changes between Version 60 and Version 61 of wireless/wifi


Ignore:
Timestamp:
06/18/2021 06:11:00 PM (18 months ago)
Author:
Cale Collins
Comment:

refined instructions for Routed Access Point when using Ubuntu

Legend:

Unmodified
Added
Removed
Modified
  • wireless/wifi

    v60 v61  
    488488
    489489Configuration:
    490 
     4901. Kill systemd-resolved process to avoid conflict with dnsmasq
     491{{{#!bash
     492systemctl stop systemd-resolved
     493systemctl mask systemd-resolved
     494}}}
     4951. Remove simlinked resolve.conf and recreate the file with your prefered nameserver
     496{{{
     497rm /etc/resolv.conf
     498echo nameserver 8.8.8.8 | tee /etc/resolv.conf
     499}}}
     5001. Update apt-get and install dnsmasq
     501{{{#!bash
     502apt-get update
     503apt-get install dnsmasq -y
     504}}}
    4915051. configure your WAN and WLAN interfaces in /etc/network/interfaces. Here we will use eth0 as our WAN configured to obtain IP configuration via DHCP from the upstream provider and wlan0 as our WLAN configured with a DHCP server for a private subnet on the 10.0.0/24 network:
    492506{{{#!bash
     
    512526dhcp-range=10.0.0.10,10.0.0.200,2h
    513527EOF
     528}}}
     5291. Restart the dnsmasq service
     530{{{#!bash
     531systemctl restart dnsmasq
    514532}}}
    5155331. configure Linux NAT routing. We will do this for the current boot and use that configuration to store hooks for subsequent reboots:
     
    530548echo 1 > /proc/sys/net/ipv4/ip_forward
    531549}}}
     5501.  Kick off your AP
     551{{{#!bash
     552hostapd hostapd-phy1.conf &
     553}}}
     554
    532555
    533556