Skip to content

Commit 7313d4e

Browse files
authored
Ansible: Close wide open 22 and 53 ports. Add ssh access from EF bastion (adoptium#4290)
* Ansible: Close wide open 22 and 53 ports. Add ssh access from EF bastion * Ansible: Add ssh access from committers jumphost
1 parent 638b5b0 commit 7313d4e

File tree

1 file changed

+3
-15
lines changed
  • ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/jckservices_iptables/tasks

1 file changed

+3
-15
lines changed

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/jckservices_iptables/tasks/main.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,6 @@
2727
protocol: icmp
2828
jump: ACCEPT
2929

30-
- name: Setup iptables allow 22
31-
iptables:
32-
chain: INPUT
33-
protocol: tcp
34-
destination_port: 22
35-
jump: ACCEPT
36-
37-
- name: Setup iptables allow 53
38-
iptables:
39-
chain: INPUT
40-
protocol: udp
41-
destination_port: 53
42-
jump: ACCEPT
43-
4430
- name: Allow Azure private network (10.1.x.x)
4531
iptables:
4632
chain: INPUT
@@ -81,11 +67,13 @@
8167
- 62.210.163.131 # jck-rise-ubuntu2404-risc64-1
8268
- 62.210.163.164 # jck-rise-ubuntu2404-risc64-2
8369
- 62.210.163.34 # jck-rise-ubuntu2404-risc64-3
70+
- 198.41.30.213 # Eclipse Foundation bastion
71+
- 148.113.143.13 # Committers jumphost
8472

8573
- name: Setup iptables
8674
iptables:
8775
chain: INPUT
88-
jump: REJECT
76+
jump: DROP
8977

9078
- name: Set iptables_permanent
9179
shell: iptables-save > /etc/iptables/rules.v4

0 commit comments

Comments
 (0)