diff --git a/net/gce.sh b/net/gce.sh index f4c31850fc..47017ddc6c 100755 --- a/net/gce.sh +++ b/net/gce.sh @@ -480,6 +480,7 @@ $( install-nodejs.sh \ install-redis.sh \ install-rsync.sh \ + install-socat.sh \ network-config.sh \ remove-docker-interface.sh \ diff --git a/net/remote/remote-node.sh b/net/remote/remote-node.sh index dfc887dcef..2c2faecb8d 100755 --- a/net/remote/remote-node.sh +++ b/net/remote/remote-node.sh @@ -116,6 +116,7 @@ local|tar) if [[ $nodeType = blockstreamer ]]; then npm install @solana/blockexplorer@1 npx solana-blockexplorer > blockexplorer.log 2>&1 & + sudo socat TCP-LISTEN:80,reuseaddr,fork,su=nobody TCP:localhost:5000 fi ./multinode-demo/fullnode.sh "${args[@]}" "$entrypointIp":~/solana "$entrypointIp:8001" > fullnode.log 2>&1 & ;; diff --git a/net/scripts/install-socat.sh b/net/scripts/install-socat.sh new file mode 100755 index 0000000000..f0e04f4af4 --- /dev/null +++ b/net/scripts/install-socat.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# +# socat setup for +# +set -ex + +[[ $(uname) = Linux ]] || exit 1 +[[ $USER = root ]] || exit 1 + +apt-get --assume-yes install socat