News for hackers. Stuff that matters.
Re:Can't trust any VPN these days by WmWsjA6B29B4nfk on Wednesday October 16, 2024 @06:39AM (#41857572)
What if the the author simply used 1.1.1.1 / 8.8.8.8 / any other public DNS outside of their country for all traffic? It's an easier solution (yeah, with some drawbacks)
Re:Can't trust any VPN these days by alias_neo on Wednesday October 16, 2024 @06:54AM (#41857650)
That doesn't work unfortunately. I specifically DNAT addresses like those to my own local DNS on my home network to prevent apps with hard-coded DNS from hitting them.

If it can be done at a home network level, you bet it can be done at ISP/government level.

The only safe/working option is to tunnel everything down a VPN somewhere outside of the problem region, and go out from there. The VPN connection implicitly provides a cryptographic verification that the connection isn't being intercepted or redirected (when done right).

Re:Can't trust any VPN these days by mmsc on Wednesday October 16, 2024 @06:42AM (#41857586)
It would be intercepted at the ISP level and the false results would still be received. There are lots of DNS intercepting tools ISPs buy these days.

DNS isn't authenticated.

Re:Can't trust any VPN these days by WmWsjA6B29B4nfk on Wednesday October 16, 2024 @06:48AM (#41857623)
I understood they have been simply accessing their ISPs DNS through the tunnel.
Re:Can't trust any VPN these days by mmsc on Wednesday October 16, 2024 @06:55AM (#41857663)
No:

>Okay, at that point I was clueless. I tried changing the DNS settings of OpenVPN (i.e. dhcp-option DNS 1.1.1.1) but it didn't work. After a couple of iterations with ChatGPT, it finally led me to the correct path.

Re:Can't trust any VPN these days by WmWsjA6B29B4nfk on Wednesday October 16, 2024 @07:21AM (#41857825)
This line was no-op until the author started using the `up` script as they describe later.

> The OpenVPN server can push DHCP options such as DNS and WINS server addresses to clients (some caveats to be aware of). Windows clients can accept pushed DHCP options natively, while non-Windows clients can accept them by using a client-side up script which parses the foreign_option_n environmental variable list.

It's still not clear to me what the experience would have been if the author had only 1.1.1.1 set at the system level, not touching any OpenVPN options.

Re:Can't trust any VPN these days by ndheebebe on Wednesday October 16, 2024 @06:42AM (#41857591)
They tried that. I guess it didnt stop the leak.