Changes between Version 88 and Version 89 of wireless/wifi
- Timestamp:
- 01/25/2023 09:00:30 PM (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
wireless/wifi
v88 v89 552 552 EOF 553 553 }}} 554 1. configure dnsmasq. Here we will configure it to serve addresses on the 10.0.0/24 network with a pool of 190 addresses from .10 to .200 with a 2hour lease:554 1. Configure dnsmasq. Here we will configure it to serve addresses on the 10.0.0/24 network with a pool of 190 addresses from .10 to .200 with a 2hour lease: 555 555 {{{#!bash 556 556 cat << EOF > /etc/dnsmasq.conf … … 563 563 systemctl restart dnsmasq 564 564 }}} 565 1. configure Linux NAT routing. We will do this for the current boot and use that configuration to store hooks for subsequent reboots:565 1. Configure Linux NAT routing. We will do this for the current boot and use that configuration to store hooks for subsequent reboots: 566 566 {{{#!bash 567 567 # enable forwarding on bootup 568 568 echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf 569 569 570 # configure NAT via iptables and then save its config to the restore script570 # Configure NAT via iptables and then save its config to the restore script 571 571 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 572 iptables -A FORWARD -i eth0 -o wlan0 - m state --state RELATED,ESTABLISHED -j ACCEPT572 iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT 573 573 iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT 574 574 iptables-save > /etc/iptables.ipv4.nat