diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-10-30 21:06:51 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:50:28 +0200 |
commit | fbde929fce7405f018fc66bb5796bf0a16292913 (patch) | |
tree | 25be7bfa8547295694be7658d41cdc9e33423b2a /roles/common/templates/etc/iptables | |
parent | e54c9bc8d96bdef1c9a5634f5cff3b66f38f487e (diff) |
Configure v4 and v6 iptable rulesets.
Diffstat (limited to 'roles/common/templates/etc/iptables')
-rw-r--r-- | roles/common/templates/etc/iptables/services.j2 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/common/templates/etc/iptables/services.j2 b/roles/common/templates/etc/iptables/services.j2 new file mode 100644 index 0000000..b1b7f0f --- /dev/null +++ b/roles/common/templates/etc/iptables/services.j2 @@ -0,0 +1,13 @@ +# {{ ansible_managed }} +# Do NOT edit this file directly! +# +# direction protocol destination port source port +# (in|out|inout)[46]? (tcp|udp|..) (port|port:port|port,port) (port|port:port|port,port) + +inout udp 500 500 # ISAKMP + +in tcp {{ ansible_ssh_port|default('22') }} # SSH + +out tcp 80,443 # HTTP/HTTPS +out udp 53 # DNS +out udp 67 # DHCP |