From 5ea871fe0c9e865d0a65d5da2bcc4f191f0851be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 16 Feb 2024 18:12:19 +0100 Subject: [PATCH] added ip tables routing to readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 6541c31..bd253f0 100644 --- a/README.md +++ b/README.md @@ -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: ```