summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-02-15 17:25:13 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2012-02-15 17:25:13 +0100
commit97fccd60e1a2e1c0807de581cecb24a351170416 (patch)
treead8dc65812c5f6825ae35344affef0bf9280cfc7
parentBetter way of doing it with iptables. (diff)
downloadstunnel-interceptor-97fccd60e1a2e1c0807de581cecb24a351170416.tar.xz
stunnel-interceptor-97fccd60e1a2e1c0807de581cecb24a351170416.zip
Quotes.
-rwxr-xr-xintercept-iptables.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/intercept-iptables.sh b/intercept-iptables.sh
index ab09fec..08b9dcb 100755
--- a/intercept-iptables.sh
+++ b/intercept-iptables.sh
@@ -55,7 +55,7 @@ while read line; do
clientConfig="client-$counter.conf"
echo "[+] Configuring iptables to redirect $remoteIP:$remotePort <--> incoming:$localPort1"
- iptables -t nat -A PREROUTING -p TCP --destination $remoteIP --dport $remotePort -j REDIRECT --to-port $localPort1
+ iptables -t nat -A PREROUTING -p TCP --destination "$remoteIP" --dport "$remotePort" -j REDIRECT --to-port "$localPort1"
echo "[+] Writing stunnel config for incoming:$localPort1 <--> localhost:$localPort2"
echo " foreground=no