If my main intention is to hide whatever I do on the internet from my ISP, then which VPN connection should I use; TCP or UDP? Or if I need to do anything more for that purpose please tell me.

Also how to properly configure a VPN to get maximum anonymity from my ISP? I use OpenVPN version 3.2.0 and use the configuration file from ProtonVPN and I use free servers from ProtonVPN.

1 Answer 1


There is no single VPN product and thus there is no single configuration. Therefore only general recommendations can be given, how they are applied to your specific VPN setup you must see yourself.

UDP vs. TCP does not really matter regarding anonymity. What matters is making sure that actually all internet facing traffic is sent through the VPN, i.e. not only IPv4 but also IPv6. Also all DNS traffic should go through the VPN and you should not use your ISP provided DNS server. Search for "IPv6 leak VPN" and "DNS leak VPN" to get more information about this and also to find leak testers. Also make sure that you don't leak any traffic in case the VPN crashes, look for "VPN kill switch".

Of course you need to be sure that the VPN provider itself can be trusted, because it is basically your gateway to the internet and can see all your traffic, and also modify or block it (but not break encryption in HTTPS etc). If you self-host your VPN exit this also means to trust your hosting provider, since all your traffic now goes through this provider.

Similar you need to also be sure that you trust the DNS provider too, because it sees all the domains you lookup, which are very likely the domains you visit. You might choose to run your own DNS resolver on an external host, but like with running your own VPN exit the hosting provider then can see all the traffic.

And don't have the illusion, that securing VPN and DNS is all you need for anonymity. The VPN does not protect against any tracking done inside the browser, i.e. tracking done by the websites you visit, tracking by ad and tracking networks including in the majority of websites, tracking by social media networks etc. Information you leave on websites, like when participating in discussions, also leave a trail which can be used to de-anonymize you.

All a VPN does in terms of anonymity is hide from your local ISP what you are doing and hide your ISP given IP address from the sites you visit. But the information what you are doing is still there - only this time to the VPN provider and not the ISP. And it is not much effort for websites to find out that you are using a VPN and some might block access because of this, like access to content which is licensed only to specific geographic location.

  • i use open vpn version 3.2.0 and use configuration file from protonvpn and i use free servers from proton vpn. Ican update my open vpn client if it's necessity.
    – Ezio
    Oct 8, 2022 at 12:35
  • @Ezio: In this case I recommend that you search the terms I gave ("dns leak", "ipv6 leak", "kill switch") together with "openvpn" and adjust your configuration accordingly. You might also look at the support page of Proton VPN where these concerns are actually specifically addressed - like this about DNS leak. This is not a product support site here. Oct 8, 2022 at 12:41
  • Tyvm Sir........
    – Ezio
    Oct 8, 2022 at 12:58
  • Btw, i dont mind if ISP only sees "example.com" of a whole url- "example.com/path/abcd" and i only open https websites. Even then do i still need to do all those settings in vpn ? only using default configuration in vpn won't be suffice?
    – Ezio
    Oct 9, 2022 at 5:42
  • @Ezio: In this question the question is why do you use a VPN in the first place, since HTTPS (which you claim to use exclusively) also provides this lesser protection. And this also contradicts what you originally asked, i.e. "maximum anonymity from your ISP". If you have questions outside of what you originally asked, then please ask a new question instead of discussing it in the comments of an existing one. Oct 9, 2022 at 6:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .