Skip to content

sypper-pit/hans

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hans - IP over ICMP

Hans makes it possible to tunnel IPv4 through ICMP echo packets, so you could call it a ping tunnel. This can be useful when you find yourself in the situation that your Internet access is firewalled, but pings are allowed.

http://code.gerade.org/hans/

new versions: https://sourceforge.net/projects/hanstunnel/files/source/

use for compile:

sudo apt install make gcc g++ net-tools
cd hans-1.1
make
sudo cp ./hans /usr/sbin/hans

for create SERVER use:

nano /etc/systemd/system/hans.service

insert

[Unit]
Description=Hans IP over ICMP Server
After=network.target

[Service]
ExecStart=/usr/sbin/hans -s 10.2.2.0 -p you-secret-password -d tun0 -a 10.2.2.1
Restart=always
User=root
Group=root
RestartSec=3
PIDFile=/var/run/hans.pid


[Install]
WantedBy=default.target

and add you service:

sudo systemctl daemon-reload
sudo systemctl enable hans.service
sudo systemctl start hans.service

for create CLIENT use:

nano /etc/systemd/system/hans.service

insert

[Unit]
Description=Hans IP over ICMP Client
After=network.target

[Service]
ExecStart=/usr/sbin/hans -c you-server.com -p you-secret-password -d tun100 -a 10.2.2.100
Restart=always
User=root
Group=root
RestartSec=3
PIDFile=/var/run/hans.pid


[Install]
WantedBy=default.target

and add you service:

sudo systemctl daemon-reload
sudo systemctl enable hans.service
sudo systemctl start hans.service

Releases

No releases published

Packages

No packages published

Languages

  • C++ 63.5%
  • C 33.6%
  • Makefile 2.0%
  • Shell 0.9%