apernet/hysteria

Wireguard Outbound

bart3nder opened this issue · 2 comments

Hello! thanks for the great project. Is it possible to implement Wireguard outbound or custom network interface (like traffic goes to eth9 instead of eth0) in direct outbound in Hysteria2? It would be helpful in circumstances where server's IP is flagged as spam and etc.
Thanks!
Edit 1: My bad, found the custom interface in docs, just the Wireguard outbound is suggested now :D

You can use bindDevice in a direct outbound.

https://hysteria.network/docs/advanced/Full-Server-Config/#customizing-direct-outbound

For example, if your WireGuard interface is named wg0, you can configure the outbound as follows

outbounds:
  - name: cfwarp
    type: direct
    direct:
      mode: auto
      bindDevice: wg0

jinx, just edited my request and I saw your! thank you for your help.