How do I add these rules with UFW?
Code: Select all
iptables -A INPUT -i lo -j ACCEPT -m comment --comment "Allow loopback device"
iptables -A OUTPUT -o lo -j ACCEPT -m comment --comment "Allow loopback device"
iptables -A INPUT -s 127.0.1.1 -j ACCEPT -m comment --comment "resolv"
iptables -A OUTPUT -d 127.0.1.1 -j ACCEPT -m comment --comment "resolv"
iptables -A INPUT -s 192.168.1.0/24 -j ACCEPT -m comment --comment "allow all local traffic"
iptables -A OUTPUT -d 192.168.1.0/24 -j ACCEPT -m comment --comment "allow all local traffic"
iptables -A INPUT -i eth0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT