Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client dont have internet #22

Open
Mehran opened this issue Jan 12, 2017 · 6 comments
Open

Client dont have internet #22

Mehran opened this issue Jan 12, 2017 · 6 comments

Comments

@Mehran
Copy link

Mehran commented Jan 12, 2017

on Client i dont have internet , also i ping 4.2.2.4 or 8.8.8.8 but failed .

@DhavalKapil
Copy link
Owner

Can you describe the network setup?

@DhavalKapil
Copy link
Owner

By seeing the previous issue, I think you have not updated client.sh.

@Mehran
Copy link
Author

Mehran commented Jan 13, 2017

Tunnel established but no internet . here is my client.sh

#!/bin/sh

# Assigining an IP address and mask to 'tun0' interface
ifconfig tun0 mtu 1500 up 10.0.1.2 netmask 255.255.255.0

# Modifying IP routing tables
route del default
# 'server' is the IP address of the proxy server
# 'gateway' and 'interface' can be obtained by usint the command: 'route -n'
route add -host xx.xx.xx.xx gw 10.211.55.1 dev eth0
route add default gw 10.0.1.1 tun0

for this senario am i must have Reply ping of my server ip ?

@DhavalKapil
Copy link
Owner

I didn't understand your point. You will need to add the correct IP address of your server in client.sh.

@Mehran
Copy link
Author

Mehran commented Jan 17, 2017

as i understand i must change this line ? route add -host xx.xx.xx.xx gw 10.211.55.1 dev eth0 . or i must change something else ?

@javed454
Copy link

javed454 commented Aug 5, 2019

I edited my client.sh and gave the I.P of the server in client.sh but still the client can't connect to internet

While analyzing logs in wireshark I found the client accessing internet from it's wlan0 I.P address but not from tun0 (10.0.1.2) I.P address
Here is the default route in my client
student@ubuntu:/Downloads/DhavalKapil-icmptunnel-267a9ec$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.1.1 0.0.0.0 UG 0 0 0 tun0
10.0.1.0 * 255.255.255.0 U 0 0 0 tun0
link-local * 255.255.0.0 U 1000 0 0 tun0
student@ubuntu:
/Downloads/DhavalKapil-icmptunnel-267a9ec$

Since the default route is 10.0.1.1 ideally I should have internet connection but client still doesn't have any access

Please help me on this

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants