Projet

Général

Profil

Télécharger (42,4 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / etc / inc / openvpn.inc @ b1e8e675

# Date Auteur Commentaire
b1e8e675 24 juin 2014 14:27 Dmitriy K.

Update openvpn.inc

5b3c0116 20 juin 2014 18:06 Dmitriy K.

Update openvpn.inc

Added verbosity check in case when verbosity_level is absent in config.xml

0e678da7 20 juin 2014 16:57 Dmitriy K.

Update openvpn.inc

Removed unnecessary "else {";

b9e9903d 17 juin 2014 09:01 Dmitriy K.

patchpack1

-Fix #3401 (Added tun option "Disable IPv6"
-Added new options: route-nopull, route-noexec, verb;

2da48592 04 juin 2014 21:22 jim-p

Allow the user to select "None" for OpenVPN client certificate, so long as they supply and auth user/pass. Ticket #3633

cb4f4ea9 30 mai 2014 14:45 jim-p

client-config-dir is also useful when using OpenVPN's internal DHCP while bridging.

f931befd 23 avril 2014 22:30 jim-p

This doesn't need via-env

4a97aa34 14 avril 2014 21:11 Ermal

Correct the sense of the check to allow openvpn to work

57ab9f7d 14 avril 2014 20:52 Ermal

Correct auth-user-pass-verify to include parameters properly so openvpn can start

d471a890 14 avril 2014 11:35 Chris Buechler

tls-verify requires quotes around the command to be executed. Ticket #3596

5f242576 09 février 2014 19:23 PiBa-NL

openvpn, allow for entering client user credentials in the WebGUI

873c1701 04 février 2014 15:34 Renato Botelho

Add escapeshellarg() calls on exec parameters. While I'm here, replace some exec() calls by php functions like symlink, copy, unlink, mkdir

2ec95f1f 24 janvier 2014 11:33 Renato Botelho

Fix openssl path

5c427ce7 26 décembre 2013 22:41 jim-p

Add support for local (push route) and remote (iroute) network definitions in an OpenVPN client-specific override entry.

b95b40a1 19 décembre 2013 10:10 Ermal

Move also tls-verify to fcgicli to avoid forking php process. Maybe even this should be done as a plugin to avoid overhead of forking.

5e28dad4 19 décembre 2013 09:53 Ermal

Migrate openvpn authentication to use fcgicli rather than forking a php process. Maybe should could consider to write a short library todo this

78c36733 18 décembre 2013 22:45 Ermal

Use does_interface_exist rather than calling ifconfig directly

0c21eb70 06 décembre 2013 20:16 Ermal

Use _vip as identified for CARP vip IPs to allow easier upgrade code. This way only ipaliases on carp need to be upgraded.

af93d29a 05 décembre 2013 17:18 Ermal

Make more strict checks

7238e0cf 28 novembre 2013 19:36 Ermal

Remove references to _vip interface and provide proper configuration for carp on FreeBSD 10. Still some places to deal with this and certainly missing upgrade code

9ed52990 31 octobre 2013 20:03 jim-p

Unset value should be '' and not 'none'

edba1982 31 octobre 2013 19:50 jim-p

Change OpenVPN Compression settings to cover the full range of allowed settings on OpenVPN (unset, off, on, adaptive) rather than a simple off/on switch that either doesn't set the value or enables it with adaptive (OpenVPN's default).

97d5b59b 30 octobre 2013 20:47 jim-p

Add an Authentication Digest Algorithm drop-down to OpenVPN server/client (SHA1 is the default since that is OpenVPN's default)

330ecea1 03 septembre 2013 03:23 Shahid Sheikh

Fix #3174 Handling of gateway groups in openvpn_restart()
If the underlying vip of a gateway group that an openvpn client is bound
to is in backup mode then the client should not start.

de85521a 14 août 2013 14:52 jim-p

Remove prior CSC entry when cleaning up. Fixes #3143

f2291484 14 août 2013 14:52 jim-p

Declare globals as global before defining them in openvpn.inc

615d7f0a 17 juin 2013 11:27 Ermal

Add warning comment about missing IPv6 implementation

60f501ec 14 mai 2013 06:16 Phil Davis

IPv6 OpenVPN TAP mode typo

fe9c774d 14 mai 2013 04:25 Phil Davis

OpenVPN w/ IPv6 fails to set ifconfig-ipv6 value in conf #2991

be00850b 07 mai 2013 16:34 Phil Davis

Remember which interface was used by each OpenVPN conf

When interfaces go down and up we need to know which interface (vr1, vr2 etc) each OpenVPN instance is using so we can optimize our decision about which instances to resync. That data is not in the conf file (the conf file contains the IP address the instance binds to). This change puts the interface name into a little file in /var/etc/openvpn for later use.

24d8c77d 03 avril 2013 11:56 Ermal Luçi

Merge pull request #499 from phil-davis/master

Resync relevant OpenVPN instances when gateway group settings are modified

2eaa97b9 01 avril 2013 18:57 jim-p

Clarify notes when there is an error reaching the openvpn management daemon for service status. Also, add service controls to the openvpn status page.

99cc103b 29 mars 2013 09:40 Phil Davis

Provide openvpn_resync_gwgroup function

Allows all OpenVPN servers and clients that use a particular gateway group to be resynced in one easy call.

6d0b9fe9 25 février 2013 21:24 jim-p

Better check for the right bits being set.

6ca938cf 25 février 2013 21:19 jim-p

Always clear the OpenVPN route when using shared key, no matter what the tunnel network "CIDR" is set to, it still needs it.

699125b1 11 février 2013 19:50 jim-p

Use the actual openvpn restart routine when starting/stopping from services rather than killing/restarting manually.

49b76122 29 janvier 2013 18:30 Renato Botelho

Permit openvpn to use same port on different interfaces. It should fix #814

54285411 28 janvier 2013 17:51 jim-p

is_subnet() will fail here if using comma-separated lists of networks. Use openvpn_validate_cidr() instead.

8793cb1f 28 janvier 2013 17:49 jim-p

is_subnet() will fail here if using comma-separated lists of networks. Use openvpn_validate_cidr() instead.

349bf358 27 janvier 2013 20:55 jim-p

Display a list of ciphers accelerated by a specific engine. Also, skip engines that are listed but unavailable for direct use.

dae707f5 27 janvier 2013 18:20 jim-p

Fixup paths when executing OpenSSL.

a28d40cb 24 janvier 2013 19:54 jim-p

Allow specifying multiple local/remote networks for OpenVPN separated by commas. While I'm here, fix up the IPv6 tunnel/remote/local network input validation. Simplify some code using functions.

ee55ce7d 22 janvier 2013 19:28 jim-p

Add GUI option to use "topology subnet" for OpenVPN, since the OpenVPN Connect iOS client requires it for IPv6

ec970b50 21 janvier 2013 15:25 jim-p

Add routing table display for each OpenVPN ssl/tls server instance, collapsed by default. Part of feature #2766

c69c37b6 17 décembre 2012 14:24 jim-p

Needs more thought - might route something an unintended path. Perhaps a checkbox. Revert "Exclude the VPN peer from routes so as to not break connectivity to the actual VPN peer if a route includes its IP."

This reverts commit 5d8e8c9d25b55c6d3260e69fcf4620f76488d173.

1bc783b6 16 décembre 2012 23:38 bcyrill

Update etc/inc/openvpn.inc

Mute error when interface does not exist, e.g. after reboot.

5d8e8c9d 13 décembre 2012 19:50 jim-p

Exclude the VPN peer from routes so as to not break connectivity to the actual VPN peer if a route includes its IP.

91c44185 05 décembre 2012 23:15 jim-p

Use functions to reduce code duplication; Add function to clear route to the interface IP before starting openvpn, otherwise the process cannot start. Ticket #2712

6714bbdc 04 décembre 2012 18:08 jim-p

Activate choices for UDP6 and TCP6 for OpenVPN. Make sure interface IP selection chooses the proper IP and sets the proper protocol string. May need some GUI input validation to prevent someone from selecting a *6 proto with an IPv4 VIP and vice versa.

a0e3ee98 03 décembre 2012 17:08 jim-p

Use the IPv6 tunnel network for peer to peer OpenVPN modes.

a8f538a8 21 novembre 2012 16:13 jim-p

Wrap dir creation for openvpn in a function to reduce duplication, and use the function before places that could potentially write in the dir.

ed490bdf 21 novembre 2012 16:08 Ermal

Create directory if it does not exists

e63f73d1 21 novembre 2012 16:05 Ermal

Presence of a directory does not mean anthing. Just continue up. Pointy-hat: myself

10c7d642 21 novembre 2012 10:45 Ermal

Unbreak the openvpn reading of configs. A dir needs to be executable to be searchable and readble inside. Reported-by: http://forum.pfsense.org/index.php/topic,55934.0/topicseen.html

938fc5b0 20 novembre 2012 17:34 Ermal

Create necessary dir and unset conf string after writing to file

2d314598 19 novembre 2012 22:28 Chris Buechler

Merge pull request #244 from bcyrill/ovpn-alias

Fix: Use specified IP if available

9a6d6728 14 novembre 2012 11:32 Ermal

Remove unused/unuseful tags anymore

d7a0c22a 03 novembre 2012 22:41 bcyrill

Fix: Use specified IP if available

da601f8e 01 octobre 2012 14:45 PiBa-NL

Allow for changing OpenVPN TUN to TAP device mode without reboot.

193a8e1f 30 septembre 2012 17:11 jim-p

Revert "Allow for changing OpenVPN TUN to TAP device mode without reboot." -- Adds blank OpenVPN servers, see ticket #2643

This reverts commit c8bb7f1527a99c69784ab6c01d9050adcde6a8a0.

c8bb7f15 22 septembre 2012 23:23 PiBa-NL

Allow for changing OpenVPN TUN to TAP device mode without reboot.

4856df9b 09 août 2012 20:40 jim-p

Add forgotten "ipv6 remote network", clean up a couple bits, make sure local network box is hidden for shared key servers.

260f267e 29 juin 2012 20:12 jim-p

OpenVPN servers can start on carp vips, just not clients.

c1449c94 28 juin 2012 11:59 smos

If we only have a IPv6 interface we'll use that, otherwise a IPv4 address always has preference. Revisit this for OpenVPN 2.3

47c48e28 25 juin 2012 18:44 smos

Check in code that allows for using a gateway group as the interface on the OpenVPN server page. Only allow IPv4 gateway groups for now. We'll need to add IPv6 suppport here later when we import OpenVPN 2.3.
Unbreak the gateway group function on broken configurations like a missing 3G stick....

a1b9105b 06 juin 2012 22:58 jim-p

Only add openvpn acl script lines if it's a server mode that does user auth

1492e02c 05 juin 2012 21:37 Ermal

Import OpenVPN cisco style radius attributes applying policy to logged in users. Feature #2100

e052047d 14 mai 2012 18:27 jim-p

Whoops, don't flip these since I negated the test.

d9c96fb1 14 mai 2012 17:09 jim-p

Flip this test around since it's safer to assume the dev mode is tun. Ticket #2432

67898061 05 avril 2012 22:30 Ermal

Unbreak openvpn

7b47bd4c 05 avril 2012 22:22 Ermal

Make vips vhid be unique per parent interface!

9ea0cb90 06 mars 2012 20:33 jim-p

Be more intelligent when managing OpenVPN client connections bound to CARP VIPs. If the interface is in BACKUP status, do not start the client. Add a section to rc.carpmaster and rc.carpbackup to trigger this start/stop.
If an OpenVPN client is active on both the master and backup system, they will cause conflicting connections to the server. Servers do not care as they only accept, not initiate.

002cacab 16 novembre 2011 22:38 jim-p

Fix this ifconfig-push to also account for tap.

459e9333 16 novembre 2011 21:46 jim-p

If there is a tunnel network in tap mode, the second parameter is a subnet mask, not the other IP.

9eced774 11 novembre 2011 21:08 jim-p

username-as-common-name is not compatible with server-bridge, so don't put it in the config if server-bridge is active. Testing is needed to determine if there is any other negative impact, but with both present, openvpn will not start.

298fe5ae 10 novembre 2011 18:01 jim-p

Fix order of client/server IPs and add a note, and clarify variable names. Fixes #2004.

74a556a3 09 novembre 2011 18:48 jim-p

Rework this a little since using tap+tunnel network is valid, but using tap+tunnel network+bridging is not (will not do what the user expects/wants)

1ab6bdb5 08 novembre 2011 22:57 jim-p

Fix up OpenVPN server tap modes, support various options for providing or passing through DHCP. (Work in progress)

41936acc 27 octobre 2011 16:28 jim-p

Assume a default value of 1 for cert_depth to disallow chaining.

98963f27 27 octobre 2011 16:28 jim-p

Add GUI option to limit the certificate depth allowed when OpenVPN clients are connecting.

453d9c96 30 août 2011 15:48 jim-p

Fixup OpenVPN status a bit to properly handle SSL servers using a /30 (no server directive) and also be a little more verbose about what is happening, if we can tell.

7734aea6 17 août 2011 04:15 Andrew Thompson

Make initial changes to allow pfSense to work in a jail.

This mostly avoids starting things that will not work and gets the
initial config. Most of the pfSense functionality will not work
(pf rules, routing, etc) but it can be used for testing.

95305736 27 juillet 2011 17:37 jim-p

Rework OpenVPN status, show status for shared key servers.

6b2dcac5 26 juillet 2011 23:30 Ermal

Resolves #1719. Prevent disabled client/servers from being displayed on the widget.

17c98ba9 22 juillet 2011 22:20 jim-p

Only apply remote_network setting for p2p modes, since it is not valid for remote access modes. Fixes #1707

cfcc6994 13 juillet 2011 23:16 jim-p

CRL fixes for empty CRLs (so they don't kill OpenVPN)

8b6313a4 13 juillet 2011 01:57 jim-p

Merge remote-tracking branch 'upstream/master'

Conflicts:
etc/inc/easyrule.inc
etc/inc/filter.inc
etc/inc/interfaces.inc
etc/inc/services.inc
etc/inc/xmlrpc_client.inc
usr/local/www/fbegin.inc
usr/local/www/services_dhcp.php

1623ed97 06 juillet 2011 14:41 Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

Conflicts:
etc/inc/priv.defs.inc

769c4591 04 juillet 2011 17:11 jim-p

Merge remote-tracking branch 'upstream/master'

d9489532 04 juillet 2011 07:13 Chris Buechler

Don't check OpenVPN ports in use against disabled clients or servers

48427553 28 juin 2011 21:55 Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

84296ca3 26 juin 2011 21:03 jim-p

Merge remote-tracking branch 'upstream/master'

5a7cc1f9 24 juin 2011 21:09 Ermal

No need to use nohup when using mwexec_bg since it calls nohup itself. Also use fullpath to executables.

d8012adb 07 juin 2011 15:47 Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

Conflicts:
etc/inc/voucher.inc
usr/local/www/fbegin.inc

534375b6 03 juin 2011 21:34 jim-p

Merge remote branch 'upstream/master'

Conflicts:
etc/inc/openvpn.inc

5dc6c910 03 juin 2011 15:20 jim-p

When making a P2P SSL/TLS OpenVPN server, if the given CIDR for the tunnel network is a /30, don't use the OpenVPN server directive. See ticket #1417

d21d6e20 23 mai 2011 20:41 Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

Conflicts:
etc/inc/interfaces.inc
etc/inc/upgrade_config.inc
etc/inc/vpn.inc

69be9601 13 mai 2011 13:43 Seth Mos

Merge remote branch 'upstream/master'

Conflicts:
etc/inc/vslb.inc
etc/version

728003c8 11 mai 2011 22:10 jim-p

Various CRL fixes, handle empty internal CRLs better.

fcdc8943 28 avril 2011 11:33 Seth Mos

Merge remote branch 'upstream/master'

Conflicts:
etc/inc/pfsense-utils.inc