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/example
folder to/usr/local/etc/tinc/yournetwork
- enter
yournetwork
into/usr/local/etc/tinc/nets.boot
to let this network be started on boot - create keypairs by runng
tincd -n <yournetwork> -K
-
Edit
/usr/local/etc/tinc/yournetwork/tinc.conf
set the server you want to connect to and how this server is to be named -
Edit
/usr/local/etc/tinc/yournetwork/tinc-up
and adjust the network/netbitmask
-
enter the
/usr/local/etc/tinc/yournetwork/hosts
folder and rename the files according to what you have chosen foryouservername
andtheotherservername
- they must match! -
enter the public key of the "this server" you find under /usr/local/etc/tinc/yournetwork/ into the according
thisservername
file and adjust the subnet this server offers (or subnets) -
enter the public key of the "other server" into the according
theotherservername
file 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!