Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middle tcp port forwarding server #663

Open
terminaro opened this issue Jan 22, 2023 · 1 comment
Open

Middle tcp port forwarding server #663

terminaro opened this issue Jan 22, 2023 · 1 comment
Assignees
Labels

Comments

@terminaro
Copy link

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.

@chainofhonor
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants