TCP/UDP proxy for macOS utilizing vmnet.framework
Find a file
2024-11-15 05:45:55 +01:00
pkg/vmnet feat: initial commit 2024-11-15 05:45:55 +01:00
.gitignore feat: initial commit 2024-11-15 05:45:55 +01:00
dialer.go feat: initial commit 2024-11-15 05:45:55 +01:00
go.mod feat: initial commit 2024-11-15 05:45:55 +01:00
go.sum feat: initial commit 2024-11-15 05:45:55 +01:00
LICENSE feat: initial commit 2024-11-15 05:45:55 +01:00
main.go feat: initial commit 2024-11-15 05:45:55 +01:00
proxy.go feat: initial commit 2024-11-15 05:45:55 +01:00
README.md feat: initial commit 2024-11-15 05:45:55 +01:00
server.go feat: initial commit 2024-11-15 05:45:55 +01:00

vmnet-proxy

A TCP/UDP proxy for macOS utilizing vmnet.framework

Requirements

  • macOS 10.10 or later.

Example usage

$ go build .
$ sudo ./vmnet-proxy tcp:2222:192.168.1.5:22
$ sudo ./vmnet-proxy -iface en1 tcp:5901:192.168.1.5:5900
$ sudo ./vmnet-proxy tcp:443:1.1.1.1:443 tcp:80:1.1.1.1:80

TODO

  • IPv6 support
  • DHCP support for IPv4

Credits

Credits to https://github.com/alessiodionisi/qemu-vmnet for the native code in pkg/vmnet/.