-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiptables_rules.sls
90 lines (81 loc) · 1.66 KB
/
iptables_rules.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
ssh_eno:
iptables.append:
- table: filter
- chain: INPUT
- jump: ACCEPT
- match:
- state
- comment
- comment: "Allow SSH inbound"
- connstate: NEW,ESTABLISHED,RELATED
- in-interface: en*
- dport: 22
- protocol: tcp
- sport: 1025:65535
- save: True
ssh_vmbr:
iptables.append:
- table: filter
- chain: INPUT
- jump: ACCEPT
- match:
- state
- comment
- comment: "Allow SSH inbound"
- connstate: NEW,ESTABLISHED,RELATED
- in-interface: vmbr*
- dport: 22
- protocol: tcp
- sport: 1025:65535
- save: True
https_proxmox:
iptables.append:
- table: filter
- chain: INPUT
- jump: ACCEPT
- match:
- state
- comment
- comment: "Allow proxmox gui inbound"
- connstate: NEW,ESTABLISHED,RELATED
- in-interface: zt*
- dport: 8006
- protocol: tcp
- sport: 1025:65535
- save: True
# drop everything else
drop_eth:
iptables.append:
- table: filter
- chain: INPUT
- jump: DROP
- comment: "DROP EVERYTHING ELSE"
- in-interface: eth*
- save: True
# drop everything else
drop_vmbr:
iptables.append:
- table: filter
- chain: INPUT
- jump: DROP
- comment: "DROP EVERYTHING ELSE"
- in-interface: vmbr0
- save: True
# drop everything else
drop_eno:
iptables.append:
- table: filter
- chain: INPUT
- jump: DROP
- comment: "DROP EVERYTHING ELSE"
- in-interface: eno*
- save: True
# drop everything else
drop_ens:
iptables.append:
- table: filter
- chain: INPUT
- jump: DROP
- comment: "DROP EVERYTHING ELSE"
- in-interface: ens*
- save: True