Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
obfsvpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
obfsvpn
Commits
4ab3ef9e
Commit
4ab3ef9e
authored
9 months ago
by
Maxb
Browse files
Options
Downloads
Patches
Plain Diff
Add ability to start obfsvpn server in TCP mode
parent
6c2e4363
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!51
Add ability to start obfsvpn server in TCP mode
Pipeline
#237045
passed
8 months ago
Stage: test
Stage: build
Stage: release
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
images/obfsvpn/scripts/start_obfsvpn.sh
+11
-0
11 additions, 0 deletions
images/obfsvpn/scripts/start_obfsvpn.sh
with
12 additions
and
0 deletions
README.md
+
1
−
0
View file @
4ab3ef9e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
images/obfsvpn/scripts/start_obfsvpn.sh
+
11
−
0
View file @
4ab3ef9e
...
...
@@ -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
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment