diff --git a/security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/objects.py b/security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/objects.py
index d6b5cdb..734005a 100644
--- a/security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/objects.py
+++ b/security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/objects.py
@@ -131,7 +131,8 @@
     def config_text(self):
         result = list()
         result.append('Address=%(address)s %(port)s'%self._payload)
-        result.append('Subnet=%(subnet)s'%self._payload)
+        for subnet in self.get_subnets():
+            result.append('Subnet=%s'%subnet)
         result.append('Cipher=%(cipher)s'%self._payload)
         result.append('Digest=sha256')
         result.append(self._payload['pubkey'])
@@ -139,3 +140,6 @@
 
     def filename(self):
         return '%s/hosts/%s' % (self.get_basepath(), self._payload['hostname'])
+
+    def get_subnets(selfs):
+        return self._payload['subnet'].split(',')
\ No newline at end of file
diff --git a/security/tinc/src/opnsense/mvc/app/controllers/OPNsense/Tinc/forms/dialogNetwork.xml b/security/tinc/src/opnsense/mvc/app/controllers/OPNsense/Tinc/forms/dialogNetwork.xml
index e37f379..74b1537 100644
--- a/security/tinc/src/opnsense/mvc/app/controllers/OPNsense/Tinc/forms/dialogNetwork.xml
+++ b/security/tinc/src/opnsense/mvc/app/controllers/OPNsense/Tinc/forms/dialogNetwork.xml
@@ -88,4 +88,11 @@
         <type>textbox</type>
         <help>Public key for this host in the network (leave empty to generate)</help>
     </field>
+    <field>
+    	<id>network.hostupscript</id>
+    	<label>Host-up script</label>
+    	<type>textbox</type>
+    	<advanced>true</advanced>
+    	<help>Additional lines for host-up script</help>
+    </field>
 </form>
diff --git a/security/tinc/src/opnsense/mvc/app/models/OPNsense/Tinc/Tinc.xml b/security/tinc/src/opnsense/mvc/app/models/OPNsense/Tinc/Tinc.xml
index 6a3086b..32aca5c 100644
--- a/security/tinc/src/opnsense/mvc/app/models/OPNsense/Tinc/Tinc.xml
+++ b/security/tinc/src/opnsense/mvc/app/models/OPNsense/Tinc/Tinc.xml
@@ -87,6 +87,9 @@
                     </OptionValues>
                     <ValidationMessage>debug level needs to be between 0 (default) and 5 (highest)</ValidationMessage>
                 </debuglevel>
+                <hostupscript type="TextField">
+                	<Required>N</Required>
+                </hostupscript>
             </network>
         </networks>
         <hosts>
diff --git a/security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/objects.py b/security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/objects.py
index d6b5cdb..7006a53 100644
--- a/security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/objects.py
+++ b/security/tinc/src/opnsense/scripts/OPNsense/Tinc/lib/objects.py
@@ -62,6 +62,7 @@
         self._payload['privkey'] = None
         self._payload['intaddress'] = None
         self._payload['debuglevel'] = 'd0'
+        self._payload['hostupscript'] = None
         self._payload['mode'] = 'switch'
         self._hosts = list()
 
@@ -80,6 +81,9 @@
         else:
             return '0'
 
+    def get_hostupscript(self):
+        return self._payload['hostupscript']
+
     def set_hosts(self, hosts):
         for host in hosts:
             hostObj = Host()
diff --git a/security/tinc/src/opnsense/scripts/OPNsense/Tinc/tincd.py b/security/tinc/src/opnsense/scripts/OPNsense/Tinc/tincd.py
old mode 100755
new mode 100644
index 2f1a057..6d7b35e
--- a/security/tinc/src/opnsense/scripts/OPNsense/Tinc/tincd.py
+++ b/security/tinc/src/opnsense/scripts/OPNsense/Tinc/tincd.py
@@ -85,6 +85,7 @@
         if_up = list()
         if_up.append("#!/bin/sh")
         if_up.append("ifconfig %s %s " % (interface_name, pipes.quote(network.get_local_address())))
+        if_up.append("%s" % network.get_hostupscript())
         write_file("%s/tinc-up" % network.get_basepath(), '\n'.join(if_up) + "\n", 0o700)
 
         # configure and rename new tun device, place all in group "tinc" symlink associated tun device
diff --git a/security/tinc/src/opnsense/service/templates/OPNsense/Tinc/tinc_deploy.xml b/security/tinc/src/opnsense/service/templates/OPNsense/Tinc/tinc_deploy.xml
index 440afed..7500e47 100644
--- a/security/tinc/src/opnsense/service/templates/OPNsense/Tinc/tinc_deploy.xml
+++ b/security/tinc/src/opnsense/service/templates/OPNsense/Tinc/tinc_deploy.xml
@@ -12,6 +12,7 @@
         <address>{{network.intaddress}}</address>
         <port>{{network.extport}}</port>
         <debuglevel>{{network.debuglevel}}</debuglevel>
+        <hostupscript>{{network.hostupscript}}</hostupscript>
         <pingtimeout>{{network.pingtimeout}}</pingtimeout>
         <hosts>
             <host>