Using `iptables` on Linux
In this video, I show you how to use iptables to firewall inbound traffic on your Linux server or home computer.
Here's some useful commands:
# enable all traffic on localhost
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
# list all rules
iptables -L -n
# accept traffic on HTTP and HTTPS
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
# set the policy to DROP
iptables -P INPUT DROP
# an extra one not shown in the video: this will allow all outgoing traffic for already established TCP connections. This is important if you limit inbound traffic as well as outgoing traffic.
iptables -A OUTPUT -p tcp --dport 513:65535 --state ESTABLISHED -j ACCEPT
# delete the fifth input rule
iptables -D INPUT 5
Видео Using `iptables` on Linux канала macheads101
Here's some useful commands:
# enable all traffic on localhost
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
# list all rules
iptables -L -n
# accept traffic on HTTP and HTTPS
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
# set the policy to DROP
iptables -P INPUT DROP
# an extra one not shown in the video: this will allow all outgoing traffic for already established TCP connections. This is important if you limit inbound traffic as well as outgoing traffic.
iptables -A OUTPUT -p tcp --dport 513:65535 --state ESTABLISHED -j ACCEPT
# delete the fifth input rule
iptables -D INPUT 5
Видео Using `iptables` on Linux канала macheads101
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Computer Networking Tutorial - 40 - iptables Firewall Rules](https://i.ytimg.com/vi/eC8scXX1_1M/default.jpg)
![Top 10 Linux Job Interview Questions](https://i.ytimg.com/vi/l0QGLMwR-lY/default.jpg)
![Introduction to IPTables](https://i.ytimg.com/vi/XKfhOQWrUVw/default.jpg)
![IPTABLES [PART-1] : "UNDERSTANDING THE CONCEPT"](https://i.ytimg.com/vi/vbhr4csDeI4/default.jpg)
![](https://i.ytimg.com/vi/HwOnAu5g1jQ/default.jpg)
![Word Embeddings](https://i.ytimg.com/vi/5PL0TmQhItY/default.jpg)
![iptables Complete Guide | HackerSploit Linux Security](https://i.ytimg.com/vi/6Ra17Qpj68c/default.jpg)
![SSH Tunneling - Local & Remote Port Forwarding (by Example)](https://i.ytimg.com/vi/N8f5zv9UUMI/default.jpg)
![How I'm Learning AI and Machine Learning](https://i.ytimg.com/vi/OypPjvm4kiA/default.jpg)
![iptables: A Basic Router](https://i.ytimg.com/vi/P3GRaGy9fMI/default.jpg)
![Ubuntu Studio: Creative Linux Distro](https://i.ytimg.com/vi/txVIlioe2xU/default.jpg)
![Running Windows Programs on Linux](https://i.ytimg.com/vi/dqZDuKB949U/default.jpg)
![How to Set Up a Firewall Using Iptables | SSH Tarpit](https://i.ytimg.com/vi/qPEA6J9pjG8/default.jpg)
![iptables Demystified - Port Redirection and Forwarding HTTP Traffic to another machine (part 1)](https://i.ytimg.com/vi/NAdJojxENEU/default.jpg)
![Linux - UFW Firewall Setup (ufw)](https://i.ytimg.com/vi/Fx2jUKS4aus/default.jpg)
![A brief demonstration of IPTables on Ubuntu](https://i.ytimg.com/vi/j2hUs7p3VrU/default.jpg)
![15 Useful Linux Commands Every Linux User Needs | Learning Terminal Part 1](https://i.ytimg.com/vi/XK81cfvrElg/default.jpg)
![Working with iptables](https://i.ytimg.com/vi/9rLVI2UUdoo/default.jpg)
![TUTORIAL: Iptables (tabla filter-basico) parte 1](https://i.ytimg.com/vi/9A64q6A-BH8/default.jpg)
![CentOS 8 - Postfix SMTP, Dovecot POP IMAP and SSL/TLS](https://i.ytimg.com/vi/XqLgbn1NXTg/default.jpg)