Projet

Général

Profil

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

univnautes / etc / inc / vpn.inc @ 7a1f391a

# Date Auteur Commentaire
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

db535a1c 05 octobre 2012 20:12 Ermal

Correctly build the sainfo to avoid errors

023f744b 05 octobre 2012 18:58 jim-p

Use .= for strings rather than +=

3c107b76 04 octobre 2012 20:37 Ermal

Add a NAT entry for configuring NAT on ipsec phase2. It will add nat rules on enc interface

680d543d 27 septembre 2012 18:55 jim-p

Add forgotten part of the IPsec split dns fix from yesterday

f00278f1 25 septembre 2012 14:18 Pierre POMES

Ticket #2635: during ipsec reload, do not generate spd for disabled ph1

9500537d 06 septembre 2012 14:22 jim-p

Don't add ldapcfg to racoon.conf since we're not using racoon's built-in LDAP support now. Moving to external script-based auth, see ticket #1112

e3df974b 27 août 2012 20:41 jim-p

Restructure these IP/subnet tests so they don't break transport mode.

062676f8 23 mai 2012 21:25 Ermal

Fixes #2364. On busy pppoe servers it might take some time before mpd exits. Check for this before trying to restart

5a61fd69 22 mai 2012 08:13 smos

Make sure that we match multiple characters.
Ticket #2415

e7de69fb 22 mai 2012 07:49 smos

First round of CARP vip renaming changes
Ticket #2415

58070e1c 24 avril 2012 04:14 Chris Buechler

routes should not be skipped when IPsec is on WAN, as WAN may not be the default gateway.

9caa10bc 12 avril 2012 05:29 Chris Buechler

this is only valid in mpd5 (really?...) Revert "RADIUS accounting updates are needed for PPPoE and L2TP too"

This reverts commit 02b14dcb49da8dc278e87785bb3f811336bf1fd0.

02b14dcb 12 avril 2012 05:02 Chris Buechler

RADIUS accounting updates are needed for PPPoE and L2TP too

cf0a2714 14 février 2012 18:32 jim-p

Don't let an empty subnet into racoon.conf, it can cause parse errors. Ticket #2201

846a6dc2 13 février 2012 21:06 jim-p

Fix reference to PPTP secondary RADIUS server shared secret.
See http://forum.pfsense.org/index.php/topic,46103.0/topicseen.html

a11df336 31 janvier 2012 20:04 jim-p

Only do foreach on the p2's if it's actually an array.

7dcf1cc7 09 décembre 2011 19:55 jim-p

Ensure we always write out a blank spd.conf if there are no phase 2 entries. If you delete the last phase 2 and then apply, it will still be in spd.conf and used by racoon even with no phase 2's configured.

b0943409 30 août 2011 18:11 Ermal

Fix several issues in pppoe code and remove duplicated code.

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.

4222087e 28 juillet 2011 14:24 jim-p

Also escape \ in pptp passwords.

96267107 27 juillet 2011 22:31 Ermal

Correct whitespace and some problems in the just merged ldap auth sorce for racoon

5d6bade4 27 juillet 2011 22:19 Ermal Luçi

Merge pull request #8 from ninja76/master

IPSec xAuth allowing LDAP to be used as a backend

1fb8d314 27 juillet 2011 19:40 Ermal

Prevent php from coring if the wrong parameters are passed to ip2long

4cf82d52 27 juillet 2011 18:54 jim-p

Relax PPTP password restrictions, just prevent starting with a !, and limit to common printable/keyboard characters so it doesn't result in invalid xml. Fixes #1720

2c189c8c 27 juillet 2011 15:47 Bryan Haase

Improved ipsec ldap xauth

320bba64 25 juillet 2011 23:10 Ermal

Always send the route delete command even if it fails its ok. This avoids having to dump the routing table.

8ff6b72c 25 juillet 2011 21:39 Ermal

Use the new change to be less distuptive

e3d35704 22 juillet 2011 16:20 Bryan Haase

format error

e9ccd9b1 22 juillet 2011 16:18 Bryan Haase

More sanity checking