You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[POC, DNM] Expose socks proxy (per user-v2 net, not per instance)
Usage:
```
curl \
--proxy socks5h://localhost/$HOME/.lima/_networks/user-v2/user-v2_socks.sock \
192.168.104.4
```
This is similar to the `limactl tunnel` proposal (PR 2710).
While PR 2710 creates a proxy per an instance, this commit creates a
proxy per a user-v2 network.
Remarks:
- Only works for user-v2 networks.
- DNS lookup is not implemented yet in this POC.
Could be taken from https://github.com/norouter/norouter/blob/v0.6.5/pkg/agent/socks/socks.go#L57-L75
- https://github.com/cybozu-go/usocksd is a dependency hog (See the `go.mod` diff).
Should be replaced with a fork or another library.
Overall, PR 2710 might be better than this commit, as PR 2710 works for
any network driver, does not need an additional DNS resolver, and
does not incur additional `go.mod` deps.
Signed-off-by: Akihiro Suda <[email protected]>
0 commit comments