Skip to content

first pass, elimitate unnecessary port exposure #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 1 addition & 69 deletions ansible/roles/ec2/sg_configure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@
from_port: 22
to_port: 22
group_id: "{{ sg_bastion }}"
- proto: udp
from_port: 53
to_port: 53
group_id: "{{ sg_dock }}"
- proto: tcp
from_port: 53
to_port: 53
group_id: "{{ sg_dock }}"
- proto: tcp
from_port: 3100
to_port: 3100
Expand Down Expand Up @@ -161,34 +153,14 @@
from_port: 6783
to_port: 6783
group_id: "{{ sg_dock }}"
- proto: tcp
from_port: 8200
to_port: 8200
group_id: "{{ sg_dock }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_api }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_dock }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_hipache }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_navi }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_redis }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_services }}"

- name: Hipache SG
tags:
Expand Down Expand Up @@ -237,26 +209,6 @@
from_port: 32768
to_port: 65535
group_id: "{{ sg_api }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_dock }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_hipache }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_redis }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_services }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_web }}"

- name: MongoDB SG
tags:
Expand Down Expand Up @@ -289,10 +241,6 @@
from_port: 27000
to_port: 27020
group_id: "{{ sg_services }}"
- proto: tcp
from_port: 27000
to_port: 27020
group_id: "{{ sg_dock }}"

- name: Navi SG
tags:
Expand Down Expand Up @@ -572,15 +520,7 @@
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_dock }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_hipache }}"
- proto: tcp
from_port: 32768
to_port: 63353
group_id: "{{ sg_services }}"
group_id: "{{ sg_hipache }}"

- name: Userland Hipache
tags:
Expand Down Expand Up @@ -685,11 +625,3 @@
from_port: 8500
to_port: 8500
group_id: "{{ sg_web }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_api }}"
- proto: tcp
from_port: 32768
to_port: 65535
group_id: "{{ sg_hipache }}"