aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoc/le-iptables.sh9
1 files changed, 9 insertions, 0 deletions
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