Comment 2 for bug 431804

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Here is the upstart job:

# ufw - Uncomplicated Firewall
#
# The Uncomplicated Firewall is a front-end for iptables, to make managing a
# Netfilter firewall easier.

description "Uncomplicated firewall"

start on net-device-added INTERFACE=lo
stop on runlevel [!023456]

pre-start script
    grep -q -i '^ENABLED=yes' /etc/ufw/ufw.conf || exit 1
    exec /lib/ufw/ufw-init start
end script

post-stop exec /lib/ufw/ufw-init stop