Last active
October 1, 2018 20:01
-
-
Save rena2019/cdfa22efe21c8bea19784a7eb30b27d3 to your computer and use it in GitHub Desktop.
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
#cloud-config | |
# https://goo.gl/jjsTsj | |
write_files: | |
- container: network | |
path: /var/lib/iptables/rules.sh | |
permissions: "0755" | |
owner: root:root | |
content: | | |
#iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT | |
#iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT | |
#iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT | |
iptables -A INPUT -p tcp -m tcp --dport 9000 -j ACCEPT | |
# the last line of the file needs to be a blank line or a comment | |
rancher: | |
network: | |
interfaces: | |
eth0: | |
dhcp: true | |
post_up: | |
- bash /var/lib/iptables/rules.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment