Changes between Version 60 and Version 61 of wireless/wifi
- Timestamp:
- 06/18/2021 06:11:00 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
wireless/wifi
v60 v61 488 488 489 489 Configuration: 490 490 1. Kill systemd-resolved process to avoid conflict with dnsmasq 491 {{{#!bash 492 systemctl stop systemd-resolved 493 systemctl mask systemd-resolved 494 }}} 495 1. Remove simlinked resolve.conf and recreate the file with your prefered nameserver 496 {{{ 497 rm /etc/resolv.conf 498 echo nameserver 8.8.8.8 | tee /etc/resolv.conf 499 }}} 500 1. Update apt-get and install dnsmasq 501 {{{#!bash 502 apt-get update 503 apt-get install dnsmasq -y 504 }}} 491 505 1. 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: 492 506 {{{#!bash … … 512 526 dhcp-range=10.0.0.10,10.0.0.200,2h 513 527 EOF 528 }}} 529 1. Restart the dnsmasq service 530 {{{#!bash 531 systemctl restart dnsmasq 514 532 }}} 515 533 1. configure Linux NAT routing. We will do this for the current boot and use that configuration to store hooks for subsequent reboots: … … 530 548 echo 1 > /proc/sys/net/ipv4/ip_forward 531 549 }}} 550 1. Kick off your AP 551 {{{#!bash 552 hostapd hostapd-phy1.conf & 553 }}} 554 532 555 533 556