Commit Graph

43 Commits

Author SHA1 Message Date
Michael Tremer
a98b79f878 misc-progs: Fix path to killall binary in openvpnctrl
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-22 15:25:20 +00:00
Michael Tremer
435076bbb0 misc-progs: Kill OpenVPN Authenticator before OpenVPN
There used to be a time where the authenticator crashed when the OpenVPN
daemon went away which is causing issues.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-22 15:01:58 +00:00
Michael Tremer
e420c103de openvpnctrl: Update CRL before starting the client daemon
If the CRL is outdated for some reason (e.g. a backup restored from ISO
where we don't run the migration scripts), this will update it on
reboot/restart of the service.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-10-24 09:06:16 +00:00
Michael Tremer
339b84d509 openvpn-2fa: Import a prototype of an authenticator
This script runs aside of OpenVPN and connects to the management socket.
On the socket, OpenVPN will post any new clients trying to authenticate
which will be handled by the authenticator.

If a client has 2FA enabled, it will be challanged for the current token
which will then be checked in a second pass.

Clients which do not have 2FA enabled will just be authenticated no
matter what and tls-verify will have handled the rest.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-06-17 10:20:18 +00:00
Peter Müller
66c3619872 Early spring clean: Remove trailing whitespaces, and correct licence headers
Bumping across one of our scripts with very long trailing whitespaces, I
thought it might be a good idea to clean these up. Doing so, some
missing or inconsistent licence headers were fixed.

There is no need in shipping all these files en bloc, as their
functionality won't change.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 23:54:57 +00:00
Alexander Marx
c63e97bbaf vpn-statistic: fix removal of rw rrd-data
Due to a missing slash the rrd data of a deleted rrd-connection was not
deleted
2015-04-11 08:33:19 +02:00
Michael Tremer
187590f791 openvpn: Move remving files in /var/run to openvpnctrl 2015-04-10 13:27:32 +02:00
Michael Tremer
e1297cbb76 openvpn: Properly remove all RRDs after a connection is removed 2015-04-09 16:32:39 +02:00
Alexander Marx
8516edcc48 BUG10730: fix permissions of ovpnserver.log 2015-02-03 07:26:34 +01:00
Alexander Marx
5795fc1b55 vpn-statistic: added new statistic page for OpenVPN Roadwarrior 2014-09-18 16:29:10 +02:00
Michael Tremer
5c3de120aa openvpnctrl: Allow ICMP error messages to pass the transfer net. 2014-03-01 16:51:03 +01:00
Stefan Schantl
e1a51ebb85 openvpnctrl: Pass external IP address to N2N daemons.
Fixes #10313.
2014-01-12 15:34:27 +01:00
Michael Tremer
ab4876ad42 firewall: Don't require to enable the RW server for N2N networks.
The firewall rules for OpenVPN have not been applied for N2N
connections when the road warrior server was disabled.
2013-11-08 13:38:09 +01:00
Michael Tremer
52e54c1c9a misc-progs: Move network stuff to own header file. 2013-10-12 18:22:51 +02:00
Michael Tremer
8e9a041324 openvpnctrl: Silence PID file error message. 2013-09-02 21:52:35 +02:00
Michael Tremer
3ad23ee1d9 openvpnctrl: Suppress silly error messages and cleanup coding style. 2013-09-02 21:05:47 +02:00
Michael Tremer
d2c4a3cab9 openvpnctrl: Cleanup flushChain functions. 2013-08-09 14:15:28 +02:00
Michael Tremer
2181b55552 openvpnctl: Flush BLOCK and SNAT chain when needed. 2013-08-09 14:15:28 +02:00
Michael Tremer
c31f18b6a9 openvpnctrl: Block all transfer subnets. 2013-08-09 14:15:27 +02:00
Michael Tremer
7c50b04834 openvpnctrl: Remove unneeded code. 2013-08-09 14:15:27 +02:00
Alexander Marx
443a6e8a5f Forward Firewall: deleted creation of OVPNFORWARD and the accept rule. 2013-08-09 14:09:17 +02:00
Michael Tremer
cdbe350442 openvpnctrl: Save the binary from crashing with wrong input.
See #10390.
2013-07-17 18:53:13 +02:00
Michael Tremer
a19ff965bb openvpnctrl: Fixes and improvements.
Handle invalid data and make the code more robust.
2013-06-05 18:56:31 +02:00
Michael Tremer
3d1fbbb028 openvpnctrl: SNAT transfer networks. 2013-06-05 18:56:21 +02:00
Michael Tremer
99b01b8485 openvpn: Fix starting/stopping errors in the control binary.
net2net connection were not started when roadwarrior connections
were existant.
2012-01-07 22:21:08 +01:00
Michael Tremer
d4f2fb979a openvpnctrl: Fix adding firewall rules. 2011-09-04 20:37:49 +02:00
Michael Tremer
64f0c3543d openvpnctrl: Add option to start all n2n connections at once. 2011-07-27 18:40:12 +02:00
Michael Tremer
81a789d931 openvpnctrl: Force 'modprobe tun' before starting the openvpn daemon. 2011-07-19 11:42:53 +02:00
Michael Tremer
c894a34234 openvpnctrl: Disable debug mode. 2011-07-08 18:30:41 +02:00
Michael Tremer
91a0a2217a openvpnctrl: Fix initialization of the program.
Firewall rules are now set properly and a detection for the
connection type was added.
2011-07-08 17:40:59 +02:00
Michael Tremer
1129c37a95 openvpnctrl: Fix SEGV in sprintf() call. 2011-07-05 12:45:51 +02:00
Michael Tremer
7d653d51f8 openvpnctrl: Fix for while loop that had no break. 2011-07-01 19:40:44 +02:00
Michael Tremer
d4c8b6bec2 openvpnctrl: Remove PID file after an openvpn process was killed. 2011-06-29 20:02:31 +02:00
Michael Tremer
80ca8bd0f5 openvpnctrl: Fix some compiler warnings.
(Hopefully) no functional changes.
2011-06-29 19:58:01 +02:00
Michael Tremer
858d8d9092 openvpnctrl: Create firewall rules properly if roadwarrior server is disabled. 2011-06-29 19:51:24 +02:00
Michael Tremer
2bcff894ac openvpnctrl: Support killing only the roadwarrior server. 2011-06-25 17:57:57 +02:00
Michael Tremer
39877197d6 openvpnctrl: Implement support to kill connections. 2011-06-25 11:47:42 +02:00
Michael Tremer
0708113765 openvpnctrl: Update firewall rules when starting a n2n connection.
This makes sure, that all rules (esp. for new connections) are up
and running.
2011-06-25 10:59:47 +02:00
Arne Fitzenreiter
6925b8ef58 openvpn: Add control options to openvpnctrl binary for n2n. 2011-05-14 19:24:47 +02:00
ms
7d3af7f772 OpenVPN gefixt.
ctorrent hinzugefuegt.
UpdateBooster/SquidGuard gefixt.
Pakfire-Archiv geaendert.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@647 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-25 23:26:43 +00:00
ms
afabe9f7d1 Kleine Fixes am Pakfire - brauche Binary.
OpenVPN geht nach einem ersten Test...


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@638 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-18 22:09:26 +00:00
ms
072cd9978e Hinzugefügt:
* Link Quality Graphs
Geändert:
  * index.cgi nochmals bearbeitet.
  * Benedikt is jetzt ganz aus den Credits raus... Bekommt dann wohl ne Extra-Sonderseite mit Bild und so^^
  * OpenVPN in ISO gepackt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@157 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-06-04 22:29:23 +00:00
ms
6e13d0a5c5 Hinzugefügt:
* OpenVPN GUI Alpha7
Geändert:
  * XAMPP von 1.5.3 --> 1.5.3a


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@152 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-06-02 15:59:39 +00:00