Skip to content
Snippets Groups Projects
Commit 4ab3ef9e authored by Maxb's avatar Maxb
Browse files

Add ability to start obfsvpn server in TCP mode

parent 6c2e4363
Branches
Tags
1 merge request!51Add ability to start obfsvpn server in TCP mode
Pipeline #237045 passed
......@@ -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
......
......@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment