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

add how to close and turn back to default route #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ _Note: Although icmptunnel has been successfully tested on Ubuntu 14.04 LTS, it

The tunnel should run and your client machine should be able to access the internet. All traffic will be tunneled through ICMP.

8. To get back to normal. after close the tunnel,you need to change the route,
the simplest way is
```
[sudo] ifconfig dev down
[sudo] ifconfig dev up
```
replace dev with the actual name of device,
this will turn down the network and connect again,thus give you a fresh Routing table

also you can do this manually, i'll suggest you to remember the output at 5. when you first run 'route -n'
you can do this simply by 'route del' and 'route add'(you may wanna to look at client.sh or man this)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wanna is an abbreviation for want to - so you say here effectively want to to

## Architecture

icmptunnel works by creating a virtual tunnel interface(say `tun0`). All the user traffic on the client host is routed to `tun0`. icmptunnel listens on this interface for IP packets. These packets are encapsulated in an ICMP echo packet(i.e. the payload of the ICMP packet is nothing but the original IP packet). This newly generated ICMP packet is sent outside the client machine, to the proxy server, through the restricted internet connection.
Expand Down