USB Internet sharing stopped working after Wifi sharing

asked 2018-06-17 23:30:32 +0200

jeskata gravatar image

Xperia X running Mouhijoki, I had been running Wifi AP (and had phone in flight mode), when I came home and connected USB, routing no longer worked. Tried re-running the script I use; [nemo@Sailfish ~]$ cat netshare echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/iptables -t nat -A POSTROUTING -o rmnet_data0 -j MASQUERADE /sbin/iptables -A FORWARD -i rmnet_data0 -o rndis0 -m state --state RELATED,ESTABLISHED -j ACCEPT /sbin/iptables -A FORWARD -i rndis0 -o rmnet_data0 -j ACCEPT

but that did not help. Had to restart and then it worked.

edit retag flag offensive close delete