icmptunnel icon indicating copy to clipboard operation
icmptunnel copied to clipboard

Client dont have internet

Open Mehran opened this issue 8 years ago • 6 comments

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

Mehran avatar Jan 12 '17 16:01 Mehran

Can you describe the network setup?

DhavalKapil avatar Jan 12 '17 22:01 DhavalKapil

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

DhavalKapil avatar Jan 12 '17 22:01 DhavalKapil

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 ?

Mehran avatar Jan 13 '17 15:01 Mehran

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

DhavalKapil avatar Jan 13 '17 22:01 DhavalKapil

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 ?

Mehran avatar Jan 17 '17 19:01 Mehran

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

javed454 avatar Aug 05 '19 23:08 javed454