OK. For example : on an existing installation (built from source) :
1. Disable firewall : #ufw disable 2. Flush all iptables rules : #/lib/ufw/ufw-init flush-all 3. Enable firewall : #ufw enable 4. Check INPUT chain : #iptables -L INPUT -n
Chain INPUT (policy DROP) target prot opt source destination ufw-before-logging-input all -- 0.0.0.0/0 0.0.0.0/0 ufw-before-input all -- 0.0.0.0/0 0.0.0.0/0 ufw-after-input all -- 0.0.0.0/0 0.0.0.0/0 ufw-reject-input all -- 0.0.0.0/0 0.0.0.0/0 ufw-track-input all -- 0.0.0.0/0 0.0.0.0/0
OK. For example : on an existing installation (built from source) :
1. Disable firewall : ufw/ufw- init flush-all
#ufw disable
2. Flush all iptables rules :
#/lib/
3. Enable firewall :
#ufw enable
4. Check INPUT chain :
#iptables -L INPUT -n
Chain INPUT (policy DROP) logging- input all -- 0.0.0.0/0 0.0.0.0/0
target prot opt source destination
ufw-before-
ufw-before-input all -- 0.0.0.0/0 0.0.0.0/0
ufw-after-input all -- 0.0.0.0/0 0.0.0.0/0
ufw-reject-input all -- 0.0.0.0/0 0.0.0.0/0
ufw-track-input all -- 0.0.0.0/0 0.0.0.0/0