Code Monkey home page Code Monkey logo

Comments (6)

DhavalKapil avatar DhavalKapil commented on May 16, 2024

Can you describe the network setup?

from icmptunnel.

DhavalKapil avatar DhavalKapil commented on May 16, 2024

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

from icmptunnel.

Mehran avatar Mehran commented on May 16, 2024

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 ?

from icmptunnel.

DhavalKapil avatar DhavalKapil commented on May 16, 2024

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

from icmptunnel.

Mehran avatar Mehran commented on May 16, 2024

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 ?

from icmptunnel.

javed454 avatar javed454 commented on May 16, 2024

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

from icmptunnel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.