mirror of
https://github.com/bytedance/g3.git
synced 2026-05-02 13:40:42 +00:00
initial commit
This commit is contained in:
commit
13716f4923
1425 changed files with 163227 additions and 0 deletions
8
g3proxy/examples/hybrid_user_auth/escaper.d/default.conf
Normal file
8
g3proxy/examples/hybrid_user_auth/escaper.d/default.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
name: default
|
||||
type: direct_fixed
|
||||
no_ipv6: true
|
||||
resolver: default
|
||||
resolve_strategy: IPv4Only
|
||||
tcp_conn_limit: 80M
|
||||
udp_relay_limit: 10M
|
||||
16
g3proxy/examples/hybrid_user_auth/g3proxy.conf
Normal file
16
g3proxy/examples/hybrid_user_auth/g3proxy.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
runtime:
|
||||
thread_number: 2
|
||||
|
||||
controller:
|
||||
local:
|
||||
recv_timeout: 30
|
||||
send_timeout: 1
|
||||
|
||||
server: server.d/
|
||||
|
||||
resolver: resolver.d/
|
||||
|
||||
escaper: escaper.d/
|
||||
|
||||
user-group: user-group.d/
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
name: default
|
||||
type: c-ares
|
||||
server: 223.5.5.5 223.6.6.6
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
name: extra_port
|
||||
type: plain_tcp_port
|
||||
listen:
|
||||
address: "[::]:18118"
|
||||
server: http
|
||||
7
g3proxy/examples/hybrid_user_auth/server.d/http.conf
Normal file
7
g3proxy/examples/hybrid_user_auth/server.d/http.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
name: http
|
||||
escaper: default
|
||||
user_group: default
|
||||
type: http_proxy
|
||||
listen:
|
||||
address: "[::]:13128"
|
||||
conn_limit: 100M
|
||||
7
g3proxy/examples/hybrid_user_auth/server.d/intelli.conf
Normal file
7
g3proxy/examples/hybrid_user_auth/server.d/intelli.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
name: intelli
|
||||
type: intelli_proxy
|
||||
http_server: http
|
||||
socks_server: socks
|
||||
listen:
|
||||
address: "[::]:1810"
|
||||
instance: 8
|
||||
7
g3proxy/examples/hybrid_user_auth/server.d/socks.conf
Normal file
7
g3proxy/examples/hybrid_user_auth/server.d/socks.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
name: socks
|
||||
escaper: default
|
||||
user-group: default
|
||||
type: socks_proxy
|
||||
listen:
|
||||
address: "[::]:11080"
|
||||
conn_limit: 100M
|
||||
25
g3proxy/examples/hybrid_user_auth/user-group.d/default.conf
Normal file
25
g3proxy/examples/hybrid_user_auth/user-group.d/default.conf
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: default
|
||||
static_users:
|
||||
- name: root
|
||||
# password: toor
|
||||
token:
|
||||
salt: 113323bdab6fd2cc
|
||||
md5: 5c81f2becadde7fa5fde9026652ccc84
|
||||
sha1: ff9d5c1a14328dd85ee95d4e574bd0558a1dfa96
|
||||
dst_port_filter:
|
||||
- 80
|
||||
- 443
|
||||
dst_host_filter_set:
|
||||
exact:
|
||||
# for ipinfo.io
|
||||
- ipinfo.io
|
||||
- 1.1.1.1
|
||||
child:
|
||||
# for myip.ipip.net
|
||||
- "ipip.net"
|
||||
regex:
|
||||
# for lumtest.com/myip.json
|
||||
- "lum[a-z]*[.]com$"
|
||||
source:
|
||||
type: file
|
||||
path: dynamic_users.json
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
[
|
||||
{
|
||||
"name": "foo",
|
||||
"token": {
|
||||
"salt": "113323bdab6fd2cc",
|
||||
"md5": "5c81f2becadde7fa5fde9026652ccc84",
|
||||
"sha1": "ff9d5c1a14328dd85ee95d4e574bd0558a1dfa96"
|
||||
},
|
||||
"dst_host_filter_set": {
|
||||
"exact_match": {
|
||||
"default": "allow",
|
||||
"forbid": "192.168.1.1"
|
||||
},
|
||||
"subnet_match": {
|
||||
"default": "allow",
|
||||
"forbid": [
|
||||
"192.168.0.0/16"
|
||||
]
|
||||
}
|
||||
},
|
||||
"dst_port_filter": {
|
||||
"default": "allow",
|
||||
"forbid": [
|
||||
22,
|
||||
"50000-60000"
|
||||
]
|
||||
},
|
||||
"tcp_conn_limit": {
|
||||
"shift_millis": 8,
|
||||
"north": "10M",
|
||||
"south": "10M"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "bar",
|
||||
"token": "$1$rnfSARNK$DJNIbbMpjjSmral92rE3k1",
|
||||
"proxy_request_filter": {
|
||||
"default": "allow",
|
||||
"forbid": "ftp_over_http"
|
||||
},
|
||||
"tcp_conn_limit": "10M",
|
||||
"udp_relay_limit": "1M"
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue