ufw

Comment 16 for bug 916961

Revision history for this message
GeorgeAllen (glallen01) wrote :

Sorry - but this still isn't working:
# Given this:
root@onion-VirtualBox:~# ufw show added
Added user rules (see 'ufw status' for running firewall):
ufw allow 22/tcp
ufw allow 514
...
ufw allow Salt
ufw allow from 192.168.3.13
ufw allow from 192.168.3.0/24 to any port 443,7734 proto tcp

# And this output:
root@onion-VirtualBox:~# awk '/192\.168/{ sub(/ufw /,""); print}' /tmp/ufw-added | \
   xargs -i echo ufw delete {}
ufw delete allow from 192.168.3.12
ufw delete allow from 192.168.3.13
ufw delete allow from 192.168.3.0/24 to any port 443,7734 proto tcp

# Shouldn't this work?
root@onion-VirtualBox:~# awk '/192\.168/{ sub(/ufw /,""); print}' /tmp/ufw-added | xargs -i ufw delete {}