193 points · by vampire_dk · 11y ago · 83 comments
My only gripe was user management. It lacks an LDAP or PAM integration, substituting RADIUS instead. No biggy, I can set up a SoftEther->RADIUS->LDAP bridge. The caveat is that SoftEther will only apply RADIUS authentication to accounts you manually define; so you must create a user in SoftEther and enable RADIUS for them. This may have been fixed by now, but was rather annoying back then!
I suspect it hasn't gotten a lot of widespread publication in English forums because it's from a University project from Japan so there aren't a lot of English-speaking contributors (there are only 9 contributors to the official repo).
Additionally, it was only open sourced in 2014 so as an open source project it's pretty young.
I to was concerned with the legitimacy of the software. But it is open source now, which should aid discovery.
I don't use it anymore at the moment. But my gut feeling is it is legit software, but sometimes there is just no way to know...
Any captive portal these days block also ICMP.
Most firewalls block ICMP these days, because the days of blacklisting are over and ICMP is not the one who is getting white listed. Why?
The only way these days is to misuse DNS. But even that works less and less reliable.
Also ptunnel comes standard with some linux distro's these days Ubuntu and so do probably most of it's derivatives, and as far as raw performance goes ptunnel is also the highest performing one capable of achieving about 150kbps which isn't that bad considering the sheer amount of packets and overhead you get.
http://manpages.ubuntu.com/manpages/gutsy/man8/ptunnel.8.htm...
What's your question? Is it "What's the point of blocking ICMP?"? Or is it the opposite question?
If it's the former, then there are sysadmins out there who cargo-cult their network configuration and listen to folks like Gibson Research Corporation who've been giving really bad advice [0] for the past decade+.
[0] Specifically, they strongly recommend dropping all traffic to ports that don't have listening services, along with all ICMP, rather than rejecting said traffic and allowing all non-problematic ICMP. They also have a "handy" tool [1] to make it look like doing anything else is "DANGEROUS": (The tool reports [2] if your site responds to ICMP echo requests.)
[1] https://www.grc.com/shieldsup
[2] Ping Reply: RECEIVED (FAILED) — Your system REPLIED to our Ping (ICMP Echo) requests, making it visible on the Internet. Most personal firewalls can be configured to block, drop, and ignore such ping requests in order to better hide systems from hackers. This is highly recommended since "Ping" is among the oldest and most common methods used to locate systems prior to further exploitation.
How about IP over TCP SYN.
After few days of mobile tethering, I realized I could ask their HTTP proxy to open an HTTPS connection to a server outside the network, but instead of sending HTTPS traffic through the proxy, I could send any traffic - like SSH. With this, I was ultimately able to open an SSH-tunnel to my own shell server running OpenVPN outside their network, which then allowed a (surprisingly stable and fast) access to the internet at wide – via an OpenVPN-tunnel wrapped in an SSH-tunnel pretending to be an HTTPS-tunnel.
I don't recall whether ICMP was allowed out at the BigCorp., but I am pretty sure someone will one day find a tool like this quite useful in a similar situation.. :)
Maybe this is why Microsoft Azure never allowed ICMP travseral through their outer firewall despite frequent request from users....
The Great China Firewall and others need deep packet inspection, heuristics and AI to find tunnels set up that way.
In any case they were probably running something like squid with very basic level 7 filtering, so if something comes on 443 they have no option but to forward it.
Having said that, I'm sure there are other usage for such a tool :).
DNS also requires you to have a DNS server and a domain, and you'll need something to constantly clear the cache on the local machine otherwise you'll eventually run out of room even if you are going to use the max available DNS record size. If anything in the way will keep your DNS queries in cache then you might be screwed and run out of space very quickly.
If you need internet access ICMP tunnel will be better, bandwidth will be limited but it will be more or less a P2P tunnel, if you need to exfiltrate data without explicitly needing to maintain a bi-directional tunnel DNS is the way to go, will also work in more captive portal restrictive cases than ICMP. Today ICMP is usually utterly blocked DNS sometimes work especially in common cases where the restricted network offers some white listed sites (e.g. airport wifi that allows you to access the airport's site and the local train service but blocks everything else).
In any case DNS tunnel offers you both TCP and UDP tunneling at much higher throughput, I'll take a look at your code when I'll have the time and see how it compares to ptunnel or ICMP shell.
I did some tests a while and found that iodine was ~98% of non-tunneled speed when I could access the server directly, since then the traffic is wrapped over huge big TXT queries and it's really efficient.
But the common case for using it is that you can only lookup through a local DNS server, and then it's usually ~0.5% or so of the usual speed. I.e. 1-2KB/s at best.
Although I'm interested in comparison as well :)
It was pretty much usable circa 2008...
btw, in debian (and probably, derivatives), it is just apt-get away from being installed.
Is there anyway to stop things like this at the corporate firewall?
Big corporate places can completely restrict things and prevent any traffic from internal hosts to the internet. You can use proxying for web browsing etc. and then monitor that to check for any unauthorised traffic.
Edited for spelling
# iptables -A FORWARD -p icmp --icmp-type echo-request -m length --length 86:0xffff -j DROP
Still, until someone checks the code of this tool, or a working test environment, we won't know if the rule stops this tool.Update: as for the number of packets, there is -m limit and other recipes.
Also, instead of using the plain limit match, check out hashlimit. It can apply a rate limit on a per sender, destination, or sender+destination basis. The recent match may also be of interest.