apernet / hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.
https://v2.hysteria.network/
MIT License
14.68k stars 1.64k forks source link

tproxy + port forward? #1209

Closed iopq closed 2 days ago

iopq commented 3 days ago

I got everything to work, except when I simply add port forwarding like so:

tcpForwarding:
  - listen: 127.0.0.1:6112
    remote: MY_SERVER_ADDRESS:6112

udpForwarding:
  - listen: 127.0.0.1:6112
    remote: MY_SERVER_ADDRESS:6112
    timeout: 20s

it doesn't appear to be forwarded

what am I doing wrong?

haruue commented 2 days ago

Reverse proxy is not supported. In other words, it is impossible to expose the game server on your PC to the Internet using Hysteria's port forwarding feature.

tcpForwarding / udpForwarding is the "forward proxy", e.g. you can forward 8.8.8.8:53 to LAN_address:53 so that other devices on your LAN can configure it as a DNS server.