Skip to content

Commit

Permalink
Hotspot: disable packet forwarding (no internet forwarding)
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Oct 3, 2024
1 parent 6e706ae commit 4621880
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/hotspot/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4621880

Please sign in to comment.