├── net ├── pfSense-pkg-netbird │ ├── pkg-descr │ ├── pkg-plist │ ├── files │ │ ├── pkg-deinstall.in │ │ ├── pkg-install.in │ │ ├── usr │ │ │ └── local │ │ │ │ ├── share │ │ │ │ └── pfSense-pkg-netbird │ │ │ │ │ └── info.xml │ │ │ │ ├── pkg │ │ │ │ ├── netbird.inc │ │ │ │ └── netbird.xml │ │ │ │ └── www │ │ │ │ └── vpn_netbird.php │ │ └── etc │ │ │ └── inc │ │ │ └── priv │ │ │ └── netbird.priv.inc │ └── Makefile ├── .DS_Store └── netbird │ ├── .DS_Store │ ├── files │ ├── .DS_Store │ └── netbird.in │ ├── pkg-message │ ├── Makefile │ └── pkg-descr └── README.md /net/pfSense-pkg-netbird/pkg-descr: -------------------------------------------------------------------------------- 1 | unofficial netbird pfsense interface 2 | -------------------------------------------------------------------------------- /net/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhdIT/pfsense-netbird/HEAD/net/.DS_Store -------------------------------------------------------------------------------- /net/netbird/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhdIT/pfsense-netbird/HEAD/net/netbird/.DS_Store -------------------------------------------------------------------------------- /net/netbird/files/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhdIT/pfsense-netbird/HEAD/net/netbird/files/.DS_Store -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/pkg-plist: -------------------------------------------------------------------------------- 1 | pkg/netbird.xml 2 | pkg/netbird.inc 3 | www/vpn_netbird.php 4 | %%DATADIR%%/info.xml 5 | -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/files/pkg-deinstall.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} 4 | -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/files/pkg-install.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "${2}" != "POST-INSTALL" ]; then 4 | exit 0 5 | fi 6 | 7 | ${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} 8 | -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/files/usr/local/share/pfSense-pkg-netbird/info.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netbird 5 | 6 | %%PKGVERSION%% 7 | netbird.xml 8 | 9 | 10 | -------------------------------------------------------------------------------- /net/netbird/pkg-message: -------------------------------------------------------------------------------- 1 | [ 2 | { type: install 3 | message: <0:security/ca_root_nss 17 | 18 | USES= go:1.23,modules 19 | USE_RC_SUBR= netbird 20 | 21 | GO_MODULE= github.com/netbirdio/netbird 22 | GO_TARGET= ./client:netbird 23 | GO_BUILDFLAGS= -tags freebsd -o ${PORTNAME} -ldflags "\ 24 | -s -w -X github.com/netbirdio/netbird/version.version=${PORTVERSION}" 25 | 26 | WRKSRC= ${WRKDIR}/netbird-${PORTVERSION} 27 | 28 | PLIST_FILES= bin/netbird 29 | 30 | .include 31 | -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/files/usr/local/pkg/netbird.inc: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /net/netbird/pkg-descr: -------------------------------------------------------------------------------- 1 | NetBird is an open-source WireGuard-based overlay network combined with 2 | Zero Trust Network Access, providing secure and reliable connectivity 3 | to internal resources. 4 | 5 | Key features: 6 | - Zero-config VPN: Easily create secure connections between devices without 7 | manual network setup. 8 | - Built on WireGuard: Leverages WireGuard's high-performance encryption for 9 | fast and secure communication. 10 | - Self-hosted or Cloud-managed: Users can deploy their own NetBird management 11 | server or use NetBird Cloud for centralized control. 12 | - Access Control & Routing: Fine-grained access control policies and automatic 13 | network routing simplify connectivity. 14 | - This FreeBSD port provides the NetBird client daemon and CLI tools, allowing 15 | FreeBSD systems to join a NetBird mesh network and securely communicate with 16 | other peers. 17 | 18 | For more details, visit: https://netbird.io 19 | -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/Makefile: -------------------------------------------------------------------------------- 1 | # $FreeBSD$ 2 | 3 | PORTNAME= pfSense-pkg-netbird 4 | PORTVERSION= 0.0.2 5 | PORTREVISION= 30 6 | CATEGORIES= net 7 | MASTER_SITES= # empty 8 | DISTFILES= # empty 9 | EXTRACT_ONLY= # empty 10 | 11 | MAINTAINER= rdeweese@nhdit.com 12 | COMMENT= pfSense package netbird poorly put together by nhdIT, LLC 13 | 14 | LICENSE= APACHE20 15 | 16 | RUN_DEPENDS= netbird>0:net/netbird \ 17 | 18 | NO_BUILD= yes 19 | NO_MTREE= yes 20 | 21 | SUB_FILES= pkg-install pkg-deinstall 22 | SUB_LIST= PORTNAME=${PORTNAME} 23 | 24 | do-extract: 25 | ${MKDIR} ${WRKSRC} 26 | 27 | do-install: 28 | ${MKDIR} ${STAGEDIR}${PREFIX}/pkg 29 | ${MKDIR} ${STAGEDIR}${PREFIX}/www 30 | ${MKDIR} ${STAGEDIR}${DATADIR} 31 | ${INSTALL_DATA} -m 0644 ${FILESDIR}${PREFIX}/pkg/netbird.xml \ 32 | ${STAGEDIR}${PREFIX}/pkg 33 | ${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/netbird.xml \ 34 | ${STAGEDIR}${PREFIX}/pkg 35 | ${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/netbird.inc \ 36 | ${STAGEDIR}${PREFIX}/pkg 37 | ${INSTALL_DATA} ${FILESDIR}${PREFIX}/www/vpn_netbird.php \ 38 | ${STAGEDIR}${PREFIX}/www 39 | ${INSTALL_DATA} ${FILESDIR}${DATADIR}/info.xml \ 40 | ${STAGEDIR}${DATADIR} 41 | @${REINPLACE_CMD} -i '' -e "s|%%PKGVERSION%%|${PKGVERSION}|" \ 42 | ${STAGEDIR}${PREFIX}/pkg/netbird.xml \ 43 | ${STAGEDIR}${DATADIR}/info.xml 44 | 45 | .include 46 | -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/files/etc/inc/priv/netbird.priv.inc: -------------------------------------------------------------------------------- 1 | 33 | -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/files/usr/local/pkg/netbird.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 28 | 29 | netbird 30 | %%PKGVERSION%% 31 | netbird 32 | /usr/local/pkg/netbird.inc 33 | 34 | netbird 35 |
VPN
36 | netbird.xml 37 | /vpn_netbird.php 38 |
39 |
40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Unofficial Netbird pfSense package and FreeBSD Port 2 | 3 | ## Screenshot 4 | Screenshot 5 | Hostnames are blurred. 6 | 7 | ## Build Instructions 8 | You can do something like: 9 | ``` 10 | git clone -b devel --depth 1 --single-branch https://github.com/pfsense/FreeBSD-ports.git 11 | git clone https://github.com/nhdIT/pfsense-netbird.git 12 | cp -R pfsense-netbird/net/* FreeBSD-ports/net/ 13 | cd FreeBSD-ports/net/netbird 14 | make makesum 15 | make package 16 | cd FreeBSD-ports/net/pfSense-pkg-netbird/ 17 | make 18 | make package 19 | ``` 20 | 21 | ## Installing on pfSense 22 | 23 | ``` 24 | pkg add -f netbird-0.28.3-whatever.pkg 25 | sysrc netbird_enable=YES 26 | service netbird start 27 | netbird up -m https://netbirdhost -k netbirdkey -interface-name tun12 28 | ``` 29 | 30 | create new interface, assign to tun12 31 | 32 | find netbird ip with netbird status 33 | 34 | set static IP to your netbird ip /16 35 | 36 | create a gateway, also use your netbird ip 37 | 38 | create firewall rules allow all ipv4 protocols on new interface 39 | 40 | add service netbird start as an shellcmd 41 | 42 | add netbird up as a shellcmd 43 | 44 | to install pfsense netbird UI install package https://repo.nhdit.com/netbird-pfsense//pfSense-pkg-netbird-0.0.2_30-amdv2.pkg or the arm one, either way. Then netbird will show under vpn menu. This is not complete, but works for basic needs. 45 | -------------------------------------------------------------------------------- /net/pfSense-pkg-netbird/files/usr/local/www/vpn_netbird.php: -------------------------------------------------------------------------------- 1 | 61 | 75 | 97 |
98 |
Netbird Control
99 | 106 |
107 | 108 |
109 |
Outputs
110 |
111 |
112 |
113 |
114 | 115 |
116 |
Peers
117 |
118 | 123 |
124 |
125 |
126 |
IP:
127 |
Type: 128 | Direct:
129 |
130 |
131 | 135 | 139 |
140 |
141 |
142 | 146 |
147 |
148 | 149 | 152 | --------------------------------------------------------------------------------