ufw [--dry-run] enable|disable|reload
ufw [--dry-run] default allow|deny|reject [incoming|outgoing]
ufw [--dry-run] logging on|off|LEVEL
toggle logging. Logged packets use the LOG_KERN syslog facility. Systems configured for rsyslog
support may also log to /var/log/ufw.log. Specifying a LEVEL turns logging on for the specified LEVEL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# coding: UTF-8 | |
import boto3 | |
import json | |
# Main function that runs the whole thing | |
def updateAll(): | |
instances,groups = getEC2Instances() | |
updateHosts(instances,groups) |