iptables Complete Guide | HackerSploit Linux Security

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 97

  • @jakke1975
    @jakke1975 2 года назад +24

    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 10 дней назад

    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!

  • @theretromillennial
    @theretromillennial 2 года назад +2

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

  • @motolaoshin
    @motolaoshin 2 года назад +1

    Was scared of Iptables until I saw this video.
    Thanks

  • @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.

  • @WanderingFriar
    @WanderingFriar 2 месяца назад

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

  • @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

  • @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.

  • @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.

  • @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....

  • @LoveChaac
    @LoveChaac 2 года назад +6

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

    • @technics6215
      @technics6215 2 года назад +1

      In depth? Are you serious?

  • @donthedoughnut
    @donthedoughnut Год назад

    thanks for taking time to make this content

  • @PezhvakIMV
    @PezhvakIMV 3 года назад +1

    Best explanation so far, thank you!

  • @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

  • @TungNguyen-kf6pr
    @TungNguyen-kf6pr 11 месяцев назад

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

  • @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.

  • @JayJay-ki4mi
    @JayJay-ki4mi 2 года назад

    I needed a refresher, this was perfect thank you.

  • @dougmmm
    @dougmmm Год назад

    Excellent video, very clear and helpful. Well done.

  • @andrewryabchenko2407
    @andrewryabchenko2407 Год назад

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

  • @cutesammie
    @cutesammie 9 месяцев назад

    Very informative video. Thanks

  • @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.

  • @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

  • @rajeshbabu5531
    @rajeshbabu5531 7 месяцев назад

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

  • @luantrancong4448
    @luantrancong4448 Год назад

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

  • @DarraghMcCarthy
    @DarraghMcCarthy 8 месяцев назад

    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?

  • @TheEbrahimi
    @TheEbrahimi 2 года назад

    Great explanation, thank you!

  • @dzboot
    @dzboot 3 месяца назад

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

  • @mauwiks
    @mauwiks 2 года назад

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

  • @patrickslomian7423
    @patrickslomian7423 Год назад

    Amazing, thank you so much ! :)

  • @panduhakam7529
    @panduhakam7529 11 месяцев назад

    The sound is clearly 🎉

  • @SilentSolution
    @SilentSolution 3 года назад

    Thanks for your information and cooperation sir

  • @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

  • @tErMiiNeX
    @tErMiiNeX Год назад

    Very good and clear.

  • @aliksz
    @aliksz 3 года назад +1

    Great video!

  • @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

  • @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!

  • @radicate
    @radicate 2 года назад

    Thanks! And so on and so forth :)

  • @eloualielouali4949
    @eloualielouali4949 2 года назад

    This was so helpful

  • @shahramzahedi
    @shahramzahedi 2 года назад

    so great, thank you.👍🏻

  • @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.

  • @superpk557
    @superpk557 3 года назад +2

    Mate i need help plesae.

  • @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

  • @arunrajsb1450
    @arunrajsb1450 3 года назад

    good class. Than you very much

  • @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

  • @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 ?

  • @Chrysovalandis
    @Chrysovalandis 3 года назад +1

    Thank you!

  • @sennaelemento
    @sennaelemento Год назад

    You are just subscribed.

  • @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

  • @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)

  • @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

  • @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

  • @thatoneguy734
    @thatoneguy734 2 года назад

    how about phone android??

  • @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.

  • @radonspace2098
    @radonspace2098 3 года назад

    Good man!

  • @visibleaesthetics7343
    @visibleaesthetics7343 Год назад

    Fantastic

  • @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.

  • @hamza77v
    @hamza77v 2 года назад

    😍😍😍

  • @quentinaslan
    @quentinaslan 3 года назад

    Thanks

  • @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!

  • @davidli8936
    @davidli8936 10 месяцев назад

    useful

  • @SharonLekahena
    @SharonLekahena 3 года назад

    👌

  • @curias7
    @curias7 3 года назад

    GRAPE

  • @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

  • @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..

  • @oxodao
    @oxodao 9 месяцев назад

    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

  • @mirko1989
    @mirko1989 3 месяца назад

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

  • @nully.emptier
    @nully.emptier 2 года назад

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

  • @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

  • @jurijus01
    @jurijus01 18 дней назад

    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!