Eventhough there is a opnsense tinc plugin already, its hard to keep the GUI offering all the options tinc actual offers. Be it a infinit amount of subnets, specific modes (switch/hub/routed) or anything else specific to your setup.
So as an alternative this plugins offers you all daemon / startup / interface integration and also some starting point for the configuration while letting you doing whatever you want with your configuration.
BUT NO GUI!!
Rather you edit the files using ssh, pick your favorite tincd howto / setup or even existing setup on copy it over here. Utilize the full power of tinc
The version might change, adjust it if fetch fails
fetch https://raw.githubusercontent.com/EugenMayer/tinc-opnsense/master/dist/os-tincdcustom-latest.txz
pkg install os-tincdcustom-latest.txz
- copy the
/usr/local/etc/tinc/examplefolder to/usr/local/etc/tinc/yournetwork - enter
yournetworkinto/usr/local/etc/tinc/nets.bootto let this network be started on boot - create keypairs by runng
tincd -n <yournetwork> -K
-
Edit
/usr/local/etc/tinc/yournetwork/tinc.confset the server you want to connect to and how this server is to be named -
Edit
/usr/local/etc/tinc/yournetwork/tinc-upand adjust the network/netbitmask
-
enter the
/usr/local/etc/tinc/yournetwork/hostsfolder and rename the files according to what you have chosen foryouservernameandtheotherservername- they must match! -
enter the public key of the "this server" you find under /usr/local/etc/tinc/yournetwork/ into the according
thisservernamefile and adjust the subnet this server offers (or subnets) -
enter the public key of the "other server" into the according
theotherservernamefile and adjust the subnet the other server offers (or subnets)
Please see this answer for a brief description
to restart the service to
configctl tincdcustom restart
More then that you have those obvious commands
configctl tincdcustom stop
configctl tincdcustom start
configctl tincdcustom reload
When you uninstall the plugins, everything you created in /usr/local/etc/tinc will kept in place, so you can reinstall it at any time
Connect on your opnsense box
mkdir -p /usr/devel && cd /usr/devel
git clone https://github.com/EugenMayer/tinc-opnsense
cd tinc-opnsense/security/tinccustom
make package
pkg install work/pkg/os-tincdcustom-*
Of course credits to the initial author opnsense tinc, some of the things in here base on his work straight. Thank you!