-
Notifications
You must be signed in to change notification settings - Fork 101
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
Support for outbound interface selection #306
Comments
What value would you like to pass to We can add support for |
I am okay with any of those. If I had option to choose I'd go with interface name, but setting the outbound local IP also works for me. The GNU wget also only supports binding to IP via |
I am leaning more towards mimicking cURL and only having the
Actually, we could let xh handle the interface to local IP mapping. Of course, this is a temporary solution since some users will sooner or later run into seanmonstar/reqwest#1336. |
@slashbeast I would like to know if #307 works for your use case (CI is failing due to MSRV policy which we can ignore for now)
|
All good, the build out of interface-option works exactly as I would expect |
Hi,
Would it be possible to add support for selecting outbound interface, much like curl's
--interface
option?This would be useful on systems with multiple gateways, like multi WAN where there's more than single default gateway based on source address or when one uses opt-in VPN connections.
In my very case I have multiple wireguard VPNs connected at the same time with default gateway set in each separated routing tables, and simple set of
ip rule add from $VPN1_IP table $VPN1_TABLE
, that I use to test access to cloud resources from different physical location around the world. This is currently not possible directly with xh and requires me to have set of tinyproxy running in background each with different bind interface for xh to go via desired route. Would be great if I could just use--interface
instead.The text was updated successfully, but these errors were encountered: