Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bytevia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Pastushkov
bytevia
Commits
47c92d94
Commit
47c92d94
authored
Sep 16, 2024
by
Michael Pastushkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c807aa36
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
run_tcp_server
+2
-2
run_udp_server
+2
-2
src/bytevia.c
+2
-2
src/bytevia.h
+1
-0
temp/1948-proxy2-tcp.ovpn
+0
-0
temp/1948-proxy2-udp.ovpn
+0
-0
No files found.
run_tcp_server
View file @
47c92d94
#!/bin/sh
#!/bin/sh
make clean
&&
make
&&
./bytevia
--local-port
=
1948
--remote-host
=
127.0.0.1
--remote-port
=
1984
--mode
=
server
make clean
&&
make
&&
./bytevia
--local-port
=
1984
--remote-host
=
127.0.0.1
--remote-port
=
1948
--mode
=
server
\ No newline at end of file
\ No newline at end of file
run_udp_server
View file @
47c92d94
#!/bin/sh
#!/bin/sh
make clean
&&
make
&&
./bytevia
--local-port
=
1984
--remote-host
=
127.0.0.1
--remote-port
=
1984
--mode
=
server
--proto
=
udp
--secret
=
52341
make clean
&&
make
&&
./bytevia
--local-port
=
1984
--remote-host
=
127.0.0.1
--remote-port
=
1948
--mode
=
server
--proto
=
udp
--secret
=
52341
\ No newline at end of file
\ No newline at end of file
src/bytevia.c
View file @
47c92d94
...
@@ -435,7 +435,7 @@ Options:\n\
...
@@ -435,7 +435,7 @@ Options:\n\
--mode=MODE client [default] or server
\n
\
--mode=MODE client [default] or server
\n
\
--encrypt=ALG 0 - no encryption, 1 - time-based obfuscation
\n
\
--encrypt=ALG 0 - no encryption, 1 - time-based obfuscation
\n
\
--secret number used for encryption, must the same same client and server
\n
\
--secret number used for encryption, must the same same client and server
\n
\
--proto=PROTO
tcp [default] or ud
p
\n
\
--proto=PROTO
udp [default] or tc
p
\n
\
\n
"
);
\n
"
);
}
}
...
@@ -462,7 +462,7 @@ void init_options() {
...
@@ -462,7 +462,7 @@ void init_options() {
options
.
remote_port
=
REMOTE_PORT
;
options
.
remote_port
=
REMOTE_PORT
;
options
.
buffer_size
=
BUFFER_SIZE
;
options
.
buffer_size
=
BUFFER_SIZE
;
options
.
bind_address
=
"0.0.0.0"
;
options
.
bind_address
=
"0.0.0.0"
;
options
.
proto
=
SOCK_STREAM
;
options
.
proto
=
PROTO
;
options
.
log
=
1
;
options
.
log
=
1
;
options
.
encrypt
=
1
;
options
.
encrypt
=
1
;
options
.
stay_alive
=
1
;
options
.
stay_alive
=
1
;
...
...
src/bytevia.h
View file @
47c92d94
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#define NAME "bytevia"
#define NAME "bytevia"
#define VERSION "1.0"
#define VERSION "1.0"
#define PROTO SOCK_DGRAM
#define REMOTE_HOST "p4pn.net"
#define REMOTE_HOST "p4pn.net"
#define REMOTE_PORT 1984
#define REMOTE_PORT 1984
#define LOCAL_PORT 1948
#define LOCAL_PORT 1948
...
...
temp/19
84
-proxy2-tcp.ovpn
→
temp/19
48
-proxy2-tcp.ovpn
View file @
47c92d94
File moved
temp/19
84
-proxy2-udp.ovpn
→
temp/19
48
-proxy2-udp.ovpn
View file @
47c92d94
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment