diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-02-15 17:25:13 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-02-15 17:25:13 +0100 |
commit | 97fccd60e1a2e1c0807de581cecb24a351170416 (patch) | |
tree | ad8dc65812c5f6825ae35344affef0bf9280cfc7 | |
parent | Better way of doing it with iptables. (diff) | |
download | stunnel-interceptor-97fccd60e1a2e1c0807de581cecb24a351170416.tar.xz stunnel-interceptor-97fccd60e1a2e1c0807de581cecb24a351170416.zip |
Quotes.
-rwxr-xr-x | intercept-iptables.sh | 2 |
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 |