Changes between Version 88 and Version 89 of wireless/wifi


Ignore:
Timestamp:
01/25/2023 09:00:30 PM (15 months ago)
Author:
Ryan Erbstoesser
Comment:

update iptables to possible simpler example. previous example was not working for a demo

Legend:

Unmodified
Added
Removed
Modified
  • wireless/wifi

    v88 v89  
    552552EOF
    553553}}}
    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:
     5541. 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:
    555555{{{#!bash
    556556cat << EOF > /etc/dnsmasq.conf
     
    563563systemctl restart dnsmasq
    564564}}}
    565 1. configure Linux NAT routing. We will do this for the current boot and use that configuration to store hooks for subsequent reboots:
     5651. Configure Linux NAT routing. We will do this for the current boot and use that configuration to store hooks for subsequent reboots:
    566566{{{#!bash
    567567# enable forwarding on bootup
    568568echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf
    569569
    570 # configure NAT via iptables and then save its config to the restore script
     570# Configure NAT via iptables and then save its config to the restore script
    571571iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    572 iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
     572iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT
    573573iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
    574574iptables-save > /etc/iptables.ipv4.nat