From 4621880b85e67a993bd357fe87a046a4218a06c9 Mon Sep 17 00:00:00 2001 From: Mikkel Schmidt Date: Tue, 20 Aug 2024 14:04:51 +0200 Subject: [PATCH] Hotspot: disable packet forwarding (no internet forwarding) --- src/modules/hotspot/start_chroot_script | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/hotspot/start_chroot_script b/src/modules/hotspot/start_chroot_script index 384d29d73..d7fcc848e 100755 --- a/src/modules/hotspot/start_chroot_script +++ b/src/modules/hotspot/start_chroot_script @@ -59,7 +59,9 @@ dhcp-range=192.168.50.150,192.168.50.200,255.255.255.0,12h " >> /etc/dnsmasq.conf -sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g' /etc/sysctl.conf +# Don't forward traffic between interfaces (no internet connection forwarding over hotspot) +# sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g' /etc/sysctl.conf +sed -i 's/net.ipv4.ip_forward=1/#net.ipv4.ip_forward=1/g' /etc/sysctl.conf cp /etc/network/interfaces /etc/network/interfaces-backup echo "" > /etc/network/interfaces