Skip to content

Commit ed19ff8

Browse files
committed
configure {black,white}hole ports on pythontest
Replaces functionality of blackhole.snakebite.net and whitehole.snakebite.net Ref: python/cpython#75743 Ref: python/cpython#109060
1 parent 557c13b commit ed19ff8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pillar/base/firewall/snakebite.sls

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
firewall:
2+
snakebite-blackhole-tcp:
3+
raw: -A INPUT -p tcp --destination-port 56666 -j DROP
4+
snakebite-blackhole-udp:
5+
raw: -A INPUT -p udp --destination-port 56666 -j DROP
6+
snakebite-whitehole-tcp:
7+
raw: -A INPUT -p tcp --destination-port 56667 -j RETURN
8+
snakebite-whitehole-udp:
9+
raw: -A INPUT -p udp --destination-port 56667 -j RETURN

pillar/prod/top.sls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ base:
109109
- match: nodegroup
110110
- firewall.http
111111
- firewall.ftp
112+
- firewall.snakebite
112113

113114
'web-pypa':
114115
- match: nodegroup

0 commit comments

Comments
 (0)