[Fli4l_dev] FFL-506 Tarbal?==?utf-8?Q?l vom 29.8 und OpenVPN Probl?==?utf-8?Q?em

Claas Hilbrecht babel at fli4l.de
Mi Sep 24 20:21:49 CEST 2014


Versuch mal ob es mit diesem Patch besser wird. Das ist keine finale
Lösung, aber erstmal ein Versuch.

--- opt/etc/rc.d/rc440.openvpn.org	2014-09-24 20:17:03.485453050 +0200
+++ opt/etc/rc.d/rc440.openvpn	2014-09-24 20:17:27.965451408 +0200
@@ -603,6 +603,20 @@
                         [ "$ovpn_rport" ] && echo "rport $ovpn_rport"
 		        echo "</connection>"
 	            fi
+
+		    # if the remote host is not resolvable while openvpn is starting
openvpn
+		    # will never listen to any incomming connection. To avoid this we
create
+		    # a "last try" dummy connection to our localhost this allows
openvpn to
+		    # start listen for incomming packets. This will obviously only
work if
+		    # the option "float" is also set.
+                    if [ $ovpn_float = yes -a -n "$ovpn_remote_host" ]
+		    then
+                        echo "<connection>"
+	                echo "remote 127.0.0.1"
+			echo "rport 65500"
+	                echo "</connection>"
+	            fi
+
                     eval
ovpn_rhosts='$OPENVPN_'$ovpn_idx'_REMOTE_HOST_N'
                     [ 0$ovpn_rhosts -eq 0 ] || for ovpn_rdx in `seq 1
$ovpn_rhosts`
                     do
@@ -619,19 +633,6 @@
                         [ "$ovpn_rport" ] && echo "rport $ovpn_rport"
 		        echo "</connection>"
                     done
-
-		    # if the remote host is not resolvable while openvpn is starting
openvpn
-		    # will never listen to any incomming connection. To avoid this we
create
-		    # a "last try" dummy connection to our localhost this allows
openvpn to
-		    # start listen for incomming packets. This will obviously only
work if
-		    # the option "float" is also set.
-                    if [ $ovpn_float = yes -a -n "$ovpn_remote_host" ]
-		    then
-                        echo "<connection>"
-	                echo "remote 127.0.0.1"
-			echo "rport 65500"
-	                echo "</connection>"
-	            fi
                 }>>$ovpn_name.conf
 
                 ovpn_pktflt_src=



Mehr Informationen über die Mailingliste Fli4l_dev