Firewalling in Linux using IPtables Sp8scorp
Loading...
5,115
Loading...
Uploader Comments (JJRocco)
see all
All Comments (10)
-
I'll be adding some more stuff later this year. Nice collection of music on your page btw.
-
Thank you JJ it helps for my exam
-
Thanks man! Thats Delerium - Innocente (Tiesto mix). If you search for that name on youtube you'll see the video. Enjoy
-
Thank you!
Btw, what music on the background ?
Loading...
Wow - an EXCELLENT video.. I have worked with IPTables over the years but had to cobble together what knowledge I have from tidbits here and there around the internet and what little bit was covered in books I bought. Your video is specific and to the point, and does an excellent job covering each aspect from what the command is for, how to invoke it, explaining each part of the commands, verifying the commands worked, etc.. Thank you and keep up the great work!
JimButler1234567890 1 year ago
@JimButler1234567890 Thanks!
JJRocco 1 year ago
how would you drop all traffic and only allowing port 80 ?
liverpoolatnight 2 years ago
It would be something like this.
First you accept all traffic to port 80
iptables -A INPUT -p tcp -s 0/0--dports 80 -j ACCEPT
Then you drop all traffic to any other port
iptables -A INPUT -p tcp -s 0/0 -j drop
iptables -A INPUT -p udp -s 0/0 -j drop
The order matters. Dont do this remotely. If you do, make sure you write some type of command to flush your rules after 30 seconds to test to make sure you just didn't lock yourself out your own box. Good luck.
JJRocco 2 years ago
Thanks :) Have a nice live :)
Liseeeek 3 years ago
You are welcome!
JJRocco 3 years ago