icmptunnel
icmptunnel copied to clipboard
Client dont have internet
on Client i dont have internet , also i ping 4.2.2.4 or 8.8.8.8 but failed .
Can you describe the network setup?
By seeing the previous issue, I think you have not updated client.sh.
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 ?
I didn't understand your point. You will need to add the correct IP address of your server in client.sh.
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 ?
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