Giter VIP home page Giter VIP logo

hans's People

Contributors

friedrich avatar unkernet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hans's Issues

Android Package

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

Supplying password through stdin

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.

Windows Cliedt, Get right IP Address, But not ping.

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.

connection is not created

the connection is not created, requests from the client is transmitted and arrive ok but back does not.
what can be the cause? thank you

ping from client to server are successful

Server:
screenshot_54

Client:
screenshot_55

Add site-to-site support

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.

Not dropping other groups when doing setuid

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);

How do I start hanstunnel in iOS 7.1?

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.

Compile on windows

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!

Ifconfig is not always in /sbin/ifconfig

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.

multiple clients fail

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:

  • They can't work constantly, looks like some broadcasting failure between the clients , meanwhile when there is only 1 connection it works fine.
  • Issue persists if I remove -a and let hans assign IPs automatically
  • both machines have the same WAN ip (connected to the same WIFI AP)

    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?

It's alive?

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?

Constant No route to host while running the Windows version

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

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.