NAT - SNAT, DNAT, PAT & Port Forwarding

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 290

  • @asyed1000
    @asyed1000 3 ปีที่แล้ว +14

    I love how Sunny explains the brief history behind technology in his videos, since at times it is a crucial part in the learning process to understand how the technology came to be and why we need it.

  • @elisdamirchi1447
    @elisdamirchi1447 4 ปีที่แล้ว +4

    I never write comments, but here it goes:
    Networking topics will be part of my final exam in two weeks and honestly your videos have been such a life saver.
    I hope you know you're changing lives with your content! Thank you Sir!

  • @lounescharef2441
    @lounescharef2441 4 ปีที่แล้ว +5

    Thank you sunny, i have been in the field for over 18 years, no one made the concepts so clear for me, You're the best! I like your chenglish toooooo.

  • @jamesj9744
    @jamesj9744 2 หลายเดือนก่อน

    Whenever my Udemy instructors are being jive turkeys, I always look up Sunny's Classroom for a clear explanation. This guy is the best!

  • @LeirbagIII
    @LeirbagIII หลายเดือนก่อน

    Simple and very well explained. I get back to Sunny anytime I need to review the basics of any topic. Thanks Sunny!

  • @PT-ww9nc
    @PT-ww9nc 6 หลายเดือนก่อน

    Thank you Sunny, I have been watching many TH-cam videos but they do not explained this in such a logical and simple way.

  • @gautamr366
    @gautamr366 4 ปีที่แล้ว +13

    Simply brilliant explanation! Your channel is a boon for anyone looking for good CS fundamentals. Keep it up and hope you can publish topics on Core OS concepts as well?

  • @bxldragonguy
    @bxldragonguy 5 ปีที่แล้ว +7

    Credits to you fir explaining it in such a clear and easy understanding way, thanks!

  • @zidanetribal2343
    @zidanetribal2343 2 ปีที่แล้ว +2

    Awesome, Sunny is my to go resource whenever I need to refresh concepts in networking, security and basically IT! Thanks again Sunny for the topnotch content :)

  • @rajivraghu9857
    @rajivraghu9857 5 ปีที่แล้ว +7

    Thanks Sunny.. you explain stuffs so well. Wish I found these lectures during my engineering..😃

    • @sunnyclassroom24
      @sunnyclassroom24  5 ปีที่แล้ว +2

      You are welcome and thank you for your nice comment.

  • @syednabeelanwar46
    @syednabeelanwar46 3 ปีที่แล้ว

    Thank you sunny , i have gone through all your videos they are well explanatory . you are the Teacher of the century

  • @AnshumanKumar007
    @AnshumanKumar007 ปีที่แล้ว

    it's quite interesting how something really helpful and seemingly innoccous has prevented transition to IPV6.

  • @vadicheg
    @vadicheg 4 ปีที่แล้ว +30

    wow man i watched 2 other videos had few open questions, watched your 9 minute video and everything is clear now. You are talented teacher

    • @na93r
      @na93r 3 ปีที่แล้ว

      @Sam Darwin this is a spam

  • @sanjayprima
    @sanjayprima 2 ปีที่แล้ว

    Excellent . No Other video can be better than to explain NAT-PAT

  • @fatpong6173
    @fatpong6173 2 ปีที่แล้ว

    Thank you Sunny, your videos helped me passed a lot of exams

  • @Mastagon
    @Mastagon 3 ปีที่แล้ว +1

    I can't say enough good things about Sunny Classroom.

  • @FredoCorleone
    @FredoCorleone 5 ปีที่แล้ว

    Best explantion ever. Sunny is better than Google's IT course in exaplaining NAT, no doubt.

  • @vishalsharmahacks
    @vishalsharmahacks 7 หลายเดือนก่อน

    Very Nice Explanation. Watched Many. only now all confusions are cleared

  • @simonzhou8416
    @simonzhou8416 4 ปีที่แล้ว +1

    Very clear, better than my expensive cissp textbook!

  • @atvid2983
    @atvid2983 2 ปีที่แล้ว

    Thank you sir, the pace and simplicity with which you explain concepts is commendable, when In doubt or want to learn about a subject, I search with Sunny Classroom #####, #### stands for whatever network related concept I am looking for, simple and Brilliant

  • @zhenwang123
    @zhenwang123 4 ปีที่แล้ว +1

    Great video. It is very clear and detailed. Much easier to understand. Thank you Sunny.

  • @scienceblossom6197
    @scienceblossom6197 5 ปีที่แล้ว +4

    I loved this video. Very high quality explanation.

  • @moses5427
    @moses5427 ปีที่แล้ว

    Thank you for the clear and concise explanation as usual. Your videos taught me a lot!

  • @18ShotErnie
    @18ShotErnie 3 ปีที่แล้ว

    WE LOVE YOU SUNN!!!! THANKS FOR THIS... AND PLENTY OTHER VIDEOS. I REALLY VALUE THE THINGS YOUVE TAUGHT ME

  • @quisjourney3688
    @quisjourney3688 11 หลายเดือนก่อน

    thank you very much for the videos, so clear, so easy to understand. Hats off 🤩

  • @limichael1519
    @limichael1519 5 ปีที่แล้ว +2

    Hi Sunny Love ur teaching videoes. Thanks for sharing

  • @lltagged
    @lltagged 3 ปีที่แล้ว

    Quick, concise and very clear. Thanks!

  • @StuffOffYouStuff
    @StuffOffYouStuff 4 ปีที่แล้ว +1

    Again, the best explained video I've seen on this. Your videos are excellent. I needed a refresh. I do have a couple of clarifying questions about this. 1) Dynamic NAT - what happens if all the public IP addresses are used up? Are internal hosts denied access to the internet then? 2) PAT - If an internal host sends an outgoing packet on port 80, but the gateway then translates that to port 8001, how does the web server on the internet know you are trying to communicate with it on port 80? Thanks, Sunny.

    • @juanpasht
      @juanpasht 4 ปีที่แล้ว +1

      Here is what I think: 1) Yes, they must be denied access until an available public IP comes out; and if not using PAT. 2) The port 80 of the internal host is NATed. The web server doesn't care about that port but the one that comes by 8001 where it will reply the request. The router-gateway receives by 8001 and translates to 80 to the internal host. The web server will never know you tried by the port 80, and doesn't matter.

  • @dudinhtran3642
    @dudinhtran3642 3 ปีที่แล้ว +1

    Very useful video, easy to understand and remember. Great job! Many thanks!

  • @seshansesha7645
    @seshansesha7645 4 ปีที่แล้ว +1

    Simple and easy to understand... thank you

  • @premnathkangatharan2193
    @premnathkangatharan2193 3 ปีที่แล้ว

    Thanks for explaining the differences in the different types of NAT... i was a bit curious how the external unit would know where my request came from, but i think it is by using the PAT by default.

  • @andygerard228
    @andygerard228 2 ปีที่แล้ว

    Watching our videos always makes my mind feel less stress .

  • @rufusmurphy9990
    @rufusmurphy9990 3 ปีที่แล้ว

    A really good explanation, well paced and clear. Thank you

  • @taddy666
    @taddy666 3 ปีที่แล้ว

    This is awesome! Thanks for the precision and detail, Sunny.

  • @mr.b5678
    @mr.b5678 2 ปีที่แล้ว

    Best on the web explanation. thanks bud

  • @saidaitbrahim2968
    @saidaitbrahim2968 2 ปีที่แล้ว

    Wonderful explaining my teacher. Thank you so much

  • @althafahmed5757
    @althafahmed5757 4 ปีที่แล้ว +1

    Thats a Beautiful Explanation with some Graphics to explain

    • @sunnyclassroom24
      @sunnyclassroom24  4 ปีที่แล้ว +1

      Glad it was helpful!

    • @althafahmed5757
      @althafahmed5757 4 ปีที่แล้ว

      @@sunnyclassroom24 can you explain dmvpn the same way along with configuration? Is there a video tutorial already for dmvpn?

  • @luthermaria1021
    @luthermaria1021 3 ปีที่แล้ว

    You deserve more subscribers, this is awesome

  • @fahadoutlook1241
    @fahadoutlook1241 3 ปีที่แล้ว

    you are wonderful teacher.

  • @devinwick5056
    @devinwick5056 3 ปีที่แล้ว

    At last I understood. Thank you sunny!

  • @saltech2024
    @saltech2024 4 ปีที่แล้ว +1

    Awesome!!
    You are so amazing tutor

  • @Helkenberg
    @Helkenberg ปีที่แล้ว

    Excellent video. Extremelyt Informative. Subscribed!

  • @ekonialancewanariu9049
    @ekonialancewanariu9049 3 ปีที่แล้ว

    Short and sharp. I learnt alot within a short time.
    A question here please.
    If I'm using DNAT to connect, should I forget about PNAT? Or can I use them both simultaneously?

  • @thepawsupply1501
    @thepawsupply1501 3 ปีที่แล้ว

    Very good Sunny! Thanks for making this video

  • @grott0
    @grott0 ปีที่แล้ว

    Thank you! Very good explanation.

  • @parostpg
    @parostpg 4 ปีที่แล้ว +1

    Excellent. Thank you.

  • @Sadat146
    @Sadat146 5 หลายเดือนก่อน

    best explanation of NAT can you tell me which editor are you used for these type of videos

  • @ctsdeveloperx9248
    @ctsdeveloperx9248 3 ปีที่แล้ว +1

    Great video! Thanks!

  • @tiruinternationalpublicspe4932
    @tiruinternationalpublicspe4932 4 ปีที่แล้ว

    Awesome Video Sunny , Well Explained !!!

  • @akeelsalman7202
    @akeelsalman7202 5 ปีที่แล้ว +1

    Another perfect video... Thanks Sunny

  • @letdo3449
    @letdo3449 2 ปีที่แล้ว

    very great explainations about this 🤗🤗🤗

  • @chandrasekharpbg
    @chandrasekharpbg 3 ปีที่แล้ว

    excellent videos! you should start patreon i'm sure lot of people want to donate to you for the excellent videos.

  • @alexmook6786
    @alexmook6786 3 ปีที่แล้ว

    Awesome explanations!!!!!!

  • @rkoitsjohncena1258
    @rkoitsjohncena1258 4 ปีที่แล้ว +1

    Very well explaination, thanks

  • @vinitshandilya
    @vinitshandilya 4 ปีที่แล้ว

    How amazing this explanation was!! 😀

  • @boblewis1287
    @boblewis1287 3 ปีที่แล้ว

    Very good Sunny

  • @davepete9537
    @davepete9537 10 หลายเดือนก่อน

    Very nice explanation with animations sir, thanks. Therefore, you got me as subscriber. Do you also teach ethical hacking?

  • @lukevandam7610
    @lukevandam7610 ปีที่แล้ว

    Love you sunny. such helpful vidz

  • @pynx5585
    @pynx5585 หลายเดือนก่อน

    BRO I LOVE SUNNY

  • @mohishrockstar
    @mohishrockstar 4 ปีที่แล้ว +1

    If I understand it uses the TCP port number for uniqueness, now suppose one host using all the available ports (2^16 ports), then how will NATs in the router will map other hosts for incoming traffic?

    • @addanametocontinue
      @addanametocontinue 4 ปีที่แล้ว

      The truth is that your router typically uses more than just port number to track the socket/session. It uses the source IP, sort port, destination IP, destination port. This combination of 4 data points allows it to keep track of a lot more than 65536 sessions.

    • @juanpasht
      @juanpasht 4 ปีที่แล้ว

      @@addanametocontinue The combination in raw is: 2^32 src ips * 2^16 src ports * 2^32 dst ips * 2^16 dst ports = 2^96. But normally it is only used 1 unique public IP so it is: 1 src ip * 2^16 src ports * 2^32 dst ips * 2^16 dst ports = 2^64. But also there are some reserved and private IP that are not used as dst ips; they are about 1/8 (en.wikipedia.org/wiki/Reserved_IP_addresses) of the possible 2^32 . About the dst ports, can be used them all (like for port forwarding to one's PC- server), but normally just a few are used, like 25, 80, 443, 5228. So they may not be 2^16, but let's leave them on these 4. We have 1 srcIP * 2^16 srcPorts * (7/8) 2^32 dstIPs * 4 dstPorts = (7/8)2^50 possible combinations-sessions. They are still a lot.
      If one user is using a public IP address on its PC, then can use all those ~2^50 combinations. For a single outside-server like Facebook (with single public IP let's say), with same port 443 for example, well then yes it is 1 srcIP * 2^16 srcPorts * 1 dstIP * 1 dstport = 2^16 possible combinations-sessions; it is 65536 sessions, that, to be active, need constant activity, because if not, they expire so srcPorts can be reused. All this implies that they are still so that many so that PAT is possible. Let's say it is not a user's PC with public IP but the router with NAT-PAT -the most common form 6:04-; and that 100 devices are connected to it and all browsing Facebok (with 1 public IP address) in same port 443: They share the 65336 combinations the router can give by assigning srcPorts to them all (very improbable all 100 at same time browsing same web but who knows, though it is about 650 srcPorts for each evenly). The router will translate the internal hosts' IPs (with their ports) to all srcPorts as they are available. If, as @Mohan Gyara stated, only 1 device is exhausting the 65536 (surely only with a virus making source DoS) srcPorts, then surely no way the other 99 devices will be able to browse Facebook... but only Facebook, not all the web; without a virus it is almost imposible for 1 device or even 100 devices to exhaust the 65536 srcPorts to one single dstIP and dstPort, and single public srcIP. If the same device or other devices visit TH-cam, then it is other IP and other possible combinations of 65536 srcPorts with that different dst IP and Port to be written in the router's NAT table.

  • @crystalitsolution9583
    @crystalitsolution9583 3 ปีที่แล้ว

    I decided to configure NAT on my ZTE MF29A router but NAT Feature is not present on the Router interface. How do I do it

  • @ajazio
    @ajazio ปีที่แล้ว

    (AT 4.30)
    DNAT does not deal with outbound traffic, it deals with inbound traffic. SNAT deals with outbound traffic

  • @erichillel4718
    @erichillel4718 5 ปีที่แล้ว +1

    Very clear, thank you

  • @LosMt2
    @LosMt2 4 ปีที่แล้ว

    I have see SNAT defined as
    Source NAT
    Secure NAT
    Static NAT

  • @fahadoutlook1241
    @fahadoutlook1241 3 ปีที่แล้ว

    thanks a lot brother sunny.

  • @vladislavkaras491
    @vladislavkaras491 2 ปีที่แล้ว

    Really great video!

  • @veronicamv3449
    @veronicamv3449 4 ปีที่แล้ว

    Thanks for the explanation! your Videos are great!

    • @sunnyclassroom24
      @sunnyclassroom24  4 ปีที่แล้ว

      You are welcome! Thank you for your time! Check out my other videos please!

  • @fahad_hassan_92
    @fahad_hassan_92 3 ปีที่แล้ว

    Great explanation!

  • @dodonohoe30
    @dodonohoe30 4 ปีที่แล้ว +1

    Hi, great video... do you have any videos on symmetric NAT? Or a clear explanation?

  • @lillones
    @lillones 2 ปีที่แล้ว

    Is it beneficial to run DNAT on private ips on one intranet? Situations for very large networks that have a lot of remote machines connecting to a central location

  • @JastenAudioVisual
    @JastenAudioVisual 5 ปีที่แล้ว +1

    Sir Please Discuss Link aggregation Switch, NIC Teaming , and MLAG
    vs. Stacking, Trunking ,Static Link Aggregation.....Managed and Manage
    Switch ... Thank you..

    • @sunnyclassroom24
      @sunnyclassroom24  5 ปีที่แล้ว

      I will do soon. Please come back to check my new videos. I will do trunking this week. I put your topics on my to-do list and I will make some videos for your some topics hopefully this month.

  • @NaveenNaveen-uk2vk
    @NaveenNaveen-uk2vk 2 ปีที่แล้ว

    I does not forgot to subscribe😌

  • @emranemran29
    @emranemran29 6 ปีที่แล้ว +1

    Mavaaa nuvu super

  • @sivas4861
    @sivas4861 3 ปีที่แล้ว

    hi great u have shown from 24 but how to calculate from like example of subnet 10.0.0.0/16 could u explain please

  • @Iಠ_ಠl
    @Iಠ_ಠl 3 ปีที่แล้ว

    You are SOOOO AMAZING 🔥🔥🔥🔥

  • @Man0fMeans
    @Man0fMeans 4 ปีที่แล้ว

    1:53 Problem! Default Class B mask is two octets, which is /16 and not the /12 shown in the video. Also, Class C mask is three octets, which is /24, not the /16 shown.

    • @davidb1132
      @davidb1132 4 ปีที่แล้ว

      Man0fMeans he is showing the subnet mask for private IP addresses. Class B private range only uses the first 12 bits; the first octet, and 4 from the second octet. Class C private range only uses the first 16 bits, or, the first two octet.

    • @juanpasht
      @juanpasht 4 ปีที่แล้ว

      ​@@davidb1132 I think Man0fMeans is right. Better explained at en.wikipedia.org/wiki/Private_network, the third private range is a Class B or 256 Class C Networks. And the 2nd private network uses 16 Class B, but is not a single Class B.

  • @FahedAhmed1
    @FahedAhmed1 4 ปีที่แล้ว

    this is great effort .. keep up the great work.

  • @metasivalindowris5642
    @metasivalindowris5642 6 ปีที่แล้ว +3

    thank u master...

  • @santokord1654
    @santokord1654 3 ปีที่แล้ว

    thank you sooo much sir

  • @joecandelas
    @joecandelas 4 ปีที่แล้ว +1

    This is amazing!

  • @Obsi995
    @Obsi995 4 ปีที่แล้ว

    Thank you Sunny!

  • @FatimaHassan-fn1vk
    @FatimaHassan-fn1vk 6 ปีที่แล้ว +2

    Do we commonly use PATs or DNATs in our LAN networks?

    • @sunnyclassroom24
      @sunnyclassroom24  6 ปีที่แล้ว

      It depends on the size of the organization and its service.

    • @FatimaHassan-fn1vk
      @FatimaHassan-fn1vk 6 ปีที่แล้ว +1

      Isnt there any way of knowing which NAT we use through the ipconfig/all command or by typing any other command in the terminal?

    • @sunnyclassroom24
      @sunnyclassroom24  6 ปีที่แล้ว

      @@FatimaHassan-fn1vk It is possible with some more advanced software, but we cannot see from our client-side command. Please let me know if you find it.

    • @anwarahmed5342
      @anwarahmed5342 6 ปีที่แล้ว

      @@FatimaHassan-fn1vk
      If you're in a company using a router, you can use the show run command to see all the configuratons made to this router including NAT, of course if you have access to this router.
      If you're talking about your home private network (WLAN) using a wireless Access point, then you just go to AP's settings page to check the type of NAT you're ISP used for your network.

  • @clarkarussell
    @clarkarussell 4 ปีที่แล้ว

    Great content. Thank you.

  • @linuxuser8264
    @linuxuser8264 3 ปีที่แล้ว

    Thanks a lot

  • @ferasawwad71
    @ferasawwad71 4 ปีที่แล้ว

    Greetings to you. Do you need to link the router's internal ip to the router's mac ip address when using Nat feature in order for it to appear to the world? Or link it to the mac ip pc in the restorative section.

  • @tehrigarhwaluttarakhand4766
    @tehrigarhwaluttarakhand4766 5 ปีที่แล้ว

    Nice explanation

  • @komimawulikpodohouin4543
    @komimawulikpodohouin4543 3 ปีที่แล้ว

    Everything is very clear now woooow great vidéo! Is it possible to do NAT by mapping all the adresses in a network to a public ip adress? In fact at the client side i do not know the ip adresses of his servers. i probably know he will not tell me.

  • @tiruinternationalpublicspe4932
    @tiruinternationalpublicspe4932 4 ปีที่แล้ว

    Subscribed to your Channel Sunny .

  • @AhmedNasser-ui7hd
    @AhmedNasser-ui7hd 3 ปีที่แล้ว

    You are awesome

  • @Timska
    @Timska 5 ปีที่แล้ว +1

    perfect thanks!

  • @9Blurke9
    @9Blurke9 4 ปีที่แล้ว

    Thank you so much!

  • @brianturney2124
    @brianturney2124 2 ปีที่แล้ว

    subscribed and liked!😄

  • @turalrasulzadeh9061
    @turalrasulzadeh9061 4 ปีที่แล้ว

    Only question is that, (about port forwarding) if router takes ip address from ISP and its DHCP, i mean, the wan side of router always change because of dhcp, how i can connect from outside to internal network? Lets say i have ip cameras which connected to Dvr and it also connected to router, how i can use port forwarding if wan side always change

    • @juanpasht
      @juanpasht 4 ปีที่แล้ว

      Using DDNS

  • @dheerajs911
    @dheerajs911 6 ปีที่แล้ว

    Pls create a separate video on patting. Since it's not clear from your previous video

  • @GregInHouston2
    @GregInHouston2 4 ปีที่แล้ว

    This is okay but states that PAT is most common but I don't see how it is even useful. It shows 192.168.100.74:80 translated to 234:1.2.33:8001 but if the destination web server is not listening on 8001 then you are not going to get a desirable result.

  • @abhikumar-vu4my
    @abhikumar-vu4my 2 ปีที่แล้ว

    Sunny sir please upload same on D-Link switch

  • @ko95
    @ko95 5 ปีที่แล้ว +1

    what is the arrow meaning? how is it called?

    • @sunnyclassroom24
      @sunnyclassroom24  5 ปีที่แล้ว +1

      arrows means here an IP address is translated into another IP address. That is basically what NAT is all about.

  • @BoosterKeagan
    @BoosterKeagan 5 ปีที่แล้ว +72

    Turn the speed to 1.25. Thank me later

    • @immersionmusic
      @immersionmusic 5 ปีที่แล้ว +1

      Thanks

    • @tbukholt
      @tbukholt 5 ปีที่แล้ว

      Thank you!

    • @timmytim9054
      @timmytim9054 5 ปีที่แล้ว +4

      What is there to thank? I'm pretty sure people know how to turn their speed preference without an idiotic account saying so.

    • @zoltron30
      @zoltron30 5 ปีที่แล้ว

      later

    • @manjulaweerasinghe7621
      @manjulaweerasinghe7621 4 ปีที่แล้ว

      Thank you!

  • @JoefreyHijara
    @JoefreyHijara 3 ปีที่แล้ว

    Watched this video at x1.25 speed. it's 1000 times better.

  • @dfordata207
    @dfordata207 5 ปีที่แล้ว +1

    Thank u❤️❤️