Hi,
I'm having trouble getting the Alpha Proxy to work. I have two VPS servers available for testing. I'm not sharing the real IP addresses of my VPSs, so for the sake of this thread, let's assume the IPs are as follows:
1. vps ip: 1.1.1.1 (backend with tfs)
2. vps ip: 2.2.2.2 (proxy server)
TFS i use nekiro TFS-1.5-Downgrade version 8.0:
github.com
I have applied tfs changes for proxy from Alpha Proxy Guids from attached proxy1.4.patch file:
Kondrah Alpha Multi Proxy Solution
This guide is written by @Michael Orsino, with thanks and credit to @Alpha—full attribution at the end.
Difficulty level: Hard – This guide assumes knowledge of Linux, firewalls, C++, and Lua.
Reading time: Approx. 10 minutes
Due to the increased frequency of DDoS ransom attacks against our community over recent months, I decided to write this guide in hopes that it will help you protect your game and provide the best experience to your players.
What is this?
This guide explains how to implement the proxy...
First VPS tfs config:
Second VPS HAProxy configuration:
First VPS Reverse Proxy Configuration:
Alpha proxy on first VPS is running on port 7201:
Added database for proxy to tfs on First VPS:
In OTClient added in init.lua:
g_proxy.addProxy('2.2.2.2', 7201, 0)
Results:
I use this client:
github.com
With using Gesior's modifications from:
github.com
client debug proxy:

client logs:
Connecting to: 127.0.0.1:7171
[Proxy 2.2.2.2] onHeader error The network connection was interrupted by the local system.
I also tested without gesior modifications (just on master branch) and got same results. I ended up with the same results. Can anyone help?
I'm having trouble getting the Alpha Proxy to work. I have two VPS servers available for testing. I'm not sharing the real IP addresses of my VPSs, so for the sake of this thread, let's assume the IPs are as follows:
1. vps ip: 1.1.1.1 (backend with tfs)
2. vps ip: 2.2.2.2 (proxy server)
TFS i use nekiro TFS-1.5-Downgrade version 8.0:
GitHub - nekiro/TFS-1.5-Downgrades at 8.0
Alternative forgottenserver versions for older protocols support - GitHub - nekiro/TFS-1.5-Downgrades at 8.0
This guide is written by @Michael Orsino, with thanks and credit to @Alpha—full attribution at the end.
Difficulty level: Hard – This guide assumes knowledge of Linux, firewalls, C++, and Lua.
Reading time: Approx. 10 minutes
Due to the increased frequency of DDoS ransom attacks against our community over recent months, I decided to write this guide in hopes that it will help you protect your game and provide the best experience to your players.
What is this?
This guide explains how to implement the proxy...
- Michael Orsino
- Replies: 35
- Forum: Miscellaneous
First VPS tfs config:
Code:
ip = "127.0.0.1" -- important, do not change
statusIP = "2.2.2.2" -- set this to your closest forward proxy server IP
bindOnlyGlobalAddress = true -- important, do not change
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
Second VPS HAProxy configuration:
LUA:
global
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
defaults
timeout connect 4s
timeout client 50s
timeout server 50s
# login connections
listen l1
bind 0.0.0.0:7101
mode tcp
server srv1 1.1.1.1:7101 send-proxy-v2
# game connections
listen l2
bind 0.0.0.0:7201
mode tcp
server srv2 1.1.1.1:7201 send-proxy-v2
# status connections
listen l3
bind 0.0.0.0:7301
mode tcp
server srv3 1.1.1.1:7301 send-proxy-v2
First VPS Reverse Proxy Configuration:
Code:
global
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
defaults
timeout connect 4s
timeout client 50s
timeout server 50s
# login connections
listen l1
bind 0.0.0.0:7101 accept-proxy
mode tcp
server srv1 127.0.0.1:7171 send-proxy-v2
# status connections
listen l2
bind 0.0.0.0:7301 accept-proxy
mode tcp
server srv1 127.0.0.1:7171 send-proxy-v2
Alpha proxy on first VPS is running on port 7201:
Code:
Starting proxy server on port 7201 with a maximum of 10 connections per IP allowed
[Server] open : 7201
Added database for proxy to tfs on First VPS:
Code:
INSERT INTO `proxies` (`id`, `host`, `port`, `priority`, `disabled`) VALUES
(5, '2.2.2.2', 7201, 0, 0);
In OTClient added in init.lua:
g_proxy.addProxy('2.2.2.2', 7201, 0)
Results:
I use this client:
GitHub - OTCv8/otcv8-dev: OTCv8 Development repository (source code)
OTCv8 Development repository (source code). Contribute to OTCv8/otcv8-dev development by creating an account on GitHub.
feat: OTCv8 proxy system by gesior · Pull Request #978 · mehah/otclient
Description OTCv8 Proxy System copied from https://github.com/OTCv8/otcv8-dev ( boost::asio replaced with asio ) With client_stats module renamed to client_debug_info - to view active proxy servers...
client debug proxy:

client logs:
Connecting to: 127.0.0.1:7171
[Proxy 2.2.2.2] onHeader error The network connection was interrupted by the local system.
I also tested without gesior modifications (just on master branch) and got same results. I ended up with the same results. Can anyone help?