Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ this software support following features
6. load balance
7. custom cert proxy protocol(planning)
8. multilevel proxy(planning)
9. HTTP api management

## install

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ c c++ Socks5 Proxy Service,HTTP Tunnel Proxy Service,tcp forward control service
6. 负载均衡
7. 自定义证书代理协议(planning)
8. 多级代理(planning)
9. HTTP 接口管理

## 安装教程

Expand Down
Binary file modified XEngine_Docment/Docment_en.docx
Binary file not shown.
Binary file modified XEngine_Docment/Docment_zh.docx
Binary file not shown.
108 changes: 108 additions & 0 deletions XEngine_Release/XEngine_Config/HttpCode.types
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
//CodeMessage
100:HTTP/1.1 100 Continue
101:HTTP/1.1 101 Switching Protocols
102:HTTP/1.1 102 Processing
103:HTTP/1.1 103 Early Hints
110:HTTP/1.1 110 (obsoleted) Response is Stale
111:HTTP/1.1 111 (obsoleted) Revalidation Failed
112:HTTP/1.1 112 (obsoleted) Disconnected Operation
113:HTTP/1.1 113 (obsoleted) Heuristic Expiration
199:HTTP/1.1 199 (obsoleted) Miscellaneous Warning
//CodeSuccess
200:HTTP/1.1 200 OK
201:HTTP/1.1 201 Created
202:HTTP/1.1 202 Accepted
203:HTTP/1.1 203 Non-Authoritative Information
204:HTTP/1.1 204 No Content
205:HTTP/1.1 205 Reset Content
206:HTTP/1.1 206 Partial Content
207:HTTP/1.1 207 Multi-Status
208:HTTP/1.1 208 Already Reported
214:HTTP/1.1 214 (obsoleted) Transformation Applied
226:HTTP/1.1 226 IM Used
299:HTTP/1.1 299 (obsoleted) Miscellaneous Persistent Warning
//CodeRedirect
300:HTTP/1.1 300 Multiple Choices
301:HTTP/1.1 301 Moved Permanently
302:HTTP/1.1 302 Moved temporarily
303:HTTP/1.1 303 See Other
304:HTTP/1.1 304 Not Modified
305:HTTP/1.1 305 Use Proxy
306:HTTP/1.1 306 Switch Proxy
307:HTTP/1.1 307 Temporary Redirect
308:HTTP/1.1 308 Permanent Redirect
//CodeRequestFail
400:HTTP/1.1 400 Bad Request
401:HTTP/1.1 401 Unauthorized
402:HTTP/1.1 402 Payment Required
403:HTTP/1.1 403 Forbidden
404:HTTP/1.1 404 Not Found
405:HTTP/1.1 405 Method Not Allowed
406:HTTP/1.1 406 Not Acceptable
407:HTTP/1.1 407 Proxy Authentication Required
408:HTTP/1.1 408 Request Timeout
409:HTTP/1.1 409 Conflict
410:HTTP/1.1 410 Gone
411:HTTP/1.1 411 Length Required
412:HTTP/1.1 412 Precondition Failed
413:HTTP/1.1 413 Request Entity Too Large
414:HTTP/1.1 414 Request-URI Too Long
415:HTTP/1.1 415 Unsupported Media Type
416:HTTP/1.1 416 Requested Range Not Satisfiable
417:HTTP/1.1 417 Expectation Failed
418:HTTP/1.1 418 I'm a teapot
419:HTTP/1.1 419 (Unofficial) Page Expired
420:HTTP/1.1 420 (Unofficial) Method Failure
421:HTTP/1.1 421 too many connections
422:HTTP/1.1 422 Unprocessable Entity
423:HTTP/1.1 423 Locked
424:HTTP/1.1 424 Failed Dependency
425:HTTP/1.1 425 Unordered Collection
426:HTTP/1.1 426 Upgrade Required
428:HTTP/1.1 428 Precondition Required
429:HTTP/1.1 429 Too Many Requests
430:HTTP/1.1 430 (Unofficial) Request Header Fields Too Large
431:HTTP/1.1 431 Request Header Fields Too Large
440:HTTP/1.1 440 (IIS) Login Time-out
444:HTTP/1.1 444 (nginx) No Response
449:HTTP/1.1 449 (IIS) Retry With
450:HTTP/1.1 450 (Unofficial) Blocked by Windows Parental Controls
451:HTTP/1.1 451 (IIS) Redirect
460:HTTP/1.1 460 (AWS)
463:HTTP/1.1 463 (AWS)
494:HTTP/1.1 494 (nginx) Request header too large
495:HTTP/1.1 495 (nginx) SSL Certificate Error
496:HTTP/1.1 496 (nginx) SSL Certificate Required
497:HTTP/1.1 497 (nginx) HTTP Request Sent to HTTPS Port
498:HTTP/1.1 498 (Unofficial) Invalid Token
499:HTTP/1.1 499 (nginx) Token Required
//CodeServerFail
500:HTTP/1.1 500 Internal Server Error
501:HTTP/1.1 501 Not Implemented
502:HTTP/1.1 502 Bad Gateway
503:HTTP/1.1 503 Service Unavailable
504:HTTP/1.1 504 Gateway Timeout
505:HTTP/1.1 505 HTTP Version Not Supported
506:HTTP/1.1 506 Variant Also Negotiates
507:HTTP/1.1 507 Insufficient Storage
508:HTTP/1.1 508 Loop Detected
509:HTTP/1.1 509 (Unofficial) Bandwidth Limit Exceeded
510:HTTP/1.1 510 Not Extended
511:HTTP/1.1 511 Network Authentication Required
520:HTTP/1.1 520 (Cloudflare) Web Server Returned an Unknown Error
521:HTTP/1.1 521 (Cloudflare) Web Server Is Down
522:HTTP/1.1 522 (Cloudflare) Connection Timed Out
523:HTTP/1.1 523 (Cloudflare) Origin Is Unreachable
524:HTTP/1.1 524 (Cloudflare) A Timeout Occurred
525:HTTP/1.1 525 (Cloudflare) SSL Handshake Failed
526:HTTP/1.1 526 (Cloudflare) Invalid SSL Certificate
527:HTTP/1.1 527 (Cloudflare) Railgun Error
529:HTTP/1.1 529 (Unofficial) Site is overloaded
530:HTTP/1.1 530 (Cloudflare) Site is frozen
561:HTTP/1.1 561 (AWS) Unauthorized
598:HTTP/1.1 598 (Unofficial) Network read timeout error
599:HTTP/1.1 599 (Unofficial) Network Connect Timeout Error
600:HTTP/1.1 600 Unparseable Response Headers
//XEngine Code
1001:HTTP/1.1 1001 XEngine Auth Ok
1002:HTTP/1.1 1002 XEngine Auth Failed
96 changes: 96 additions & 0 deletions XEngine_Release/XEngine_Config/HttpMime.types
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
text/html html htm shtml
text/css css
text/xml xml
text/mathml mml
text/plain txt
text/vnd.sun.j2me.app-descriptor jad
text/vnd.wap.wml wml
text/x-component htc

image/gif gif
image/jpeg jpeg jpg
image/avif avif
image/png png
image/tiff tif tiff
image/webp webp
image/vnd.wap.wbmp wbmp
image/svg+xml svg svgz
image/x-icon ico
image/x-jng jng
image/x-ms-bmp bmp

font/woff woff
font/woff2 woff2

application/pdf pdf

application/vnd.google-earth.kml+xml kml
application/vnd.google-earth.kmz kmz

application/msword doc
application/vnd.ms-excel xls
application/vnd.ms-powerpoint ppt
application/vnd.ms-fontobject eot
application/vnd.oasis.opendocument.graphics odg
application/vnd.oasis.opendocument.presentation odp
application/vnd.oasis.opendocument.spreadsheet ods
application/vnd.oasis.opendocument.text odt
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx

application/javascript js
application/atom+xml atom
application/rss+xml rss
application/java-archive jar war ear
application/json json
application/mac-binhex40 hqx
application/postscript ps eps ai
application/rtf rtf
application/vnd.apple.mpegurl m3u8
application/vnd.wap.wmlc wmlc
application/wasm wasm

application/x-7z-compressed 7z
application/x-cocoa cco
application/x-java-archive-diff jardiff
application/x-java-jnlp-file jnlp
application/x-makeself run
application/x-perl pl pm
application/x-pilot prc pdb
application/x-rar-compressed rar
application/x-redhat-package-manager rpm
application/x-sea sea
application/x-shockwave-flash swf
application/x-stuffit sit
application/x-tcl tcl tk
application/x-x509-ca-cert der pem crt
application/x-xpinstall xpi
application/xhtml+xml xhtml
application/xspf+xml xspf
application/zip zip

application/octet-stream bin exe dll
application/octet-stream deb
application/octet-stream dmg
application/octet-stream iso img
application/octet-stream msi msp msm

audio/midi mid midi kar
audio/mpeg mp3
audio/ogg ogg
audio/x-m4a m4a
audio/x-realaudio ra

video/3gpp 3gpp 3gp
video/mp2t ts
video/mp4 mp4
video/mpeg mpeg mpg
video/quicktime mov
video/webm webm
video/x-flv flv
video/x-m4v m4v
video/x-mng mng
video/x-ms-asf asx asf
video/x-ms-wmv wmv
video/x-msvideo avi
82 changes: 40 additions & 42 deletions XEngine_Release/XEngine_Config/XEngine_Config.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,42 @@
{
"tszIPAddr": "192.168.1.12",
"bDeamon": false,
"nSocksPort": 5400,
"nTunnelPort": 5401,
"nForwardPort": 5402,
"nProxyPort": 5403,
"XMax": {
"nMaxClient": 10000,
"nMaxQueue": 10000,
"nIOThread": 4,
"nForwardThread": 4
},
"XTime": {
"nTimeCheck": 3,
"nSocksTimeout": 5,
"nTunnelTimeout": 5,
"nForwardTimeout": 5,
"nProxyTimeout": 5
},
"XLog": {
"MaxSize": 1024000,
"MaxCount": 10,
"LogLeave": 32,
"LogType": 17,
"tszLogFile": "./XEngine_Log/XEngine_ProxyServiceApp.log"
},
"XReport":{
"bEnable":true,
"tszAPIUrl":"http://app.xyry.org:5501/api?function=machine",
"tszServiceName":"XEngine_ProxyServer"
},
"XProxy": {
"nRuleMode": 0,
"tszDestIPAddr": [
"127.0.0.1:5501",
"118.25.14.242:5501"
],
"tszRuleIPAddr": [
"10.0.0.1-10.0.4.69:5403",
"10.0.0.2-10.0.4.69:5403"
]
}
"tszIPAddr": "192.168.1.12",
"bDeamon": false,
"nHttpPort": 5400,
"nSocksPort": 5401,
"nTunnelPort": 5402,
"nForwardPort": 5403,
"nProxyPort": 5404,
"XMax": {
"nMaxClient": 10000,
"nMaxQueue": 10000,
"nIOThread": 4,
"nHTTPThread": 2,
"nForwardThread": 4
},
"XTime": {
"nTimeCheck": 3,
"nHttpTimeout": 5,
"nSocksTimeout": 5,
"nTunnelTimeout": 5,
"nForwardTimeout": 5,
"nProxyTimeout": 5
},
"XLog": {
"MaxSize": 1024000,
"MaxCount": 10,
"LogLeave": 32,
"LogType": 17,
"tszLogFile": "./XEngine_Log/XEngine_ProxyServiceApp.log"
},
"XVerification": {
"tszUserName": "xyry",
"tszUserPass": "11",
"nVType": 1,
"bEnable": false
},
"XReport": {
"bEnable": true,
"tszAPIUrl": "http://app.xyry.org:5501/api?function=machine",
"tszServiceName": "XEngine_ProxyServer"
}
}
11 changes: 11 additions & 0 deletions XEngine_Release/XEngine_Config/XEngine_ProxyConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"nRuleMode": 0,
"tszDestIPAddr": [
"127.0.0.1:5501",
"118.25.14.242:5501"
],
"tszRuleIPAddr": [
"10.0.0.1-10.0.4.69:5403",
"10.0.0.2-10.0.4.69:5403"
]
}
1 change: 1 addition & 0 deletions XEngine_Release/XEngine_Config/XEngine_Version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"XVer": [
"1.15.0.1001 Build20260209",
"1.14.0.1001 Build20251020",
"1.13.0.1001 Build20250519",
"1.12.0.1001 Build20250325",
Expand Down
10 changes: 9 additions & 1 deletion XEngine_Source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FLAGS=
#要编译的模块
THIRDPART_MODULE_JSONCPP = ./XEngine_DependLibrary/XEngine_Module/jsoncpp
THIRDPART_MODULE_REPORT = ./XEngine_DependLibrary/XEngine_Module/XEngine_InfoReport
THIRDPART_MODULE_VERIFICATION = ./XEngine_DependLibrary/XEngine_Module/XEngine_Verification

MODULE_CONFIGURE_PATH = ./XEngine_ModuleConfigure
MODULE_PROTOCOL_PATH = ./XEngine_ModuleProtocol
Expand All @@ -18,7 +19,7 @@ else ifeq ($(PLATFORM),mac)
FILEEXT = dylib
endif

XENGINE_MODULES = libjsoncpp.so libXEngine_InfoReport.so \
XENGINE_MODULES = libjsoncpp.so libXEngine_InfoReport.so libXEngine_Verification.so \
libXEngine_ModuleConfigure.so libXEngine_ModuleProtocol.so libXEngine_ModuleSession.so libXEngine_ModuleHelp.so \
XEngine_ServiceApp.exe

Expand All @@ -37,6 +38,13 @@ ifeq ($(FLAGS), InstallAll)
else
make -C $(THIRDPART_MODULE_REPORT) PLATFORM=$(PLATFORM) UNICODE=$(UNICODE) RELEASE=$(RELEASE) $(FLAGS)
endif
libXEngine_Verification.so:
ifeq ($(FLAGS), InstallAll)
cp $(THIRDPART_MODULE_VERIFICATION)/libXEngine_Verification.$(FILEEXT) ../XEngine_Release/
else
make -C $(THIRDPART_MODULE_VERIFICATION) PLATFORM=$(PLATFORM) UNICODE=$(UNICODE) RELEASE=$(RELEASE) $(FLAGS)
endif

libXEngine_ModuleConfigure.so:
make -C $(MODULE_CONFIGURE_PATH) PLATFORM=$(PLATFORM) UNICODE=$(UNICODE) RELEASE=$(RELEASE) $(FLAGS)
libXEngine_ModuleProtocol.so:
Expand Down
1 change: 1 addition & 0 deletions XEngine_Source/VSCopy_Arm64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ copy /y "%XEngine_LibArm64%\XEngine_NetHelp\NetHelp_XSocket.dll" "./"
copy /y "%XEngine_LibArm64%\XEngine_HelpComponents\HelpComponents_XLog.dll" "./"
copy /y "%XEngine_LibArm64%\XEngine_HelpComponents\HelpComponents_Packets.dll" "./"
copy /y "%XEngine_LibArm64%\XEngine_RfcComponents\RfcComponents_ProxyProtocol.dll" "./"
copy /y "%XEngine_LibArm64%\XEngine_RfcComponents\RfcComponents_HttpProtocol.dll" "./"

copy /y "%XEngine_LibArm64%\XEngine_SystemSdk\XEngine_SystemApi.dll" "./"
copy /y "%XEngine_LibArm64%\XEngine_SystemSdk\XEngine_SystemConfig.dll" "./"
1 change: 1 addition & 0 deletions XEngine_Source/VSCopy_Debug.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ copy /y "D:\XEngine\XEngine_SourceCode\Debug\NetHelp_APIAddr.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\HelpComponents_XLog.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\HelpComponents_Packets.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\RfcComponents_ProxyProtocol.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\RfcComponents_HttpProtocol.dll" "./"

copy /y "D:\XEngine\XEngine_SourceCode\Debug\XEngine_SystemApi.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\XEngine_SystemConfig.dll" "./"
1 change: 1 addition & 0 deletions XEngine_Source/VSCopy_x64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ copy /y "%XEngine_Lib64%\XEngine_NetHelp\NetHelp_XSocket.dll" "./"
copy /y "%XEngine_Lib64%\XEngine_HelpComponents\HelpComponents_XLog.dll" "./"
copy /y "%XEngine_Lib64%\XEngine_HelpComponents\HelpComponents_Packets.dll" "./"
copy /y "%XEngine_Lib64%\XEngine_RfcComponents\RfcComponents_ProxyProtocol.dll" "./"
copy /y "%XEngine_Lib64%\XEngine_RfcComponents\RfcComponents_HttpProtocol.dll" "./"

copy /y "%XEngine_Lib64%\XEngine_SystemSdk\XEngine_SystemApi.dll" "./"
copy /y "%XEngine_Lib64%\XEngine_SystemSdk\XEngine_SystemConfig.dll" "./"
1 change: 1 addition & 0 deletions XEngine_Source/VSCopy_x86.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ copy /y "%XEngine_Lib32%\XEngine_NetHelp\NetHelp_XSocket.dll" "./"
copy /y "%XEngine_Lib32%\XEngine_HelpComponents\HelpComponents_XLog.dll" "./"
copy /y "%XEngine_Lib32%\XEngine_HelpComponents\HelpComponents_Packets.dll" "./"
copy /y "%XEngine_Lib32%\XEngine_RfcComponents\RfcComponents_ProxyProtocol.dll" "./"
copy /y "%XEngine_Lib32%\XEngine_RfcComponents\RfcComponents_HttpProtocol.dll" "./"

copy /y "%XEngine_Lib32%\XEngine_SystemSdk\XEngine_SystemApi.dll" "./"
copy /y "%XEngine_Lib32%\XEngine_SystemSdk\XEngine_SystemConfig.dll" "./"
Loading
Loading