VPN vs Proxy Explained Pros and Cons

Ғылым және технология

A VPN (virtual private network) and Proxy are two pieces of tech that each has their applications, differences and pros and cons. Both make requests on behave on the client but they are implemented very differently. In this video I want to go through the following:
- What is a VPN?
- How a VPN works?
- VPN Pros and Cons
- What is a Proxy?
- How a Proxy works?
- Proxy Pros and Cons
Time Codes
0:00 Intro
1:10 What is a VPN
9:56 Pros & Cons
19:55 What is a Proxy?
24:28 Proxy PRos & Cons
Cards
NAT 3:15
OSI 5:10
TCP Tunneling 5:40
TLS 14:45
Do you need a VPN 17:08
TOR 27:54
In a VPN, the client becomes part of a completely different network . So if a client makes a request to a server, the new network makes the request.
A VPN makes a machine part of a nother network at the lowest level of the network (layer 2) you can a brand ip address a brand mac address.
In A Proxy, the client makes the request to the proxy asking it to go to a destination server, and proxy makes the request to the server.
VPN Pros
- Encrypts traffic
- Redirect all traffic at the lowest level (layer 2)
- Access restricted content
- Access Private networks (work)
VPN Cons
- Anonymity (uhmm)
- Slow extra hops
- Double Encryption
- VPN can log your data (DNS)
Proxy Pros
- Caching Layer 7
- Anonymity (double meh)
- Blocking Websites (transparent proxy)
- Control and many applications (load balancing, service mesh, firewall proxy security)
- Work on Layer 7 and Layer 4
Proxy Cons
- Applications can bypass proxy
- Not all traffic is routed. HTTP proxy, HTTPS proxy SOCKS proxy
- No encryption by default
Resources
Resources
Kazakhstan Government
www.zdnet.com/article/kazakhs...
networkengineering.stackexcha...
🏭 Software Architecture Videos
• Software Architecture
💾 Database Engineering Videos
• Database Engineering
🛰 Network Engineering Videos
• Network Engineering
🏰 Load Balancing and Proxies Videos
• Proxies
🐘 Postgres Videos
• PostgresSQL
🧮 Programming Pattern Videos
• Programming Patterns
🛡 Web Security Videos
• Web Security
🦠 HTTP Videos
• HTTP
🐍 Python Videos
• Python by Example
🔆 Javascript Videos
• Javascript by Example
Support me on PayPal
bit.ly/33ENps4
Become a Patreon
/ hnasr
Stay Awesome,
Hussein

Пікірлер: 62

  • @corey.morreale
    @corey.morreale4 жыл бұрын

    The Bob Ross of networking :) "Beautiful Router, Beautiful IP Address" Love it.

  • @sebschrader
    @sebschrader3 жыл бұрын

    To answer your question wrt DHCP and VPN: In most VPNs DHCP is not used and the VPN server (also called concentrator) allocates the IP from an internal pool (or obtains it via other means, e.g. RADIUS) and assigns it to the client via the VPN protocol itself together with other related information like routes, DNS resolvers, hostname etc.

  • @amdtv693

    @amdtv693

    Жыл бұрын

    hey, thank you I was searching for this answer.

  • @firstnamelastname-ok3gf
    @firstnamelastname-ok3gf4 жыл бұрын

    i've been researching this topic and this so far has been the only one to give a genuine answer. the rest of the sources i visited were vague in vpns and proxies and didn't explain what the difference was, despite that being the point of the source. there's no propaganda here, just pure facts and i can respect that.

  • @tubbalcain
    @tubbalcain3 жыл бұрын

    You deserve soooo much more subs, really underrated channel.

  • @dexterflodstrom9975

    @dexterflodstrom9975

    3 жыл бұрын

    I agree 100% he explains so well

  • @oguzhantopaloglu9442
    @oguzhantopaloglu9442 Жыл бұрын

    Your channel is amazing, I learnt so much from you about TCP, UDP, VPN, proxies etc.

  • @carriereidm.2899
    @carriereidm.28994 жыл бұрын

    Thanks so much! Very helpful. Love your videos, so easy to understand

  • @hnasr

    @hnasr

    4 жыл бұрын

    Carrie Reid M. Thank you Carrie 😊 appreciate your comment

  • @GuidoPerdomo
    @GuidoPerdomo3 жыл бұрын

    you know you explain concepts so well, in a funny and engaging way, but my favorite thing about you is how you roll the r's, I think it may cure cancer and bring world peace.

  • @ekejma
    @ekejma3 жыл бұрын

    Great content as usual.

  • @pablohernandez4305
    @pablohernandez43053 жыл бұрын

    Thanks for this video it helped me a lot to understand the proxy

  • @renanaoki714
    @renanaoki7149 ай бұрын

    Thanks! Very well explained!!!

  • @Louisrael
    @Louisrael5 ай бұрын

    Proxies are generally known for providing faster connection speeds than VPNs since they only direct specific traffic through their servers, whereas VPNs encrypt all internet traffic, potentially causing speed reductions. Zeus Proxy offers a rotating residential proxy, perfect for various activities like e-commerce multi-account registrations, data crawling, airdrops, and gaming.

  • @thearchibaldtuttle
    @thearchibaldtuttle4 жыл бұрын

    Good day and thank you!

  • @hnasr

    @hnasr

    4 жыл бұрын

    Archibald Tuttle have a great day and enjoy the video!

  • @khatritariq
    @khatritariq4 жыл бұрын

    Nicely explained.

  • @hnasr

    @hnasr

    4 жыл бұрын

    Thanks Tariq!

  • @osmaninci672
    @osmaninci6722 жыл бұрын

    It was very Helpful Mr. Joker, I believe whatever doesn't kill u makes u a stranger.

  • @ImAnonymous433
    @ImAnonymous4333 жыл бұрын

    your Explanation is in such a way that a student read a concept and have douts

  • @shaitansinghmeena63.76
    @shaitansinghmeena63.76 Жыл бұрын

    Nice

  • @palaniappanrm6277
    @palaniappanrm62774 жыл бұрын

    Another doubt wrt to Proxy. I understood about the load balancer, side car in service mesh are example of HTTP proxy so that they can see the data and route accordingly with layer 7 information. In HTTPS proxy, let's say we access @t, we encrypt that and again encrypt with TLS of the proxy server. Then how come Proxy server can read our data after first TLS decryption alone? They can't see anything beyond TCP packet network 4 right? They can just see the public IP of the google right?

  • @devjohncarlo
    @devjohncarlo2 жыл бұрын

    your questions are the same to me, I'm also a software developer and I'm curious how to create a VPN from scratch so I made it using the C program but the IP I assign is static client and server I'm also not sure how it works about assigning IP in VPN.

  • @vaporwareproducts
    @vaporwareproducts2 жыл бұрын

    Do y’all recommend a vpn over a proxy for SoMe activity? I’ve heard that residential proxies are the best for avoiding banning. Hearing that if sites like FB see a VPN they will ban Acct/profile. Hogwash? I’m wanting to connect to distinct local SoMe profiles for interaction, etc. What do you recommend to remove session fingerprints from browsers or does that matter with VPNs (I’m ignorant) but know this is needed with proxies. Thx!

  • @poliIndia
    @poliIndia3 жыл бұрын

    Hussein explaining why other people using the VPN can access my data... "Just something to think about". Me, using VPN for netflix all the time, laughs in panic.

  • @jivanmainali1742
    @jivanmainali17423 жыл бұрын

    How router serves a static files when we type default gateway in browser ? So is there a server listening for port 80 and serves file

  • @hnasr

    @hnasr

    3 жыл бұрын

    Jivan Mainali correct, it is an http server module that serves that and help manage config

  • @jivanmainali1742
    @jivanmainali17423 жыл бұрын

    So where is dns server located?It must be present with client

  • @apocalypseb7x
    @apocalypseb7x2 жыл бұрын

    Does VPN provides save your logs information? What do you think about that? I think is not the best choice for privacy

  • @NguyenNguyen-hh7lc
    @NguyenNguyen-hh7lc4 жыл бұрын

    The content could have been more precise, some parts were just to brag too much about the lack of anonymity of VPN and proxies. Instead, I would love to see how a proxy server terminates HTTPS requests from a client’s machine and forces the client’s machine to use HTTP so that it can view the request content

  • @hnasr

    @hnasr

    4 жыл бұрын

    Thanks Nguyen for your honest feedback. This video was designed to go through highlevel overview on both Proxy and VPN. Check out my deep dive on Proxies and TLS Terminations here HTTP Proxy deep dive kzread.info/dash/bejne/qmh5ls-bn8WtdcY.html TLS Termination kzread.info/dash/bejne/emSWza6shciZntI.html

  • @NguyenNguyen-hh7lc

    @NguyenNguyen-hh7lc

    4 жыл бұрын

    Hussein Nasser Thanks for referring the links, will check them out soon. One more thing, if you’d like to emphasize the lack of anonymity in both cases, some dedicated slides or diagrams will bring up more impression to audiences than the word “meh” does. Looking forward to seeing improvement in your future videos.

  • @arrikd8358

    @arrikd8358

    3 жыл бұрын

    I read the comment section for comments like this.

  • @arrikd8358

    @arrikd8358

    3 жыл бұрын

    @@hnasr Kind of you to listen to critics and make a video about it .

  • @jasonhiggins.3853
    @jasonhiggins.38532 жыл бұрын

    Hello, my PC IP address is blacklisted and i now when i try to run email campaigns they dont get into the recipients inboxes, this is real pain. My ISP wont give me a new IP either!! I have tried using a VPN as well but it does not work. Does anyone know of any solution to this apart from buying another PC which is not what i really want to do. Thanks.

  • @cybersecurity90
    @cybersecurity902 жыл бұрын

    it can be better and it is very high level overview which is good for new engineers

  • @jivanmainali1742
    @jivanmainali17423 жыл бұрын

    How to get public IP for my home server??

  • @koki44443
    @koki444434 жыл бұрын

    Dude u are so fucking funny. Love your stuff and it's well explained. I'm a developer, but still I believe the info to be accessible to most people.

  • @laanbarehamza1024
    @laanbarehamza10242 жыл бұрын

    Does Proxychains on Kali Linux provides Anonymity ?

  • @aatifbangash
    @aatifbangash4 жыл бұрын

    Must have youtube channel for the coders!!!.

  • @hnasr

    @hnasr

    4 жыл бұрын

    Hmmm not I am not sure if thats a good idea. It will spread me too thin.

  • @krupakarreddy8235
    @krupakarreddy82353 жыл бұрын

    Can we use both vpn server and proxy server..if yes in what way??

  • @hnasr

    @hnasr

    3 жыл бұрын

    Krupakar Reddy if you used VPN to login to your work private netwok and then using fiddler as proxy to debug your app thats an example where both VPN and proxy are used in the same time.

  • @zee-x-eez9441
    @zee-x-eez94412 жыл бұрын

    Kazakhstan is trying to catch Borat!!! ;-)

  • @tubbalcain
    @tubbalcain4 жыл бұрын

    is becoming a part of the network (meaning giving full access to devices/servers and all the problems this can give) not only valid when your using-for example-IPsec IKEv2 VPNs, since these kind of VPNs work on a different OSI layer than the 'common' commercial TLS VPNs, who work on the applicationlayer (more or less between applicationlayer and transportlayer) and can be easily restricted, when talking about getting full access. Love to hear from you, my Guru 👳

  • @usamatahseenulhaque9125
    @usamatahseenulhaque91253 жыл бұрын

    It was worth it

  • @highspparow3893

    @highspparow3893

    Жыл бұрын

    That's what she said 😂 Sorry I can't help it.

  • @FordExplorer-rm6ew
    @FordExplorer-rm6ew4 жыл бұрын

    Proxys seem abstract and hard to understand, At least what proxys are now. compared to the early 00s when I was a kid. Using them in school. How is this kind of proxy different from when we set a proxy for react or something like that? I feel like the term proxy, has been very obfuscated since the 00s

  • @hnasr

    @hnasr

    4 жыл бұрын

    Great question and I talk about those kind of proxies in the end of the videos such as react proxy and fiddler and charlie.. a proxy was designed for caching back in early 00s as you said but engineers discovered it can be used for so many other applications such as intercepting traffic, firewalls, http Accelerators , service mesh, microservices all that jazz.. it is rarely used now as annonymouzing service anymore way jump to 24:30 where i talk about those benefits of proxy..

  • @FordExplorer-rm6ew

    @FordExplorer-rm6ew

    4 жыл бұрын

    @@hnasr thanks man. this channel rocks : )

  • @LivingTheDream77
    @LivingTheDream773 жыл бұрын

    What about https only proxy ?

  • @ImAnonymous433
    @ImAnonymous4333 жыл бұрын

    host router provide ip addresss because pc has not ability work as dhcp server

  • @qj1eo
    @qj1eo2 жыл бұрын

    i love y :(

  • @sebschrader
    @sebschrader3 жыл бұрын

    IKE, IPSec, L2TP are _NOT_ Layer 2.

  • @sebschrader

    @sebschrader

    3 жыл бұрын

    And with most VPNs, the inside tunnel can only carry Layer 3 information and not Layer 2. With some VPNs you can chose, e.g. OpenVPN's tun mode vs tap mode, others like IPSec are Layer 3 by design and need to encapsulate other protocols like L2TP or GRE to carry L2 packets.

  • @hnasr

    @hnasr

    3 жыл бұрын

    Thanks for clarifying this!

  • @dhammi
    @dhammi6 ай бұрын

    26:06 🤣🤣

  • @umitkuluk3563
    @umitkuluk35633 жыл бұрын

    🎍🏢

  • @sumitmodi5925
    @sumitmodi5925 Жыл бұрын

    Kripya mere mobile per add Dena band Karen

  • @biodevm
    @biodevm2 жыл бұрын

    The sound of the video is HORRIBLE!!!

Келесі