diff --git a/README.md b/README.md index b9aadee6fb0f5929421f1ebe6974368f778dd696..487bd6cd7a0439e739cc12c8a3be25ee34142f36 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,7 @@ Before you can run a obfsvpn server container you need to make sure to set the f | `OBFS4_DATA_DIR` | same as `OBFSVPN_STATE` | ./test_data | | `HOP_PT` | run server in hopping pt mode | 1 if true | | `KCP` | run server in KCP transport mode | 1 if true | +| `TCP` | run server in w/ tcp as the protocol the server accepts for proxying traffic | 1 if true | ### Integration testing diff --git a/images/obfsvpn/scripts/start_obfsvpn.sh b/images/obfsvpn/scripts/start_obfsvpn.sh index 1d0d61c04a6b24c8991fd615e5b6baf1259a070c..0ae388f46c735b8bde1555ad65aee89778e8a84b 100755 --- a/images/obfsvpn/scripts/start_obfsvpn.sh +++ b/images/obfsvpn/scripts/start_obfsvpn.sh @@ -85,6 +85,17 @@ elif [[ "$KCP" == "1" ]]; then --config "${OBFS4_KEY_FILE:-$OBFS4_DATA_DIR/obfs4.json}" \ --persist="${PERSIST_BRIDGE_STATE:-false}" \ -v + +elif [[ "$TCP" == "1" ]]; then + # start the obfsvpn server in obfs4 mode w/ tcp as the protocol the server accepts for proxying traffic. + ./obfsvpn-server \ + --addr "${OBFS4_HOST}" \ + --port "${OBFS4_PORT}" \ + --remote "${OPENVPN_HOST}:${OPENVPN_PORT}" \ + --state "$OBFS4_DATA_DIR" \ + --config "${OBFS4_KEY_FILE:-$OBFS4_DATA_DIR/obfs4.json}" \ + --persist="${PERSIST_BRIDGE_STATE:-false}" \ + -v else # start the obfsvpn server in regular obfs4 mode ./obfsvpn-server \