Commit Graph

16283 Commits

Author SHA1 Message Date
jim-p
c049daefa8 Disable this test, it was causing some package file downloads to be skipped for me, and nothing else seems to set/use this variable anywhere. 2010-11-20 00:19:16 -05:00
Ermal
37c8e07d0c Fix reading the ip from the right file for dyndns. 2010-11-19 18:24:58 +00:00
jim-p
e39243843f Reorder some code and combine the nobind test with the lport code to ensure only the needed options are used in any given combination. 2010-11-19 10:44:54 -05:00
jim-p
5708241f95 When the local port is left blank on an OpenVPN client, use 'lport 0' to direct the client to use a random source port. Fixes #1025 2010-11-19 10:31:56 -05:00
Ermal
ad88ff3f95 Cleanup some code and properly handle failure of pkg_fetch_recursive. 2010-11-19 15:34:13 +00:00
Ermal
d08b0064d7 Clarify message. 2010-11-19 15:21:58 +00:00
Ermal
0cdf4e8748 Use correct extension of tgz rather than tgz for automatically discovered dependencies. 2010-11-19 15:17:50 +00:00
Ermal
c132bdb0f5 Honor the config parsed var if set. 2010-11-19 00:12:12 +00:00
Ermal
1883455aad Hopefully now the reinclusion of config will not override vars. 2010-11-19 00:10:56 +00:00
Ermal
d8333a247a Use full path when we might not have full environment setup. 2010-11-19 00:03:34 +00:00
Ermal
01a6e66579 globals.inc is better first. 2010-11-19 00:02:29 +00:00
Ermal
d9426abcea More safety belts. 2010-11-19 00:00:56 +00:00
Ermal
d465a277cd Fix fetching of package list. 2010-11-18 23:44:47 +00:00
Ermal
21bc451be7 Add myself to the copyright. Have modified enough the file. 2010-11-18 18:56:27 +00:00
Erik Fonnesbeck
4830e56a25 Some fixes for the upgrade code for captive portal users. 2010-11-18 10:31:33 -07:00
Erik Fonnesbeck
8784a3bbbf Remove the old field even if empty in rename_field. 2010-11-18 09:13:42 -07:00
Erik Fonnesbeck
d7bf317824 Various fixes and improvements for the DNS rebind and HTTP referrer checks.
* Only compare with full host from referrer, since someone can put whatever they want at the left side of the period to the left of the domain name.
* Now can check for hostname as well, not just hostname.domain, in referrer check.
* Fix althostnames case for referrer check.
* Move the simpler, more commonly used cases above the ones involving foreach loops and skip the loops when a name match has already been found.
* Break out of foreach loops when a match has already been found.
* Do case-insensitive matching of hosts and domains.
* Remove useless checks of non-IP addresses against SERVER_ADDR.
2010-11-18 06:04:24 -07:00
Ermal
2addd5b2c3 Fix problem with syslog adding/removing for pacakges. Fix sync pacakges to call the right functions. Optimizations and code cleanup along the way. 2010-11-18 12:57:35 +00:00
Erik Fonnesbeck
0bee20108d Save the host name and domain to a temporary location until the setup wizard is finished to prevent triggering the DNS rebind message. Fixes #1022 Also use this information to implement the redirect for changed host for ticket #455 2010-11-18 02:34:51 -07:00
Erik Fonnesbeck
b8d4d7cdc5 Handling this properly when the web gui is on an alternate port number. 2010-11-18 00:23:41 -07:00
Erik Fonnesbeck
6898927f4f Make this check more general in case someone makes a wizard that changes an opt interface's IP address and wants to use the "Reload in progress" step. Ticket #455 2010-11-17 20:00:05 -07:00
jim-p
9c37f8cdc5 Properly reflect ports in the GUI view of the anti-lockout rule since Ermal's changes restricted it to only ssh/gui ports. 2010-11-17 19:37:24 -05:00
jim-p
916ee7453e Show CRL download link only for imported certificates or CRLs with revoked certificates. 2010-11-17 19:16:45 -05:00
jim-p
304af9d8ef Some CRL fixes. 2010-11-17 19:12:15 -05:00
Ermal
fa15f4ae52 Clear up some code. 2010-11-17 22:45:52 +00:00
Scott Ullrich
d98d6f7f42 Boost timeout for file downloads to 60 seconds 2010-11-17 17:42:10 -05:00
Ermal
eab543eda6 Ticket #1017. Move the fwrite and fd_log initializing to a function. Name the function pkg_debug to properly show what is its purpose and also make it write something only when $debug is set. 2010-11-17 20:17:00 +00:00
Ermal
4c3d9312e8 Ticket #1017. Put a @ before each fwrite to silence errors. Also setup the log file in the beginning rather than on each individual function. 2010-11-17 19:47:01 +00:00
Ermal
1ae5c631e8 Resolves #1018. Provide a more unique host name for the file. 2010-11-17 19:36:32 +00:00
Erik Fonnesbeck
53d41b6885 The way this option is currently defined, the configuration variable is always set; for this case, isset is not the correct condition. Reported at http://forum.pfsense.org/index.php/topic,30153.0.html 2010-11-17 10:34:46 -07:00
Erik Fonnesbeck
a219c64325 Add workaround for referrer check to not be triggered on the previous IP address when redirected by the setup wizard. 2010-11-17 08:35:30 -07:00
Erik Fonnesbeck
fd7f136b26 Redirect to the correct IP at the end of the setup wizard if accessing it on an IP address that was changed. Fixes #455 2010-11-17 07:01:19 -07:00
Renato Botelho
cfcebf070f Fix typo 2010-11-17 08:32:48 -02:00
jim-p
b450c94e17 Fix typo in comment. 2010-11-16 23:47:56 -05:00
Erik Fonnesbeck
f02f0675cc Ensure this is an array before entering the foreach loop. Fixes #1012 2010-11-16 18:38:44 -07:00
Ermal
aeaa735882 Make the pkg_fetch_recursive code stronger and try also to fetch from freebsd repo when fails to fetch from pfSense one. 2010-11-16 22:59:46 +00:00
Ermal
7b22832377 Avoid exec() and use php calls. 2010-11-16 22:38:49 +00:00
Ermal
1b28121fac Correctly form the url from where to fetch packages if a base is not specified. This unbreaks packages on amd64! Also do no remove a package which is required by other installations. 2010-11-16 22:11:33 +00:00
Ermal
fe81116d43 Correct variable name. 2010-11-16 19:56:03 +00:00
Ermal
fcf92daec2 * Use pkg_info -E pkgname* for testing if a package is installed.
* Do not call eval if we cannot include an .inc file since that will make the whole script fail.
* Keep the log from the start to the end without overwriting. This makes debugging and problem reporting easy and explains what is done during installation.
* Check retrun value of download_with_progress_bar to make it possible catching errors during download.
* Lots of improvements in between

Related to Ticket #950
2010-11-16 19:40:20 +00:00
Ermal
55910da798 Tighten check even more. Ticket #1006. 2010-11-16 16:29:02 +00:00
Ermal
b878ad364a Ticket #1006. Make sure to interpret the response as needed. First check if we got 0 and then check if we have a faultCode(). 2010-11-16 16:21:49 +00:00
Erik Fonnesbeck
e6b960ccff Make sure this isn't searching the referrer using a blank host or IP, which will always match the referrer. 2010-11-15 20:56:47 -07:00
Erik Fonnesbeck
55068970f2 Fix case for testing the referrer check setting. Ticket #1011 2010-11-15 20:35:30 -07:00
Ermal
efe259cfab Remove these anchors they just provide overhead and are not really used much in pfSense. 2010-11-15 20:01:30 +00:00
Ermal
d268d45751 Remove gre helping rules they are not anymore needed. 2010-11-15 19:55:28 +00:00
Scott Ullrich
99b1cc43b3 Disable CSRF checks on the backup page. 2010-11-15 14:16:54 -05:00
Scott Ullrich
0dcdbc8573 Send errors to 2> 2010-11-15 13:50:56 -05:00
Scott Ullrich
64ec1ddf35 Add nocsrf flag 2010-11-14 14:46:35 -05:00
jim-p
364ecdd1ba Fix misnamed form field on CRL import. 2010-11-14 14:29:26 -05:00