04-02-2023, 11:21 PM 
		
	
	
		Hi I found that after turning on wifi hotspot (which required having wifi turned on) I needed to enable routing through the phone's. Here's the script I use for this, must be invoked with sudo:
If I don't run this on the pinephone I get DNS on clients but no internet.
	
	
	
	
Code:
#!/bin/bash
if [ "`whoami`" != root ]; then
    echo "You are not root"
    exit 1
fi
iptables -I INPUT 1 -s 10.42.0.0/24 -j ACCEPT
iptables -I OUTPUT 1 -s 10.42.0.0/24 -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 10.42.0.0/24If I don't run this on the pinephone I get DNS on clients but no internet.

