apernet / hysteria

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

[Feature Request] Chain Outbound #538

Open mmtech2012 opened 1 year ago

mmtech2012 commented 1 year ago

Details

As far as I read in documents hysteria dosent support "hysteria" chain like "Outbound" in v2ray. only socks5 supported as outbound connection. would you please add something like v2ray outbound for chaining purpose? In some restricted country like Iran,Uzbekistan or Turkemenistan sometimes users just have access to intranet(national network) so we have to access internet through chaining servers ( user --hy--> Mainland server --hy--> foreign server ).

Value

Help people from aggressively censored country to access free internet

Available alternatives

No response

Additional information

No response

tobyxdd commented 1 year ago

If your goal is to use your mainland server as a relay, maybe you can simply set up a UDP port forwarding?

mmtech2012 commented 1 year ago

If your goal is to use your mainland server as a relay, maybe you can simply set up a UDP port forwarding?

they set some script in all VPS provider which reset iptable every hour or even minute. I tried even iptables-persistent but dosent effect at all.

haruue commented 1 year ago

they set some script in all VPS provider which reset iptable every hour or even minute. I tried even iptables-persistent but dosent effect at all.

Maybe you can write a script to set iptables every second.

while true; do
  sleep 1
  iptables-restore /etc/iptables/rules.v4
done

And there is also some software (such like gost) supports userspace udp port forwarding, which doesn't need iptables.

shakibamoshiri commented 1 month ago

@mmtech2012 port-forwarding does not help in abnormal conditions most of the time Your real need is a reverse tunnel/rely from outside to your domestic network, then connecting from your domestic network back to outside, you can use these

your hop-2

your hop-1 You can run any server you would like