Skip to content

Commit

Permalink
private-router rules made persistent (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
k8soneill authored and stevemul committed Apr 9, 2019
1 parent 9718585 commit 237a950
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/allserverspostdeployment/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
- 7080
- 7443
when: extra_gateway_vip is defined and inventory_hostname in groups.nodes_infra

- name: Make private-router iptables rules persistent
blockinfile:
path: /etc/sysconfig/iptables
insertbefore: '^COMMIT'
marker: "# {mark} private-router rules"
block: |
-A OS_FIREWALL_ALLOW -p tcp -m tcp --dport 7080 -m comment --comment "Open port for extra gateway router" -m conntrack --ctstate NEW -j ACCEPT
-A OS_FIREWALL_ALLOW -p tcp -m tcp --dport 7443 -m comment --comment "Open port for extra gateway router" -m conntrack --ctstate NEW -j ACCEPT
when: extra_gateway_vip is defined and inventory_hostname in groups.nodes_infra

- name: Block root login via SSH to all instances
replace:
Expand Down

0 comments on commit 237a950

Please sign in to comment.