iptables Complete Guide | HackerSploit Linux Security

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 97

  • @jakke1975
    @jakke1975 2 роки тому +22

    If only every guide on the internet was this clearly explained, maybe the world would actually have helpdesks that understand what they're doing.
    Thanks man.

    • @carrycat876
      @carrycat876 2 роки тому +3

      I work at a helpdesk and I agree.

    • @jakke1975
      @jakke1975 2 роки тому

      @@carrycat876 lol, I feel your pain (have some experience myself)

  • @DevoShreds
    @DevoShreds 7 місяців тому +4

    I came to review the iptables syntax for an upcoming exam and watched the whole lecture because you are an excellent teacher. Thanks for clarifying many questions I didn't know I had about iptables.

  • @ashwanibhola3766
    @ashwanibhola3766 7 днів тому

    Thank you for this video! I'm in the process of setting up a DD-WRT router with multiple VLANs which uses iptables for defining firewall rules. I've never used it before, so your explanation was extremely helpful!

  • @Kathlanus
    @Kathlanus 2 роки тому +18

    Great video explaining most of the basics, thank you. But I would have appreciated a bit of a deeper dive into the internal decision making of iptables. How does it decide what table to use. Or in what order are which chanes of which table applied. I think that would be very important additional basics that may not be necessary for simple use cases like they are shown here. But are really important for more advanced use cases later on. Maybe a follow up video?

  • @cobaltshadow2417
    @cobaltshadow2417 Рік тому

    Helped me so much when trying to understand this for a college assignment. Thank you so much!

  • @xshortguy
    @xshortguy 3 роки тому +14

    video title: iptables Complete Guide
    video content: We will not be talking about the NAT Tables or the Mangle Tables. So really only 1/3 of IP Tables.

  • @motolaoshin
    @motolaoshin 2 роки тому +1

    Was scared of Iptables until I saw this video.
    Thanks

  • @theretromillennial
    @theretromillennial 2 роки тому +2

    Thanks for this. Very straight forward and helped me to figure out how to start using iptables!

  • @WanderingFriar
    @WanderingFriar 2 місяці тому

    Thanks for a clear and concise guide. Very helpful.
    Subscribed.

  • @LoveChaac
    @LoveChaac 2 роки тому +6

    What an incredibly in depth explanation of IPTables and configuration. Thank you!

  • @robertphillips124714
    @robertphillips124714 2 роки тому +3

    Great explanation, thank you!
    You've covered the 2 Chains that handle local ingres and egress. If love to see another video that explains the other 9 tables.

  • @marcopenafort876
    @marcopenafort876 2 роки тому

    Thank you a lot! I didn't get what was this about in a hole semester and now it's completely clear because of you.
    Greetings from 📌Tero Violado - Argentina

  • @BotBytesHQ
    @BotBytesHQ 3 роки тому +4

    I never wanted to learn IPTABLES and just hated it..but with your explanation I am back in this OS Firewall game....

  • @Sreenathsdas
    @Sreenathsdas Рік тому +10

    Great video. Just one doubt, aren't we supposed to curl the website:443 instead of a ping?

    • @gsander3102
      @gsander3102 Рік тому +1

      ping is handled by the network layer and the curl requests are handled by the application layer. iptables at best can block ports which is in the network and transport layer.

    • @diogomartinsferreira8813
      @diogomartinsferreira8813 Рік тому

      For this particular scenario curl would have been better to test or even telnet to something on the web on port 443. Ping its not used to test TCP protocol, it uses ICMP which is different protocol. @@gsander3102

    • @michaelj7677
      @michaelj7677 2 місяці тому +1

      yes. ping is ICMP. if you want to test outgoing connections to port 443, you need to try an outgoing connection to that port, e.g. using curl.

  • @donthedoughnut
    @donthedoughnut Рік тому

    thanks for taking time to make this content

  • @rezasharifi257
    @rezasharifi257 2 роки тому +3

    Thanks for the great video. Made such a terrifying concept so simple. But, I think the reason for the ping failure wasn't due to the filtering rule, but it was the DNS problem. Apparently, the DNS server is not set, and thus, it can't resolve the given URL.

    • @PurnachandMedisetty
      @PurnachandMedisetty Рік тому

      ROFL

    • @diogomartinsferreira8813
      @diogomartinsferreira8813 Рік тому +1

      the issue is that PING uses ICMP, and it does not take urls, it takes either IPs or domains, that is why it was complaining about the syntax. Anyway it could not be used for this particular test.

  • @Handy-Handy
    @Handy-Handy 3 роки тому +3

    ahh i hate ip-tables - but when you teach it! its wonderful :D

    • @HackerSploit
      @HackerSploit 3 роки тому +5

      Thank you very much for the feedback, I am glad you found the video helpful.

  • @MrknisterKanister
    @MrknisterKanister Рік тому

    very ncie beginning. "iptables Complete Guide" beside nat and mangle

  • @PezhvakIMV
    @PezhvakIMV 3 роки тому +1

    Best explanation so far, thank you!

  • @JayJay-ki4mi
    @JayJay-ki4mi 2 роки тому

    I needed a refresher, this was perfect thank you.

  • @TungNguyen-kf6pr
    @TungNguyen-kf6pr 11 місяців тому

    Very grate ! It is very simple to understand. Thank you!

  • @rajeshbabu5531
    @rajeshbabu5531 7 місяців тому

    Thanks for the session. Can you please take a session about ebtables

  • @PrathameshShinde-o4o
    @PrathameshShinde-o4o 4 місяці тому

    Hi i'm using zorin os and i want to create a whitelist list so that the user using that laptop will be able to access only those site which I have added in that list and if he tries to access other sites it will show its blocked so how can I do it. Please help

  • @dougmmm
    @dougmmm Рік тому

    Excellent video, very clear and helpful. Well done.

  • @Virimen
    @Virimen 2 роки тому

    Thanks for the clarifying video. You should make one on getting udp to work with 1 system streaming/recording with FFMPEG locally on OBS Studio to another system catching it to stream because I haven't found one that has really helped.

  • @andrewryabchenko2407
    @andrewryabchenko2407 Рік тому

    It is a great explanation. Thank you so much for this video!

  • @pedro7ucio
    @pedro7ucio 2 роки тому

    Hello bro.
    What I do?
    iptables v1.8.7 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    Thankssss!

  • @cutesammie
    @cutesammie 9 місяців тому

    Very informative video. Thanks

  • @dzboot
    @dzboot 3 місяці тому

    Great and concise explanation, thanks. But persisting iptables does not work like this.

  • @DarraghMcCarthy
    @DarraghMcCarthy 7 місяців тому

    how was he able to connect to the server via Weblish after setting INPUT to DROP? Should that not also connect over SSH and so also be dropped?

  • @Chodak166
    @Chodak166 Рік тому +4

    I appreciate the effort, but first: it's not a complete guide, and second: iptables-save "saves" the state on the screen. To make the changes permanent you need to run 'iptables-save > /etc/iptables/rules.v4' previously installing the iptables-persistent package.

  • @mktmohit
    @mktmohit 2 роки тому +2

    name or service unknown means that fqdn is not resolved by dns.. its not reaching or hitting any output chain. But video is good

  • @panduhakam7529
    @panduhakam7529 10 місяців тому

    The sound is clearly 🎉

  • @patrickslomian7423
    @patrickslomian7423 Рік тому

    Amazing, thank you so much ! :)

  • @mauwiks
    @mauwiks 2 роки тому

    Do you have a recommended format set of rules to secure a WordPress site?

  • @over-there
    @over-there 11 місяців тому

    I just learned iptables is a limited gui console for nftables. Iptables is nftables. On the cli can type iptables -S or nft list tables and then list the table, like nft list table ip filter, using sudo of course

  • @radicate
    @radicate 2 роки тому

    Thanks! And so on and so forth :)

  • @TheEbrahimi
    @TheEbrahimi 2 роки тому

    Great explanation, thank you!

  • @tErMiiNeX
    @tErMiiNeX Рік тому

    Very good and clear.

  • @luantrancong4448
    @luantrancong4448 Рік тому

    Can you explain about -f option and how iptable treat the fragmented packet?

  • @SilentSolution
    @SilentSolution 3 роки тому

    Thanks for your information and cooperation sir

  • @shahramzahedi
    @shahramzahedi 2 роки тому

    so great, thank you.👍🏻

  • @aliksz
    @aliksz 3 роки тому +1

    Great video!

  • @superpk557
    @superpk557 3 роки тому +2

    Mate i need help plesae.

  • @eloualielouali4949
    @eloualielouali4949 2 роки тому

    This was so helpful

  • @mojisboy
    @mojisboy 3 роки тому +6

    ty fam you made it simple as fuck !!!

  • @asmodeus4310
    @asmodeus4310 3 роки тому

    Is it necessary to uninstall any pre-installed firewalls before using iptables

    • @AkamaiDeveloper
      @AkamaiDeveloper  3 роки тому +1

      Yes, it is best practice as mentioned here www.linode.com/docs/guides/what-is-iptables/#installing-iptables

    • @asmodeus4310
      @asmodeus4310 3 роки тому

      @@AkamaiDeveloper thanks

  • @tilltheend6634
    @tilltheend6634 Рік тому

    😭😭sbin iptables - save doesnt save so i created a script and a service for launching it at every reboot but it makes bug my system what to do to save iptables rules pleaaase but the video is and will be very usefull thanks alot

  • @ifernandez08
    @ifernandez08 2 роки тому

    Hi Guys! I was trying to connect my company by one VPN from that IP i got another VPN to connect another company. Could someone give me some advices ?

  • @arunrajsb1450
    @arunrajsb1450 3 роки тому

    good class. Than you very much

  • @Chrysovalandis
    @Chrysovalandis 3 роки тому +1

    Thank you!

  • @visibleaesthetics7343
    @visibleaesthetics7343 Рік тому

    Fantastic

  • @sennaelemento
    @sennaelemento Рік тому

    You are just subscribed.

  • @technics6215
    @technics6215 2 роки тому +11

    Title is missleading :( What kind of "Complete Guide" is this? That's just about filter, accepting or dropping packets. Port redirection, NAT and mangle not covered at all, I'm disappointed. Thumb down, sorry man.

  • @asmodeus4310
    @asmodeus4310 3 роки тому

    Is iptables similar to the uncomplicated firewall?

    • @AkamaiDeveloper
      @AkamaiDeveloper  3 роки тому +1

      Uncomplicated Firewall technically is a frontend for iptables. More info here wiki.ubuntu.com/UncomplicatedFirewall

  • @radonspace2098
    @radonspace2098 3 роки тому

    Good man!

  • @asmodeus4310
    @asmodeus4310 3 роки тому

    Can we port forward using iptables

    • @AkamaiDeveloper
      @AkamaiDeveloper  3 роки тому

      Yes, but you should also be aware of your firewall settings on the system. more info here www.systutorials.com/port-forwarding-using-iptables/

    • @asmodeus4310
      @asmodeus4310 3 роки тому

      @@AkamaiDeveloper thanks linode

  • @thefrisianclause
    @thefrisianclause 3 роки тому

    Well this made my overthinking head, going crazy.... As because of this video it doesn't seem to be that hard to understand

  • @incognito7843
    @incognito7843 6 місяців тому

    Note, normally you don't have a unique public IP because your internet provider is letting you share the IP with other people. So this is in most cases NOT a good way to block all users except yourself...

  • @sanctuary_of_soul
    @sanctuary_of_soul 2 роки тому +1

    How is this upposed to be a complete guide if you from start say that you won't be considering NAT and MANGLE tables.

  • @thatoneguy734
    @thatoneguy734 2 роки тому

    how about phone android??

  • @Victor-vw5zq
    @Victor-vw5zq Рік тому

    When he tries to ping hackersploit it says that the service is unknown because the server can't even reach out to a DNS server to check the IP of the website! :) (I think)

  • @davidli8936
    @davidli8936 9 місяців тому

    useful

  • @quentinaslan
    @quentinaslan 3 роки тому

    Thanks

  • @hamza77v
    @hamza77v 2 роки тому

    😍😍😍

  • @rexsovelllejes9383
    @rexsovelllejes9383 3 роки тому +1

    Click bait! Titles says IPTABLES COMPLETE GUIDE but showing FILTER TABLES only. Your titles should be "iptables filter table complete guide" as nat and mangle table part of the complete IPTABLES guide!

  • @guilherme5094
    @guilherme5094 3 роки тому

    Like!

  • @SharonLekahena
    @SharonLekahena 3 роки тому

    👌

  • @salexkorsan8790
    @salexkorsan8790 6 місяців тому

    Hello, i'm facing a DDOS attack on my VPS,
    i'm new to use ufw, and iptables, i'm Trying to Block IP Address Attacker,
    all commands working fine, but ip address not blocking, what to do ?
    tried with ufw, and iptables both. but not blocking.

    • @IAM-b9w
      @IAM-b9w 6 місяців тому

      redirect your traffic to cloudflare protection service

  • @curias7
    @curias7 3 роки тому

    GRAPE

  • @bluesirva3574
    @bluesirva3574 2 роки тому +1

    woeful.. To call this a complete guide is a BIG stretch, when only input & output chains are covered. Locking yourself out with second command just made me laugh, reminding me of an old saying - If you can't cut it in the real world, you teach.. well try to anyway..

  • @mohamedkeddache4202
    @mohamedkeddache4202 Рік тому

    i don't like the way you explain, u just give random information and jump from point to point.
    you must first clear things like how the form of the command is ( like what is L and you can replace it with A or I or D and for the next you will specify the chain then .... until J) , and then start doing examples

  • @mirko1989
    @mirko1989 3 місяці тому

    iptables could be made 10x more readable and easier to use by just changing the names and terminology , FFS !!!

  • @oxodao
    @oxodao 8 місяців тому

    Title: complete guide
    3 min into the video: yeah so i dont give a shit about 2/3 of the software so i wont explain it
    This video is worthless

  • @nully.emptier
    @nully.emptier 2 роки тому

    thx for great video and the efforts but... iptables is dying

  • @jurijus01
    @jurijus01 15 днів тому

    You don't save just like that! It's a great video and I learnt from it, but - quite dangerously misleading - actual saving is done nothing like the video shows. What video shows by /sbin/iptables-save is merely output to the screen and nothing else. Once you reboot your server all your rules will fly away! Unless you make them PERSISTENT by installing the relevant package (apt install iptables-persistent), which will make /etc/iptables dir for you, where YOU will have to save the rules like so: /sbin/iptables-save > /etc/iptables/rules.v4 (or rules.v6 should you do IPv6 ones). Only after that you will have actually saved your rules and they will persist on reboot.

  • @the_caret
    @the_caret Рік тому

    What an incredibly in depth explanation of IPTables and configuration. Thank you!