2/20/20 9:00AM
I recently enabled the firewall software feature on my computer running Debian(a Linux distribution), here are the steps:1: install Debian package "iptables"
# apt install iptables
2: put firewall rules in file "/etc/iptables.conf"
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
3: create firewall-starting file "/etc/network/if-pre-up.d/iptables" #!/bin/sh
iptables-restore</etc/iptables.conf
4: make file "/etc/network/if-pre-up.d/iptables" executable # chmod a+x /etc/network/if-pre-up.d/iptables
5: run file "/etc/init.d/networking" to start firewall
# /etc/init.d/networking restart
| Feng Zhou |
About Us|Corporate Responsibility|Contact|Advertising Program
© 2026 Sretto