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.

@nekohasekai nekohasekai force-pushed the dev branch 12 times, most recently from 95e37b3 to 831469a Compare June 1, 2024 06:51
@nekohasekai nekohasekai force-pushed the dev branch 5 times, most recently from ca84a23 to 28df5b4 Compare June 12, 2024 07:19
@nekohasekai nekohasekai force-pushed the dev branch 8 times, most recently from de8aa04 to 85f5f2d Compare June 17, 2024 04:40
@nekohasekai nekohasekai force-pushed the dev branch 3 times, most recently from 1f04328 to aecfc19 Compare July 4, 2024 05:18
@nekohasekai nekohasekai force-pushed the dev branch 2 times, most recently from 49977c4 to f845cff Compare September 14, 2024 13:26
@nekohasekai nekohasekai force-pushed the dev branch 2 times, most recently from ac77bdc to 69ee7ba Compare October 19, 2024 12:09
@nekohasekai nekohasekai force-pushed the dev branch 2 times, most recently from 0353283 to 9ae4518 Compare October 21, 2024 15:39
@nekohasekai nekohasekai force-pushed the dev branch 5 times, most recently from 821737f to 5a91eb9 Compare November 7, 2024 06:28
@nekohasekai nekohasekai force-pushed the dev branch 4 times, most recently from 858d089 to 6a7c403 Compare November 12, 2024 03:21
@nekohasekai nekohasekai force-pushed the dev branch 2 times, most recently from d2206e7 to d0887ea Compare December 13, 2024 01:31
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