-
Notifications
You must be signed in to change notification settings - Fork 9
/
example_config.ini
137 lines (106 loc) · 4.56 KB
/
example_config.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# This is the example configuration file for ptadapter's console script.
#
# Lines beginning with "#" are comments.
#
# Use absolute paths whenever possible.
# If a relative path is used in any path config, it will be converted to an
# abosolute path relative to the working directory when ptadapter starts.
#
# Section names are case-insensitive. Do not use the section name "default" or
# any case variation thereof.
#
# It is possible to have separate client and server configuration in the same
# config file.
#
# This file is for demonstration purposes. If two instances of ptadapter
# is run using this config file, one as server and one as client, three
# separate PT tunnels will be established, between client ends
# 127.0.0.1:8000, 127.0.0.1:8001 and 127.0.0.1:8002, and the server end
# 127.0.0.1:7000.
#
# Do not use this file on your actual server! When running an obfs4proxy
# server, you do not need to specify server keys in the config file. obfs4proxy
# will generate keys and store them in the state directory.
# ====================
# Client configuration
#
# A client configuration file must have a [client] section.
[client]
exec = /usr/bin/obfs4proxy
# The Pluggable Transport's executable. It is also possible to include command
# line arguments, like the following:
# exec = /usr/bin/obfs4proxy -enableLogging
state = ./state
# The state directory. Omit this line or specify an empty value to use a
# temporary directory, which is cleaned when the PT exits.
tunnels = client_obfs4_1 client_obfs4_2 client_obfs3
# Section names describing client transport tunnels, separated by whitespace.
# Each specified section must exist.
[client_obfs4_1]
# This is the config section for a client transport tunnel.
transport = obfs4
# Name of the transport for this tunnel. Should be a supported transport method
# of the PT.
listen = 127.0.0.1:8000
# Address and port to listen for unobfuscated client traffic.
upstream = 127.0.0.1:7900
# Upstream PT address and port to send obfuscated traffic to.
# If the client transport tunnel requires per-tunnel options, specify them
# on separate lines, one line for each option.
# The configuration key should be named "options-<option name>".
# The two lines below specify the options "cert" and "iat-mode" respectively.
options-cert = TT5FYRSZBwJVcYJ6EndmG1+fykZDk9dkEEJiCmCIGnLrtH74xaWECstPhY5cACbLLnX9bw
options-iat-mode = 0
[client_obfs4_2]
transport = obfs4
listen = 127.0.0.1:8001
upstream = 127.0.0.1:7900
options-cert = TT5FYRSZBwJVcYJ6EndmG1+fykZDk9dkEEJiCmCIGnLrtH74xaWECstPhY5cACbLLnX9bw
options-iat-mode = 0
[client_obfs3]
# This is a client transport tunnel section with no additional options.
transport = obfs3
listen = 127.0.0.1:8002
upstream = 127.0.0.1:7901
# ====================
# Server configuration
#
# A server configuration must have a [server] section.
[server]
exec = /usr/bin/obfs4proxy
# The Pluggable Transport's executable. It is also possible to include command
# line arguments, like the following:
# exec = /usr/bin/obfs4proxy -enableLogging
state = ./state
# The state directory. Omit this line or specify an empty value to use a
# temporary directory, which is cleaned when the PT exits.
# For servers, it is recommended to use an actual persistent location for the
# state directory, instead of using a temporary directory, since the server
# is more likely to store state (like crypto keys, certificates, etc.)
forward = 127.0.0.1:7000
# Address and port to forward unobfuscated traffic to.
tunnels = server_obfs4 server_obfs3
# Section names describing server transports, separated by whitespace.
# Each specified section must exist.
[server_obfs4]
# This is the config section of a server transport.
transport = obfs4
# Name of the transport for this tunnel. Should be a supported transport method
# of the PT.
listen = 127.0.0.1:7900
# Address and port to listen for obfuscated client traffic.
# If the server transport requires per-transport options, specify them
# on separate lines, one line for each option.
# The configuration key should be named "options-<option name>".
# The two lines below specify five options,
# "node-id", "private-key", "public-key", "drbg-seed" and "iat-mode"
# respectively.
options-node-id = 4d3e4561149907025571827a1277661b5f9fca46
options-private-key = 7886017adfd178cd139e91250dddee0b2af8ab6cf93f1fe9a7a469d3a13a3067
options-public-key = 4393d7641042620a60881a72ebb47ef8c5a5840acb4f858e5c0026cb2e75fd6f
options-drbg-seed = c23e876ddc408cc392317e017a6796a96161f76d8dd90522
options-iat-mode = 0
[server_obfs3]
# This is a server tranposrt config section with no options.
transport = obfs3
listen = 127.0.0.1:7901