aboutsummaryrefslogtreecommitdiff
path: root/tlsproxy
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-01-22 23:21:12 +0100
committerAlex Auvolat <alex@adnab.me>2024-01-22 23:21:12 +0100
commite89d1c82bb6830c1f80155b609187587b1b45325 (patch)
treec4eecaa3df65ed8821ddd6738b7fb146e85a9241 /tlsproxy
parent27242fbf70758c9e10cc83e723dfaf9832404674 (diff)
downloadnixcfg-e89d1c82bb6830c1f80155b609187587b1b45325.tar.gz
nixcfg-e89d1c82bb6830c1f80155b609187587b1b45325.zip
tlsproxy: bind on 127.0.0.1 explicitly to avoid ipv6 issues
Diffstat (limited to 'tlsproxy')
-rwxr-xr-xtlsproxy4
1 files changed, 2 insertions, 2 deletions
diff --git a/tlsproxy b/tlsproxy
index d6a845c..72efd90 100755
--- a/tlsproxy
+++ b/tlsproxy
@@ -38,10 +38,10 @@ pass $PREFIX/consul$YEAR.crt > $CERTDIR/consul.crt
pass $PREFIX/consul$YEAR-client.crt > $CERTDIR/consul-client.crt
pass $PREFIX/consul$YEAR-client.key > $CERTDIR/consul-client.key
-socat -dd tcp-listen:4646,reuseaddr,fork,bind=localhost openssl:localhost:14646,cert=$CERTDIR/nomad-client.crt,key=$CERTDIR/nomad-client.key,cafile=$CERTDIR/nomad.crt,verify=0 &
+socat -dd tcp-listen:4646,reuseaddr,fork,bind=127.0.0.1 openssl:localhost:14646,cert=$CERTDIR/nomad-client.crt,key=$CERTDIR/nomad-client.key,cafile=$CERTDIR/nomad.crt,verify=0 &
child1=$!
-socat -dd tcp-listen:8500,reuseaddr,fork,bind=localhost openssl:localhost:8501,cert=$CERTDIR/consul-client.crt,key=$CERTDIR/consul-client.key,cafile=$CERTDIR/consul.crt,verify=0 &
+socat -dd tcp-listen:8500,reuseaddr,fork,bind=127.0.0.1 openssl:localhost:8501,cert=$CERTDIR/consul-client.crt,key=$CERTDIR/consul-client.key,cafile=$CERTDIR/consul.crt,verify=0 &
child2=$!
wait "$child1"