Skip to content

Instantly share code, notes, and snippets.

@calebccff
Created December 8, 2021 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebccff/1ebb358d7d4bce22565ef430796518b9 to your computer and use it in GitHub Desktop.
Save calebccff/1ebb358d7d4bce22565ef430796518b9 to your computer and use it in GitHub Desktop.
Script to fix waydroid networking on postmarketOS
#!/bin/ash
# You may need to disable nftables for this to work, it's probably a bad idea to do so
sysctl net.ipv4.ip_forward=1
iptables -P FORWARD ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.250.0/24
echo "ip route add default via 192.168.250.1 dev eth0; setprop net.dns1 1.1.1.1" | waydroid shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment