Middle tcp port forwarding server
terminaro opened this issue · comments
Hi,
I am implementing a scenario to have a domestic server in between client and trojan server, i implemented such scenario using Gost for vmess protocol by command gost -L=tcp://:443/trojan-server-ip-address:443
and everything works fine!
When using the same for trojan it is not working, when set log_level in server to 0, trojan server prints a message that have an in coming connection but there is no act to response!
is there any workaround to implement such scenario for trojan!?
Regards.
TRY iptables
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -I FORWARD 1 -j ACCEPT
iptables -t nat -I POSTROUTING 1 -j MASQUERADE
iptables -t nat -I PREROUTING 1 -p tcp --dport 443 -j DNAT --to 1.2.3.4:443