Am 01.03.2018 um 09:49 schrieb David Woodhouse:
On Thu, 2018-03-01 at 09:35 +0100, Muenz, Michael wrote:
Hi list
I'm want to build a OCServ plugin for OPNsense Firewall based on FreeBSD.
In the config there's an option "device" to set the name of the tun device.
It seems to work fine on Linux but it doesn't work for FreeBSD.
Whenever I connect with a client the device is called tunX+1.
Sadly this does interfere with the logic of OPNsense to assign
interfaces via UI.
Do you see any chances to port this feature also to FreeBSD?
That's more of a FreeBSD kernel question. I didn't *think* that FreeBSD
allowed you to arbitrarily rename tun devices. If it can, then we'll
teach openconnect and ocserv how to do it...
Thanks for your quick reply! Renaming of interfaces is no problem, I
already wrote a plugin
for OpenConnect as client. Did a small rc script since OpenConnect
itself doesn't deliver ones
but it runs as service and there I rename it:
https://github.com/opnsense/plugins/blob/master/security/openconnect/src/etc/rc.d/opnsense-openconnect#L51-L54
Really appreciate your help! :)
Michael
_______________________________________________
openconnect-devel mailing list
openconnect-devel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/openconnect-devel