Ask / Submit
1

[Sipoonkorpi/Xperia X] App Internet connectivity fails after tethering

asked 2019-01-16 12:10:02 +0200

jeskata gravatar image

updated 2019-01-17 11:15:59 +0200

jiit gravatar image

I have encountered issues with this; after enabling tethering over USB, all phone apps' Internet connnectivity gets really slow or inexistent.

Also an IMAP account stops syncing while gmail still sync.

I have a script to set up IP forwarding and iptables. Have tried flushing the rules and disabling forwarding, still does not return to normal.

Still, connection is good through USB.

Have tried setting flight mode several times, does not help. Only a reboot solves the problem.

Tried running my script in Terminal after a reboot without ever having a USB connection, immediately the same problem arises.

This is my "netshare" script:

echo 1 > /proc/sys/net/ipv4/ip_forward

/sbin/iptables -F

/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

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-01-16 12:21:23 +0200

jeskata gravatar image

updated 2019-01-16 12:31:36 +0200

OK, I think I have solved this; After reboot there was already iptables rules set up, which may not have been the case before. So flushing them is not a good idea. Removed /sbin/iptables -F from my script and it seems to be working.

Don't know where I got this script originally.

edit flag offensive delete publish link more

Comments

you have probably missed the release note about Sipoonkorpi in the connectivity section

A new firewall system using iptables is implemented (rules set in configuration files), no UI yet Firewall is set to block ICMP

LinuxByChoice ( 2019-01-16 12:57:21 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2019-01-16 12:10:02 +0200

Seen: 110 times

Last updated: Jan 16