friedrich / hans Goto Github PK
View Code? Open in Web Editor NEWIP over ICMP
Home Page: https://code.gerade.org/hans/
License: GNU General Public License v3.0
IP over ICMP
Home Page: https://code.gerade.org/hans/
License: GNU General Public License v3.0
Hi there
it works great on Windows/Linux/iOS ...
Ist there support for Android? I couln't find any packages or build docs.
Thank you for help.
Greetings
Hans-Juergen Petrich
Now it's 2022, can I install this so that I get a tunnel between the server (linux) and my machine on windows or linux?
Mac OS Sierra,
freshly compiled from master,
sudo ./hans -c myhost.com -p mypassw
./hans[26398] : could not create tunnel device: No such file or directory
Thank you!
Hello.
Not dropping other groups might leave the new process with some unwanted groups inherited.
I would recommend adding following patch:
diff -ru hans-0.4.4.orig/src/worker.cpp hans-0.4.4.new/src/worker.cpp
--- hans-0.4.4.orig/src/worker.cpp 2014-02-07 04:36:31.000000000 +0100
+++ hans-0.4.4.new/src/worker.cpp 2016-11-17 16:12:12.313698244 +0100
@@ -200,6 +200,9 @@
syslog(LOG_INFO, "dropping privileges");
+ if (setgroups(0, NULL) == -1)
+ throw Exception("setgroups", true);
+
if (setgid(gid) == -1)
throw Exception("setgid", true);
Would you please explain how to initialize an OpenVPN on top of hans?
Hi,
I keep receiving the following message from the Windows client when trying to connect to a server that is running hans as well.
hans: error sending icmp packet: No route to host
This message is repeated 34 times and then the output stops. Is this a bug with the Windows version? or did I miss something while setting up hans? Here's the full output I receive
hans: opened tunnel device: Local Area Connection 2
Ok.
hans: connection established
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
hans: error sending icmp packet: No route to host
^C
hans: SIGINT received
hans: select: Interrupted system call
Hi,
I would like to have more info on how to compile the hans code (branch "cygwin") on windows.
I downloaded cygwin with gcc-c++ and make, but then I do the .exe compiler through the cygwin terminal, if I execute it, I get:
"Error while starting application (0xc000007b)".
What should I do?
Thanks!
There is some bug while handling multiple clients. The latest release of hans is running on Debian 7.7 server with that command:
hans -u nobody -s 10.5.2.0 -p ........
Then I run hans on windows 7:
hans.exe -c [MYSERV] -p ........ -q -f -a 10.5.2.34
and having no problems, 10.5.2.0/24 is visible and I am able to access the proxy IP at 10.5.2.222
After that I turn on my laptop with windows 8.1 and run hans on it:
hans.exe -c [MYSERV] -p ........ -q -f -a 10.5.2.70
It gives an output error: 2 [main] hans 3624 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer . Please report this problem to the public mailing list [email protected]
(I suppose this error is unrelated to the main issue, but please just keep it in mind too)
Though it connects normally. After that the windows 7 machine is losing connectivity with the 10.5.2.X network, I can't ping any address, on win8.1 neigher.
But if I disconnect windows 7 machine and reconnect 8.1 machine, I am able to access the net.
Resuming:
UPDATE 1.1
Just found out that if I connect them from the different WAN ip's this problem disappears. I confirm that the issue persists when connecting 2 different machines from the same external IP. Is there any workaround for it?
Hello.
I would like to use hans client on Windows. I've already test in server with openSuse and client with openSuse too, and it works fine, ping works between client and server.
Now I'm running windows client. I've installed TAP Driver and it's selected by hans. In fact when I run hans -c SERVER_IP -p xxx the TAP Adapter gets a valid IP addres like 10.0.10.101. But when try to ping to 10.0.10.1(Server addres) it doesn't work.
When I see log on my server it says: hans connection established: Cliente_IP.
But I noticed tha the TAP Adapter always says unppluged cable.
I'm using Windows 7 32Bits, runing hans as administrator.
Any ideas to make it works?
Thanks.
The password is indeed not shown in argv, but for the better security that might be beneficial.
There are workarounds for not storing commands in bash_history and not using clear text passwords in scripts, but that still will be useful.
this->device[VTUN_DEV_LEN] = 0;
sets the 20th element to 0 but its zero based so its past the end of the array.
Should read
this->device[VTUN_DEV_LEN-1] = 0;
/b
I have downloaded hanstunnel in cydia. I can see that the info advises that it is a "background app", but I can still not figure out a way to configure hanstunnel.
I've even tried ssh'ing into my iphone, but I still cannot find an executable.
Please advised how I can setup my iphone to use hanstunnel.
Some years ago upstream net-tools changed ifconfig
to live in /bin: ecki/net-tools@36b541c
Of course, many distros continue to put it in /sbin/
, but not all.
Moreover, in some distros such as RHEL/CentOS since at least 7.x, ifconfig is not even included in a base install, only ip
and the like.
I've got some simple hacks to osflags
and tun.cpp
to handle alternate ifconfig
paths at compile time, much like ac0d27e#diff-2fc819de3e4f16d2b86d4cc7bcb7042e739f76193d7de454488cb4b33fea848d for android support.
But I think better still would be some runtime selection/fallback. One could easily compile hans
on a CentOS 7 system that has optional ifconfig
installed, then bring the binary to a system that has only ip
and find a nasty surprise.
I have to use NAT to pass a subnet through the tunnel.Adding site-to-site support would be great. BTW thanks for your great work.
Hi,
I wonder how much bandwidth we got max, for tunneling IP over ICMP, as we see tunneling IP over DNS is very very slow.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.