Projet

Général

Profil

Télécharger (45,6 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / etc / inc / vpn.inc @ c650b2f7

# Date Auteur Commentaire
c650b2f7 18 août 2014 21:18 Ermal

Allow HASH algorithms to be empty for phase2 in case the encryption one is AES-GCM

ae170e96 18 août 2014 12:25 Ermal

Do not allow duplicate subnet entries on left|rightsubnet specification since it will blackhole all traffic to that subnet when connection is setup as route

5d37d515 18 août 2014 12:18 Ermal

Do not accept proposal out of that configured even for IKEv2 even though there is no possibility in the GUI to set more than one proposal for Phase1 so far.

3b68ec45 18 août 2014 08:52 Ermal

Restore behaviour as with racoon to trigger tunnel startup from traffic that needs to go into the tunnel. Even related to Ticket #3806.

154298f1 14 août 2014 07:14 Chris Buechler

rightsourceip must be used with PSK+Xauth.

7f1b720f 14 août 2014 06:59 Chris Buechler

This is required for PSK+Xauth. I'll commit that clarification in a bit.
Revert "Revert "Fix assignment of tunnel IPs to mobile clients.""

This reverts commit 23ba08fc940b711f3b44551199890dc8e28a63b6.

23ba08fc 13 août 2014 11:52 Ermal

Revert "Fix assignment of tunnel IPs to mobile clients."
This normally is not needed since the attr plugin deals with all this.

This reverts commit 00311d6a841c0f6fc162ea11da06569f10220f5e.

1c70bdff 12 août 2014 23:11 Ermal

Actually disable this plugin for now. It was not really needed for solving the issues with IKEv1

00311d6a 11 août 2014 12:19 Chris Buechler

Fix assignment of tunnel IPs to mobile clients.

dc63467f 09 août 2014 00:09 Matt Smith

Fix #3798 - 'IPsec phase 2 pinghost is not used if the source IP should be a virtual IP address'

bf8aab82 08 août 2014 15:40 Ermal

Correct this so the dpdaction is created properly as restart

9f6a5b50 07 août 2014 22:53 Ermal

Do a reload on the cofniguration which is better than update. Also let the keyingtries to 3 rather than forever to avoid problems on recovery.

0b5fc1d1 07 août 2014 20:53 Ermal

Change the logic of the vpn config generation to make connectivity more stable especially ipsec. Also for IKEv1 just generate the policies and only on traffic start them.

b31a2c76 07 août 2014 17:52 Ermal

Move the rekey to yes always to avoid issues.

f088b8cd 01 août 2014 22:52 Ermal

Do not try to rekey for IKEv1.

9b915686 01 août 2014 22:39 Ermal

Use a uniqid() to track phase2 entries to avoid confustion and various mistakes when modifying and editing them.

fa0a1411 30 juillet 2014 17:57 Matt Smith

Fix for #3785 - 'strongswan config being generated with ike SA lifetime set to value of ipsec SA lifetime'

9280a998 29 juillet 2014 17:59 Matt Smith

Fix #3781 - 'strongswan dpdtimeout value not generated correctly'

1f2acda1 23 juillet 2014 18:19 Matt Smith

Fix for bug 3769

971de1f9 08 juillet 2014 01:06 Renato Botelho

Convert almost all /sbin/sysctl calls to php functions

649b6b85 24 juin 2014 20:09 Ermal

Actually use ph1ent ikeid here otherwise will duplicate ids here.

75786d2a 20 mai 2014 17:41 jim-p

Correct variable test here, too. Ticket #3662

8f5ac1a1 19 mai 2014 22:22 jim-p

Fix test (variable is a checkbox, not an array/string). Fixes #3662

aeb0f546 19 mai 2014 22:19 jim-p

Use correct variable name here.

29629bca 17 mai 2014 17:32 Ermal

Make some fixes related to Ticket #3662. Its mostly cleanup.

5ed13df0 16 mai 2014 21:22 Ermal

Actually make this correct

3060dcd4 16 mai 2014 20:43 Ermal

Use subnet rather than address/netmask to allow multiple clients to behave properly

95589abd 15 mai 2014 19:34 jim-p

Move duplicated code into a function; Include local ID on mobile tunnel key line in ipsec.secrets.

4767004f 15 mai 2014 16:17 Ermal

Use the right specification for ahnding over the subnet to mobile clients

7a1f391a 15 mai 2014 16:03 Ermal

Do not specify the rightid in mobile tunnels since it makes things not work

6586b30f 15 mai 2014 15:50 Ermal

Oops this was moved accidentally

b4ad5b1c 15 mai 2014 15:39 Ermal

Correct sense of match and move the code up to since it makes more sense

abd3c8f4 15 mai 2014 15:29 Ermal

Actually this should be rightauth2 since they should send the extra infor to be validated

466a5a81 09 mai 2014 22:13 Ermal

Allow to use PSK+agressive mode since user should have the choice even though it poses security risks

9879f03a 09 mai 2014 21:47 Ermal

This slipped in wrongly

f1bede03 09 mai 2014 21:41 Ermal

Allow a key to specified for all users as for exmpale when connecting from Apple iOS

9abaa8f7 09 mai 2014 19:52 Ermal

Pass the loglevels on the config rather than execing commands to specify these loglevels. This allows somethings to be properly logged as config logs

f9fb8d2b 09 mai 2014 17:40 Ermal

No need to have the ip let strongswan do it for us! Keeping still filterdns to properly evaluate dns behaviour here

484e6adc 09 mai 2014 17:31 Ermal

Strongswan does not need the quotes here

8d0a3abd 09 mai 2014 16:03 Ermal

Remove generate policy option since its not relevant with strongswan

6ae8b844 09 mai 2014 15:36 Ermal

Some adjustments to the code for logging

ad750d3b 28 avril 2014 22:05 Warren Baker

If unbound is configured then assign it for the vpn service

4a4fc162 28 avril 2014 15:02 Ermal

Another dir to be created

3ad5fd27 28 avril 2014 15:01 Ermal

Correct the definitions of certificate path to correct place to allow the daemon to start

9e5dfe47 28 avril 2014 14:44 Ermal

Update binaries used

b305f795 26 mars 2014 17:54 Ermal

Make this a global so no errors occur

e26e5e25 24 mars 2014 21:01 Ermal

Make this more usable by putting a delimiter in there

543c91ff 24 mars 2014 20:36 Ermal

Also configure log levels any time the daemon is restarted.

b7b3bc71 24 mars 2014 20:35 Ermal

Try to put the connection name in the logs for easy identification

8b4abd59 12 mars 2014 19:48 Ermal

More removal of racoon from referenced in sources

1dcb00bb 12 mars 2014 19:44 Ermal

Remove remeants of racoon

3eeac256 12 mars 2014 19:42 Ermal

Generate nat rules for ipsec when needed

63159749 06 mars 2014 22:59 Ermal

Better just use start here seems to be more reliable

d60eea55 06 mars 2014 21:38 Ermal

Correct the generation of the config for mobile tunnels as well

c6efc8fd 25 février 2014 11:10 Ermal

Push log changes for IPSec and fix generation of strongswan.conf and ipsec.secrets to be properly considered

7335fa53 25 février 2014 11:10 Ermal
  • Correct logging to syslog and proper file for ipsec from strongswan
  • Use proper commands to reload strongswan rather than just the daemon
ff3d516f 12 février 2014 15:05 Ermal

Be specific on the authentication method to use since xauth-eap will be active as well

ede14b23 12 février 2014 10:42 Ermal

Correct script path

6c576b27 12 février 2014 10:41 Ermal

Remove references to racoon and correct some handling of ipsec configuration

ecc37958 12 février 2014 10:36 Ermal

Remove copy paste leftover

91287d1f 12 février 2014 10:35 Ermal

If specified add authentication script configuration to strongswan.conf

496acde1 06 février 2014 12:49 Ermal

First swing at converting from racoon to StrongSWAN.
It allows to use existing configurations on xml to generate StrongSWAN configurations.
So its only IKEv1

  • Missing support for dynamic ips(hostnames)
    - resolver plugin of StrongSWAN needs to be configured in strongswan.conf...
cc263020 19 décembre 2013 15:52 Ermal

Provide a setting to disable the auto added LAN SPDs in the DB

aebf41df 10 décembre 2013 15:08 Renato Botelho

Use current racoon.conf syntax to avoid issues when deprecated one is removed, it fixes #3338

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.

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

03131eb9 03 septembre 2013 20:13 Renato Botelho

Remove SPD when disable phase2, it fixes #2719

083a9e6d 22 août 2013 21:14 Renato Botelho

Delete old route for remote gateway when its IP changes. It fixes #3155

8ab8d853 06 août 2013 16:05 jim-p

Don't print this message for a mobile IPsec setup. It's normal for it to not have an endpoint, and not worth spamming the log about.

c766d411 04 juin 2013 13:25 Renato Botelho

Remove extra parenthesis

4eb3ac52 04 juin 2013 13:24 Renato Botelho

Also consider 0.0.0.0/0 here since it fails on is_subnet() but is a valid/special config. Fixes #3016

50813d24 03 juin 2013 14:38 jim-p

vpn.inc calls functions from ipsec.inc but doesn't actually include it in all cases where it's needed.

da6aebbb 22 mai 2013 16:48 Renato Botelho

Remove unecessary if

5b23c83d 16 mai 2013 19:00 jim-p

This didn't fix anything, made another syntax error. Revert "Seems to be missing a semicolon here."

This reverts commit 47a24491e2ea07a19d360d29325c1780652026a4.

47a24491 16 mai 2013 18:09 jim-p

Seems to be missing a semicolon here.

09628a07 15 mai 2013 17:53 Renato Botelho

Fix indent and whitespace

6a781df6 22 avril 2013 22:27 Ermal

Make return value of vpn_ipsec_configure() have a meaning when ipsec is enabled. This can be used to detect if there are dynamic hostnames on ipsec policies

aa752473 04 avril 2013 14:06 Renato Botelho

Only reload racoon when there is at least one tunnel enabled on the interface used to call rc.newwanip(v6). It fixes #2922

923e440b 16 février 2013 16:55 Renato Botelho

Fix #2818. Last change didn't work, it needs to be one more step out of the loop.

fa77faff 15 février 2013 11:20 Renato Botelho

Fix #2818. Save information about all phase1 on ipsecpinghosts instead of only the last one

a0ad97f2 12 février 2013 22:03 bcyrill

Remove redundant variable

d83045b5 11 février 2013 10:29 Ermal

Properly generate all address data based on configuration selected

7b5eab84 02 février 2013 21:22 bcyrill

Kill filterdns when not being used

96a6f4cb 22 janvier 2013 20:36 bcyrill

Update etc/inc/vpn.inc

There's no need to create a spd.conf.reload file if it's empty.
Phase 1 entries for mobile clients are not handled by this function, thus exclude them. Their SPD have a limited lifetime anyway.

6fd8526b 09 janvier 2013 18:53 Rafael Abdo

Delete SPDs when an IPSec tunnel is deleted.

- Add new function to delete SPDs (see 'remove_tunnel_spd_policy($phase1,$phase2)' on vpn.inc)
- Change vpn_ipsec.php to delete SPDs on phase 2 and phase 1.
- Change the method GET to delete phase 2 (needs to inform which is the phase 1)...

5d6495a7 02 janvier 2013 19:43 Ermal

Tell filterdns to reload the config rather than restart if its running

2c6de2ea 07 décembre 2012 15:32 jim-p

Also consider 0.0.0.0/0 here since it fails both these tests but is still a valid/special config.

b8a73577 06 décembre 2012 17:23 Ermal

If the old configuration is present there use the new one for local users

a49784a2 21 novembre 2012 12:38 Ermal

Fix location of banner file for ipsec and also sprinkle some unset to avoid php keeping data in memory

05e825e7 20 novembre 2012 16:15 Ermal

Correct path even for generated certs for ipsec

5ed6d70d 17 novembre 2012 09:53 Ermal

Correct path to certificates as well

5debd85f 17 novembre 2012 02:39 caseyr232

Corrected racoon path to psk.txt.

"path pre_shared_key \"{$g['varetc_path']}/psk.txt\";\n\n"; is incorrected, ammended to "path pre_shared_key \"{$g['varetc_path']}/ipsec/psk.txt\";\n\n";

993f97dc 15 novembre 2012 19:29 Ermal

Remove none per Jim since it is confusing

52c9f9fa 14 novembre 2012 20:31 Ermal

Allow other system authentication types to be used with ipsec. LDAP/RADIUS/local acc

b0bf6bd0 30 octobre 2012 23:35 Ermal

Fixes #2394. If an entry of 0.0.0.0/0 is configured than use the first interface ip matching. Also do a microptimization to not retrieve the interface list every ping host entry

f85da3b5 30 octobre 2012 23:08 Ermal

Fixes #2300. Take into consideration ip aliases on carp

e08a5153 30 octobre 2012 23:06 Ermal

Fixes #2300. Add static route even for ip aliases selected to avoid issues.

ac91bae5 22 octobre 2012 19:48 jim-p

Use a proposal check value of obey for all mobile, not just pure-PSK. (The docs recommend setting this, may as well make it the default)

909890c4 05 octobre 2012 21:08 Ermal

Correct the config generation

a0c4a6ce 05 octobre 2012 21:05 Ermal

config.xml might have some elusive data so do not fail sainfo section for localside if there is an empty nat address. Just do not put the nat side in there