added ip tables routing to readme

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-16 18:12:19 +01:00
parent 866ccccb5a
commit 5ea871fe0c
1 changed files with 14 additions and 0 deletions

View File

@ -198,6 +198,20 @@ Now set your Wifi country code for the interface:
`sudo raspi-config` > "Localisation Options" > "WLAN Country" > Select your country code by pressing Enter > "Ok" > "Finish"
Now route the wifi0 interface to the eth0 interface. This is needed for later.
Edit the sysctl.conf file with `sudo nano /etc/sysctl.conf` and uncomment the line `net.ipv4.ip_forward=1`.
Then save and exit.
Last step for the routing is to enable a firewall rule on the Pi
```
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo netfilter-persistent save
```
Now enable and start all required services and restart:
```