Skip to content
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

linux 可以通过iptables redirect实现透明代理, macOS可以么? #3212

Open
huhu415 opened this issue Nov 4, 2024 · 0 comments
Open

Comments

@huhu415
Copy link

huhu415 commented Nov 4, 2024

我看源码发现是支持freebsd的, 所以我在想, 支不支持macos的PF (Packet Filter) 防火墙, 然后我试了几个规则, 发现没用啊, 比如

nat on en0 from 192.168.1.0/24 to any -> (en0)
rdr pass on en0 proto tcp from any to any port 80 -> 127.0.0.1 port 8080

如果不支持macos, 那一般是什么系统才会用到freebsd的那个函数?
有人可以帮助我, 告诉我应该怎么做么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant