Tether wifi not sharing internet

Kernels & Hardware, configuring network, installing services

Tether wifi not sharing internet

Postby tvrulesme » 2017-12-17 06:01

I am running Debian GNU/Linux 8.9 (jessie) on a raspberry pi. I have a requirement to tether the wifi of this so that for instance I can pair openload from the same network.

My OpenVPN config is working fine and I can access the internet from the pi itself but I have no internet access when I connect to the tethered wifi using my phone. Can anyone spot something I am doing wrong:

Code: Select all
sudo sysctl -p
net.ipv4.ip_forward = 1


OpenVpn is running

Code: Select all
service openvpn status
● openvpn.service - OpenVPN service
   Loaded: loaded (/lib/systemd/system/openvpn.service; enabled)
   Active: active (exited) since Sun 2017-12-17 06:06:27 GMT; 25min ago
  Process: 1325 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 1325 (code=exited, status=0/SUCCESS)

Dec 17 06:06:27 osmc systemd[1]: Started OpenVPN service.


and I can connect to internet

Code: Select all
ping www.google.com
PING www.google.com (209.85.203.147): 56 data bytes
64 bytes from 209.85.203.147: seq=0 ttl=49 time=30.423 ms


iptables have the following rules applied

Code: Select all
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
iptables -A FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT


resulting in

Code: Select all
iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere           

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination     


tether the wifi which I can see and connect to using my iPhone

Code: Select all
connmanctl tether wifi on mySSID AnAwesomePassword


but no internet connection when I connect to this wifi :(
tvrulesme
 
Posts: 2
Joined: 2017-12-17 05:46

Re: Tether wifi not sharing internet

Postby tvrulesme » 2017-12-18 05:49

Not sure if this helps but I do see the following conman errors

Code: Select all
Dec 18 06:35:41 osmc connmand[819]: eth0 {add} address 192.168.0.11/24 label eth0 family 2
Dec 18 06:35:41 osmc connmand[819]: Failed to bind UDP listener socket
Dec 18 06:35:41 osmc connmand[819]: Failed to bind UDP listener socket
Dec 18 06:35:41 osmc connmand[819]: Couldn't create listener for index 7 err -5
Dec 18 06:35:41 osmc connmand[819]: Can't add listener tether to DNS proxy
....
Dec 18 06:35:41 osmc connmand[819]: eth0 {add} route 0.0.0.0 gw 192.168.0.1 scope 0 <UNIVERSE>
Dec 18 06:35:41 osmc connmand[819]: Inconsistent IP pool management (start not found)
....
Dec 18 06:35:41 osmc connmand[819]: wlan0 {dellink} index 3 operstate 6 <UP>
Dec 18 06:35:41 osmc connmand[819]: Remove interface from bridge error Invalid argument
tvrulesme
 
Posts: 2
Joined: 2017-12-17 05:46


Return to System configuration

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable