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

Support FreeBSD #22

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open

Support FreeBSD #22

wants to merge 8 commits into from

Conversation

c1emon
Copy link

@c1emon c1emon commented Mar 8, 2024

  1. create tun dev
  2. support gvisor (almost same as darwin)
  3. support mointor (TODO: defaultInterfaceMonitor.checkUpdate can only watch ipv4 route now)

Tested with FreeBSD 13.2 amd64. Work well when using gvior mode with following pf rule:

pass quick inet from 198.18.0.0/30 to 198.18.0.0/30  keep state allow-opts
pass in quick route-to (Meta 198.18.0.1) inet from any to 198.18.0.0/16 keep state allow-opts

BUT can not work with system stack, i think something went worng with those pf rules(seems that there is no TProxy in pf firewall?). Unfortunately, i'm not familt with FreeBSD. I just want to run sing-box or mihomo on OPNsense.

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

Successfully merging this pull request may close these issues.

2 participants