Skip to content

Commit

Permalink
configure {black,white}hole ports on pythontest
Browse files Browse the repository at this point in the history
Replaces functionality of blackhole.snakebite.net and whitehole.snakebite.net

Ref: python/cpython#75743
Ref: python/cpython#109060
  • Loading branch information
ewdurbin committed Sep 7, 2023
1 parent 557c13b commit ed19ff8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pillar/base/firewall/snakebite.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
firewall:
snakebite-blackhole-tcp:
raw: -A INPUT -p tcp --destination-port 56666 -j DROP
snakebite-blackhole-udp:
raw: -A INPUT -p udp --destination-port 56666 -j DROP
snakebite-whitehole-tcp:
raw: -A INPUT -p tcp --destination-port 56667 -j RETURN
snakebite-whitehole-udp:
raw: -A INPUT -p udp --destination-port 56667 -j RETURN
1 change: 1 addition & 0 deletions pillar/prod/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ base:
- match: nodegroup
- firewall.http
- firewall.ftp
- firewall.snakebite

'web-pypa':
- match: nodegroup
Expand Down

0 comments on commit ed19ff8

Please sign in to comment.