Skip to content

Instantly share code, notes, and snippets.

@james-huston
Created August 11, 2014 20:10
Show Gist options
  • Save james-huston/be615f9a088c269d14c0 to your computer and use it in GitHub Desktop.
Save james-huston/be615f9a088c269d14c0 to your computer and use it in GitHub Desktop.
#!/bin/bash
PORT=443
iptables -I INPUT -p tcp --dport $PORT --syn -j DROP
sleep 1
service haproxy restart
iptables -D INPUT -p tcp --dport $PORT --syn -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment