Created
December 8, 2021 16:09
-
-
Save kcxt/1ebb358d7d4bce22565ef430796518b9 to your computer and use it in GitHub Desktop.
Script to fix waydroid networking on postmarketOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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