News for hackers. Stuff that matters.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by liberia on Friday July 22, 2022 @11:15PM (#32199979)
Worth reading Deep Packet Inspection is Dead: https://security.ias.edu/deep-packet-inspection-dead-and-her...

This tool is great, but I religiously route all my traffic through a VPN that I own and control. I’ve hardened the box I use to have zero logs and I don’t need to blindly trust a commercial provider whether they’ve been audited or not. There’s no way of really knowing they’re not logging in some capacity bar from being physically in their server room and inspecting their setup.

Add to the VPN a DoH resolver that I own and control too, and it makes things even better. I also block port 80 on my machine as an extra measure. No need to be using port 80 in this day and age except for captive portals which I rarely ever have to use.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by patrakov on Saturday July 23, 2022 @03:14AM (#32201141)
Well, the good point of GoodbyeDPI is exactly so that it preserves your IP address. Normally, when trying to circumvent censorship, you would need a VPN server in a different country. But the downsides are that the bank will deny all transactions and call you (OK, answered, they added the VPN IP to the whitelist), that you will miss local-only content, you won't be able to register for a doctor appointment online (the city uses a geo-restricting filter out of security concerns), and you will see foreign prices (which might be 5x higher in some cases!) on sites that differentiate based on the country. Also, extra latency in games. None of that applies with GoodbyeDPI.

Edit: the above is written from the viewpoint of the past myself, before emigration to the Philippines.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by 5e92cb50239222b on Saturday July 23, 2022 @03:52AM (#32201300)
I wonder why a VPN is the default solution (with all complications it ensues, some of which you've listed), when a simple SSH tunnel to any server in a sane location does just fine. `ssh server -D12345`, point your applications to socks5 at localhost:12345, and it's done. It's dead simple to only allow/deny those sites that you (don't) need to go through another server, and the traffic is encrypted (and optionally compressed), and looks just like another SSH connection.

I've used many other solutions (including WireGuard, etc.) on and off, but always come back to SSH.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by azalemeth on Saturday July 23, 2022 @05:49AM (#32201847)
It's easier to detect that someone is using a SOCKS tunnel – from memory, one way it might be exposed is if the packet TTL is incongruous [1] as I don't think SOCKS rewrites those.

At the height of the pandemic I travelled to Denmark for work (on a clinical trial) and had a UK negative covid test to report to the UK government that I hadn't got around to – whose website geo-blocks people reporting covid tests from outside a UK IP address (even if, e.g. you'd just left it and wanted to report a negative test taken the day before). A SOCKS proxy was detected and I got a "we cannot verify you are in the UK" message. A wireguard VPN worked fine.

[1] https://incolumitas.com/2021/03/13/tcp-ip-fingerprinting-for...

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by userbinator on Saturday July 23, 2022 @04:22AM (#32201434)
point your applications to

That's the problem. Not all of them will implement tunneling their own traffic through SOCKS, and there's still other things like DNS that you might also want to go through the tunnel, but can't easily do so. A VPN sits at a lower layer, just looking like a regular network connection, so applications don't need to be aware.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by 5e92cb50239222b on Saturday July 23, 2022 @04:34AM (#32201492)
Well, yeah, that's the problem (or the main advantage depending on your viewpoint). The post I was replying to mentioned how painful it is to avoid routing through VPN where it's not needed (although it's pretty easy to do on Linux with network namespaces, and IIRC policy routing, which I've never tried).

I just want to point out the simplest solution which for some reason doesn't seem to be very popular, although it covers most users' use-cases better than a VPN connection does (IMHO).

Don't know about other browsers, but Firefox is able to send DNS requests through socks, whether you're using DNS-over-HTTPS or not.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by vore on Saturday July 23, 2022 @04:50AM (#32201570)
In China at least, the GFW can detect tunneled SSH traffic and cut it off.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by tambourine_man on Saturday July 23, 2022 @04:23AM (#32201445)
Thank you, I do too. I though it was only me.

SSH is very simple and there’s almost nothing a SSH tunnel can’t do.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by pelasaco on Saturday July 23, 2022 @12:15PM (#32204673)
> SSH is very simple and there’s almost nothing a SSH tunnel can’t do.

You cannot disguise your SSH traffic mimicking HTTPS traffic which help you to bypass DPI solutions.. so its easy to block/filter/log your traffic or even pinpoint you in an adverse environment.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by tambourine_man on Sunday July 24, 2022 @04:05PM (#32217139)
Please expand. How can an Apache server, for instance, know if I’m accessing through and SSH tunnel. And how would that be different on a Wireguard VPN?
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by pelasaco on Monday July 25, 2022 @09:35AM (#32224050)
Why apache would care? We are talking about DPI solutions, aka deep packet inspection. They are normally deployed inline, and SSH tunnels are so often blocked, that in some solutions you have it one click away from you https://www.sonicwall.com/support/knowledge-base/how-to-bloc.... Other solutions try to make the traffic similar with Apache + Firefox to make it harder to be detectable and blocked by DPI solutions..
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by tambourine_man on Monday July 25, 2022 @11:47AM (#32226070)
Interesting, thanks. And would Wireguard be transparent to DPI?
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by pelasaco on Tuesday July 26, 2022 @02:26PM (#32241960)
there are many implementations of DPI out there, each one with your own set of rules and heuristics... this discussion[1] talks about it, but the short answer is: it depends

References:

[1] https://www.reddit.com/r/WireGuard/comments/ajv0eq/wireguard...

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by tambourine_man on Monday July 25, 2022 @11:59AM (#32226270)
@patrakov I can't reply to you directly.

If the only thing a web server could do is differentiate tunnel from direct IP connection with or without firewall/NAT, which are ubiquitous, it's an interesting effort, but a tour de force with little gain IMO.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by oarsinsync on Saturday July 23, 2022 @06:52AM (#32202168)
Encapsulating TCP in TCP results in exponential backoff and retransmissions in the event of loss.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by patrakov on Saturday July 23, 2022 @07:42AM (#32202424)
SSH tunneling is encapsulating byte streams in TCP, not TCP (which means "packets with sequence numbers, acknowledgements, and retransmissions") in TCP, and therefore doesn't suffer.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by jimmySixDOF on Saturday July 23, 2022 @11:49PM (#32210147)
Well the byte stream includes everything you throw in (TCP/UDP/L2), so while the tunnel will not suffer from any signaling issues in the payload flow, the opposite is not true - the internal traffic is affected by any TCP problems on the SSH tunnel so a short blip on the tunnel can cause a cascade of blips depending on whats in there.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by OmarAssadi on Saturday July 23, 2022 @08:11AM (#32202604)
For what it’s worth as well, there are other solutions than whole-network VPNs and such.

Personally, I chose to generate a domain list for V2Ray from the Russian government’s blocklist when I lived there [1].

I prefer to do that typically because it avoids the pain of the ever-growing whitelists and it allows me to keep the traffic encrypted in case someone does actually figure out that you’ve bypassed DPI. And if you use something like V2Ray or ShadowSocks, they’ll disguise the traffic much better than something like OpenVPN typically would, making it less obvious to anyone monitoring that you’re using a proxy in the first place.

There’s a load of references and pre-generated lists for different needs if anyone else is interested in doing something similar [2].

(Also, I hope this doesn’t come across as missing the point of the tool — I think it’s really useful and a good solution. I just figured I’d note some others too)

[1]: https://github.com/OmarAssadi/AntiZapret-V2Ray

[2]: https://github.com/v2ray/domain-list-community

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by ValdikSS on Saturday July 23, 2022 @03:26PM (#32206720)
GoodbyeDPI also includes Russian blacklist built from zapret-info, to apply censorship circumvention only for the websites from the list, to reduce the risk of breaking the website due to mangled traffic.

The newest issue are unlisted filtering performed on so-called TSPU DPI boxes. Two years ago we had only ISP DPI boxes, but now there's a government TSPU black box which they control themselves and block the websites/VPNs/SSH/IP ranges out-of-the-registry.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by OmarAssadi on Saturday July 23, 2022 @11:14PM (#32209989)
Yeah, I've come across your tool a few times before and seen the default lists. Really useful stuff, by the way!

Interesting, though. I had heard talks about introducing proper government-level filtering -- I think after the Telegram/AWS/etc blocks in, like, 2018 (?), but I wasn't aware of anything actually going into effect.

If you've got time to answer or link me anything, I am a little curious. How are the TSPU boxes setup? Are these provided by the government to different datacenters/IXs or at some sort of higher level than that? And are they currently just used to filter additional out-of-registry domains/IP addresses or do they also filter the semi-public, known blacklist? Is there anything like the unofficial Chinese gfwlist that tries to maintain a list of the out-of-registry stuff?

I haven't lived in Russia in a little while now, but when I was last there, although virtually every residential ISP enforced the government list, a number of the domestic server providers weren't, so a good option for low-latency and keeping a Russian IP address was just renting a gigabit VPS from the city next to me and using it as a proxy server.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by ValdikSS on Sunday July 24, 2022 @06:22AM (#32211975)
https://bitbucket.org/anticensority/russian-unlisted-blocks/... — my list of unlisted blocks

>How are the TSPU boxes setup? Are these provided by the government to different datacenters/IXs or at some sort of higher level than that?

They are provided by the government and should be installed topologically close to the client, before CGNAT. This is a modified RDP.RU EcoFilter, and currently are required to be installed only on residential connections, not in DCs/IXes. ISPs do not have any configuration access, and it's prohibited to route traffic not via the boxes. The abbreviation TSPU means Technical Measures to Combat Threats, and these boxes are capable of collecting, saving and centralized sharing of NetFlow data, but currently are almost always used only for blocking, however the general idea is to centrally control BGP flows and collect SNMP data from other ISP routers.

The company which controls the boxes is called Center of Public Network Monitoring and Control (ЦМУ ССОП, Центр мониторинга и управления сетью связи общего пользования).

>do they also filter the semi-public, known blacklist?

Yes, they do. I suppose the idea is to replace filtering DPI boxes which were installed on the ISP network all these years with this one. Right now most ISPs have both TSPU and one of commercial DPI systems.

More information in English from Alexander Isavnin on RIPE: https://ripe83.ripe.net/archives/video/630/

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by patrakov on Saturday July 23, 2022 @02:11PM (#32205918)
The problem with such lists is the inherent assumption that all ISPs block the same "bad stuff". However, in reality, this is not the case, because each ISP has to implement the blocking on their own, and there are multiple DPI solutions with different sets of false positives. This "provider-specific overblocking" is especially common with IPv6.

So in addition to using such lists with one of the ISPs, I tried to detect signs of non-prevented blockage using iptables (matching on stuff like unusually-high TTL of an RST packet, or a string that occurs in the SSL certificate that they try to use for MITM - yes, they were not even consistent, or maybe there were two layers of DPI), and add the addresses learned this way to an ipset, so that next time they are routed through a VPN.

On the other ISP at a different location, just dropping all packets with ID=0 was for some time enough to avoid the censorship.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by mmaunder on Saturday July 23, 2022 @07:46AM (#32202444)
Why isn’t SSL working for you? You should be end-to-end encrypted and no censor or government should be able to see your https requests.

The only time this doesn’t apply is if someone controls your computer or the destination website and is able to MITM your TLS traffic. Is that what has happened?

Your HTTPS headers are not visible to anyone. So, for example, why is GoodbyDPI modifying the Host header? This is inside the end-to-end TLS encrypted connection that your ISP can’t see, and that the destination web host can’t see.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by patrakov on Saturday July 23, 2022 @01:50PM (#32205692)
SNI (the thing in the ClientHello packet which indicates the domain name for which to get a certificate, just in case if there is more than one SSL website on one IP) is not encrypted. DPI solutions (and even plain old Squid) can look into this without the need to break any encryption.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by rogers18445 on Saturday July 23, 2022 @12:46AM (#32200463)
You don't control the myriad of routers between you and your server, and between the server and its destination. One reason to use commercial VPNs is to at least attempt to launder your packets.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by occamrazor on Saturday July 23, 2022 @05:45AM (#32201832)
Haven’t you just replaced trust in your ISP with trust in the hosting provider of your VPN?

(Depending on yourISP and provider this can be a good trade-off)

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by ditsuke on Saturday July 23, 2022 @12:01AM (#32200228)
It's widely employed by Russian and Indian ISPs to censor access to websites. I've had a largely successful run with GoodbyeDPI 's circumvention.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by izacus on Saturday July 23, 2022 @02:01AM (#32200795)
More importantly, it's widely deployed by HNers in US to snoop though everything you do on your phone, tablet and computer if you dare to use their wifi.

The ops topics are full of people claiming how critically important it is for them to sniff through everything you do on "their" network for security.

You don't need to go to Russia, China or India to have your privacy violated. Just go to work.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by kevin_thibedeau on Saturday July 23, 2022 @02:50AM (#32201013)
Your privacy isn't violated if you avail yourself of someone else's property.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by bbarnett on Saturday July 23, 2022 @03:30AM (#32201213)
Violation and legality are two entirely different things.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by taneq on Saturday July 23, 2022 @03:46AM (#32201282)
Depends whether you were aware of the consequences of accessing that property. If you walk through my front gate and I pants you, take photos of your junk and upload them, you'll probably be upset unless I had a sign on the gate saying (in clear language, not 14 pages of irrelevant 6pt legalese hiding a link to the actual 'privacy policy' document which admits in obfuscated language that pantsing is an option) that this would happen.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by 0xedd on Saturday July 23, 2022 @04:11AM (#32201391)
No. When all "gates" in a domain have this sign, it isn't less upsetting.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by izacus on Saturday July 23, 2022 @05:18PM (#32207672)
The networks of ISPs you're "availing yourself to" are their property.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by cyber_kinetist on Saturday July 23, 2022 @12:37AM (#32200422)
South Korea also does this, and this tool is well known as one of the best circumvention methods (alongside with VPNs, but they cost money)
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by diasan on Saturday July 23, 2022 @02:56PM (#32206406)
The problem / disconnect with that DPI is dead article is that corporations still want to use use, as they control their employees computers.

Hence I've recently been asked to implement a URL inspecting firewall, which implies a HTTPS intercepting MiTM proxy. They will probably require some exception list where things get passed through 'unmolested', but for a white listed sub-set of sites (say well known health, banking, etc).

The one thing which can break that is cert pinning, but then the corporations can simply mandate that apps requiring/using cert pinning not be used from the corporate machines.

There are some bumps in the techniques caused by HTTPS RRs, AltSvc and HTTP/3, but they will be worked around, at worst by forced downgrades.

The "they'll never no argument" carries no weight, as employers up front tend to inform their employees that the communications are monitored, hence giving the corporation legal cover.

That said, I do generally agree with the aim of that article, but changing the corporate mindset is a different (non technical) problem; it is all about providing the corporation with a colorable argument towards reducing their liability in certain scenarios.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by DethNinja on Saturday July 23, 2022 @09:25AM (#32203128)
FYI, your setup is great if you don’t trust your ISP but it doesn’t provide any privacy.

Public VPNs act as a mixer and hide your tracks. IP correlation is very easy nowadays, so persistent single connection to your own VPN won’t protect you from certain entities that correlate your traffic.

DoH is better than DNS but it doesn’t provide privacy. You should switch to DNSCrypt.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by from on Saturday July 23, 2022 @03:05PM (#32206489)
> I religiously route all my traffic through a VPN that I own and control.

But then you are losing the anonymizing effect of the VPN. If you are doing something illegal this is obviously bad but I guess it otherwise doesn't really matter. Companies like Mullvad have tens of thousands of users which means that the actions of one VPN IP address can not be attributed to just one person. You're just transferring the ability to surveil you from your ISP to whoever hosts your VPN server.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by wruza on Saturday July 23, 2022 @06:53AM (#32202171)
religiously route all my traffic through a VPN that I own and control

Can you please share an easy way to do that?

I’m usually not afraid of wading through configuration swamps, but when it comes to openvpn, I curl up in a corner crying.

Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by Zen1th on Saturday July 23, 2022 @07:04AM (#32202229)
Personally I use dsvpn (https://github.com/jedisct1/dsvpn) which is super simple to setup and use, and it's made by the guy who created libsodium.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by wruza on Saturday July 23, 2022 @08:22AM (#32202659)
Thanks! But from what I can see in sources (please correct me if that’s wrong), it is not a vpn, and a regular vpn client cannot connect to it. Nice idea along the lines of SOCKS proxy.
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by dicknuckle on Saturday July 23, 2022 @02:18PM (#32205993)
You can just use Tailscale if all of this seems like a pushup. It's wireguard under the hood and everything JustWorks™
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by Diris on Saturday July 23, 2022 @11:08AM (#32203995)
This is probably the easiest way. It uses wireguard instead of openvpn but I'm pretty sure it's better https://github.com/angristan/wireguard-install
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by blacksmith_tb on Saturday July 23, 2022 @05:23PM (#32207713)
I have had good luck with Algo: https://github.com/trailofbits/algo
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by SergeAx on Sunday July 24, 2022 @06:33PM (#32218443)
But why exactly do you do this? Own a server somewhere, admin it, replace or repair it in case of trouble - what for?
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by pyinstallwoes on Saturday July 23, 2022 @04:34AM (#32201491)
What VPN service did you choose, and what were the contenders if any?
Re:GoodbyeDPI: Deep Packet Inspection circumvention utility by checkyoursudo on Saturday July 23, 2022 @03:23PM (#32206697)
Why not run everything through TOR then? Or is that too limiting?