đģ iptables
Systemd
sudo systemctl enable iptables.service
sudo systemctl start iptables.service
sudo systemctl restart iptables.service
After edits
Port forwarding
sudo iptables -P FORWARD DROP
Systemd
sudo systemctl enable ufw.service
sudo systemctl start ufw.service
SSH Limiting
Add rule
Subcat: Services
Application: SSH
Policy: Limit
Port forwarding
sudov /etc/ufw/sysctl.conf
Uncomment..
#net/ipv4/ip_forward=1 #net/ipv6/conf/default/forwarding=1 #net/ipv6/conf/all/forwarding=1
sudo ufw reload
Created: 12/29/2021 âĸ Edited: 02/09/2025 âĸ Author: Chris Schammert (csmertx) âĸ
History đĩī¸