From ee2ed303c8f3d22997e868649240c8c183bdfb89 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 29 Mar 2016 13:41:45 +0200 Subject: Add le iptables helper script --- doc/le-iptables.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 doc/le-iptables.sh diff --git a/doc/le-iptables.sh b/doc/le-iptables.sh new file mode 100755 index 0000000..dff1fea --- /dev/null +++ b/doc/le-iptables.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +for host in outbound1.letsencrypt.org outbound2.letsencrypt.org; do + for port in 80 443; do + dest=$((port+8000)) + iptables --table nat --append PREROUTING --protocol tcp \ + --source $host --dport $port --jump REDIRECT --to-ports $dest + done +done -- cgit v1.2.3