V
V
Vladislav Prubnyak2018-10-28 12:13:02
Nginx
Vladislav Prubnyak, 2018-10-28 12:13:02

Is it possible to eliminate 502 gateway?

Hello, there is a program that sends a get request to the address 1.1.1.1/info.php and receives parameters for work, info.php is written on hosting 2.2.2.2, the tmeter program is used to redirect packages, which changes packages on the fly by changing the destination ip of outgoing packets from 1.1.1.1 to 2.2.2.2 and the incoming source ip from 2.2.2.2 to 1.1.1.1, but when we execute a get request to 1.1.1.1 we get a 502 bad gateway error, tell me how can I fix the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2018-10-28
@dimonchik2013

fix - tmeter'a settings, if possible in principle,
look at the logs and headers on all sides

R
Ruslan Fedoseev, 2018-10-28
@martin74ua

throw out tmeter, install a web server, for example nginx, and use it to do forwarding. in this case, the proxy will save)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question