Commit Graph

25758 Commits

Author SHA1 Message Date
jim-p
d6a94eda00 Encode ca/cert descr in vpn_ipsec_phase1.php 2015-07-01 11:15:31 -04:00
jim-p
a14571438d Encode ca/cert descr in system_authservers.php 2015-07-01 11:14:37 -04:00
jim-p
11df032059 Encode ca/cert descr in system_usermanager.php 2015-07-01 11:12:13 -04:00
jim-p
0d45890317 Encode cert/ca descr in system_advanced_admin.php 2015-07-01 11:11:22 -04:00
jim-p
e67c70a3b3 Encode cert/ca descr in services_captiveportal.php 2015-07-01 11:10:06 -04:00
jim-p
636dfa9528 Encode ca/cert info in openvpn_wizard.inc 2015-07-01 11:07:02 -04:00
Renato Botelho
3d3e30b3a5 Modify pkg_mgr.php to deal with pkg 2015-07-01 11:29:13 -03:00
Renato Botelho
29d84dd47e Fix install_package calls and check for failures 2015-07-01 10:58:57 -03:00
Renato Botelho
5e51b5b9be Simplify logic and use correct calls for install_package 2015-07-01 10:58:27 -03:00
Renato Botelho
fad3ad5973 Fix install_package() return for failure 2015-07-01 10:57:26 -03:00
Renato Botelho
6a3380dd99 Remove old and unnecessary code 2015-07-01 10:22:57 -03:00
Renato Botelho
b27ac7863d Stop using undefined variable and create a single package debug file 2015-07-01 10:20:05 -03:00
Renato Botelho
9b1aa8d9a7 Improve debug messages 2015-07-01 10:19:15 -03:00
Renato Botelho
666c49ced7 Fix call to undefined function read_pkg_config 2015-07-01 10:18:46 -03:00
Renato Botelho
0d579b5985 Only try to remove pkg if it's installed, otherwise just cleanup xml part 2015-07-01 10:18:28 -03:00
Renato Botelho
65c94077e4 Implement get_pkg_info() 2015-07-01 10:17:55 -03:00
Renato Botelho
e138258955 Make pkg_delete() more verbose 2015-07-01 10:17:03 -03:00
Renato Botelho
e7553e1bab Remove packages from cache after install, also add debug messages 2015-07-01 10:16:26 -03:00
Renato Botelho
26994952a4 Mute call to 'pkg info -e' used to check if pkg is installed 2015-07-01 10:15:29 -03:00
Renato Botelho
6fd37d0479 Re-implement pkg_call() using proc_open() and stream_select() and also implement pkg_exec() 2015-07-01 10:14:40 -03:00
Renato Botelho
1e8644ca5b pfsense-utils.inc is being required, there is no chance of update_status() and update_output_window() don't exist 2015-07-01 10:09:30 -03:00
Renato Botelho
0e71518672 Make rc.packages deal with fcgicli call 2015-06-30 12:40:41 -03:00
Renato Botelho
f4f884bcb0 Merge pull request #1732 from phil-davis/traffic-graphs-widget 2015-06-29 07:31:33 -03:00
jim-p
a2cbbb7475 Use interface-automatic for Unbound when the interfaces list is empty (same as All) otherwise it breaks with a default CARP config. 2015-06-26 09:45:12 -04:00
Phil Davis
f3ec49e148 Only process Traffic Graph object if it is open
The Traffic Graphs widget puts a graph object for every interface into
the HTML of the widget. Underneath the graph object for every interface
makes the call to graph.php to get data for the graph, and the refresh
interval also keeps happening, which keeps gathering the data every
refresh interval for every interface.
This wastes a lot of CPU back on the pfSense box gathering data
repeatedly if the system has a lot of interfaces and only has the
Traffic Graph enabled for 1 or a few of them. e.g. on my poor little
Alix at home I had setup 6 VLANs to test some stuff, so I had WAN, LAN,
OPT1 and 6 tagged VLANS - 9 interfaces. When I enable the Traffic Graphs
widget on the dashboard, the Alix CPU is driven 100% trying to keep up
with gathering data for 9 interfaces every 10 seconds, even though I
only have 1 graph actually opened!
I couldn't see a way to enable/disable the graph.php object from
executing. So this change puts the object in and out of the HTML:
a) At first display the graph.php object HTML is only put in the
relevant "div" if the graph is actually set to be shown in the config.
b) When a graph is opened by the user, the Java Script puts the
necessary graph.php object HTML into the div. The graph data then starts
being requested...
c) When a graph is minimised by the user, the Java Script removes the
graph.php object HTML from the div. The actions of graph.php stop
happening.
I can see the difference by just watching "top" from the command line on
a low-power system and open/minimizing the graphs on the dashboard.
If there is a better way to enable/disable an object like this I am
happy to learn about it.
2015-06-26 16:40:06 +05:45
Renato Botelho
608f682881 Merge pull request #1717 from phil-davis/traffic-graph-description 2015-06-25 10:22:02 -03:00
Renato Botelho
72e2a4283a Merge pull request #1725 from phil-davis/gateways-widget 2015-06-25 09:39:11 -03:00
Renato Botelho
03e4bd0c14 Merge pull request #1730 from phil-davis/patch-2 2015-06-25 08:48:53 -03:00
Renato Botelho
7d6b8b9bee Merge pull request #1729 from phil-davis/widget-iform 2015-06-25 08:47:56 -03:00
Renato Botelho
aa676b7549 Merge pull request #1719 from N0YB/XHTML_Compliance_Diagnostics_Tables 2015-06-25 08:29:54 -03:00
Phil Davis
90ad3a76ed Display any advanced DHCP server settings
when the page is first displayed.
This has annoyed me a few times and it annoyed me again just now. I had some settings in one of the advanced boxes that were no longer wanted, but when the services_dhcp page is shown the contents of advanced settings are not shown to the user - the user has to click on each advanced button to see if there are any settings already there.
This change displays the settings automatically, if there is something already specified. It works the same way as the Firewall Rules advanced boxes.
2015-06-24 22:45:40 +05:45
Matt Smith
47b09af7b0 Add D1540-XG. 2015-06-23 14:32:07 -05:00
Renato Botelho
ba8c6e376f Introduce Netgate RCC-DFF to the list of known platforms 2015-06-23 15:36:41 -03:00
Renato Botelho
96072f52f6 rereadall is not enough here, restore reload call to make sure everything works. Ticket #4785 2015-06-23 14:31:37 -03:00
Renato Botelho
9edeadc593 Replace ipsec rereadsecrets + reload by single rereadall, that will re-read also cert changes. Ticket #4785 2015-06-23 14:15:42 -03:00
Renato Botelho
dbd43cc24d Instead of sending USR1, just call ipsec reload. And before it, call ipsec rereadsecrets to make sure new secretes are updated. It should fix #4785 2015-06-23 14:12:29 -03:00
Renato Botelho
d30038e079 Partially revert 019ee2bc8c, this workaround is not necessary. Real fix will be committed after this 2015-06-23 14:11:37 -03:00
Renato Botelho
019ee2bc8c Add a workaround for ticket #4785:
There was a regression on strongswan between 5.3.0 and 5.3.2 as reported
at [1]. To workaround this issue, add an extra line on ipsec.secrets
with right fqdn.
2015-06-23 10:22:01 -03:00
Phil Davis
9a3ec939f9 Standardize widget iform and submit names
The log and picture widgets were both using "iforma" and "submita".
Actually it did not break anything because it was only the form name
repeated, not id. And nothing was using these names.
Traffic Graphs widget was using just "iform". That is a bit dangerous
for the future. I got tricked when cut-pasting some code to make some
settings options for the Gateways widget. I kept "iform" and then
wondered for a while why my Traffic Graphs widget show-hide settings
would not save. There was traffic graph JS that referred to just "iform"
and that started modifying the "iform" in my new Gateways widget code.
Rather than having names "iforma", "iformb"... "submita", "submitb"...
it seems much less risk of accidental duplication if these are named
like:
name_of_widget_iform
name_of_widget_submit

I don't think there is any user-visible bug in 2.2.* - so this
standardization could just go into 2.3
2015-06-23 13:13:07 +05:45
Chris Buechler
cfc6fd8d04 Merge pull request #1728 from devnullity/patch-1 2015-06-23 01:45:56 -05:00
Phil Davis
6538d33af8 GW widget input form name-id needs to be unique
among all widget forms.
Traffic Graphs widget already uses the vanilla name "iform". Reusing that name causes Traffic Graphs widget graph display state (show/hide) not to be saved if GW widget was also displayed on the dashboard.
This fixes it.
2015-06-23 11:38:53 +05:45
Chris Buechler
9a8a5e6a66 Don't delete /var/tmp/, that was originally done to clear session data at boot, but no longer applicable as session data is no longer in /var/tmp/. Credit to 'aa' on opnsense forum. 2015-06-22 21:31:04 -05:00
Chris Buechler
d812e83efb Use $myid in ipsec.secrets. Ticket #4785
Conflicts:
	etc/inc/vpn.inc
2015-06-22 19:43:56 -05:00
Phil Davis
be253f60af Add DNS host override descriptions
since we can sometimes provide a useful description from that config
data also.
Fill the $iplookup array with host or FQDN data if description is blank
or host or FQDN was requested. Then we can use $iplookup in all cases
where we have local data. It simplifies some logic a bit.
2015-06-22 13:05:35 +05:45
Ben Cook
5a147eaf13 Fix var name typo in shaper.inc
Fix typo so get_bandwidthtype_scale can do more than default to "1".
2015-06-21 19:49:21 -04:00
Chris Buechler
62102a8b1a Specify $myid rather than %any here, otherwise user manager and mobile PSKs won't match. Ticket #4781
Conflicts:
	etc/inc/vpn.inc
2015-06-21 16:01:44 -05:00
Phil Davis
3d0391f1d8 Display monitor IP on Gateways widget
This change adds a setting for the Gateways dashboard widget so the user
can choose to display the Gateway IP, Monitor IP or both.
If "both" is chosen and the Gateway IP is the Monitor IP, then only the
Gateway IP is shown - i.e. the same IP address is not repeated on the
widget display.
If "both" is chosen and the Monitor IP is different to the Gateway IP
then the Monitor IP is shown in () brackets after the Gateway IP.
If "Monitor IP" is chosen and there is no special Monitor IP defined,
then the Gateway IP is displayed (which is also the Monitor IP).
If "Gateway IP" is chosen then the widget behaves as it does now.
"Gateway IP" is the default.
I find this handy because the Gateways widget reports RTT (latency) and
loss figures that are actually for pings to the Monitor IP. So it seems
useful to be able to display the Monitor IP in the widget.
2015-06-20 00:00:15 +05:45
Ermal LUÇI
3378289af3 Ticket #4746 Correctly set global variables to be used by hostnames cod epaths 2015-06-19 17:35:31 +02:00
Renato Botelho
320ed23cef Merge pull request #1724 from phil-davis/patch-3 2015-06-19 08:51:05 -03:00
jim-p
55a1435e45 Add a GUI field to increase the pf frag entries limit. Fixes ticket #4775 2015-06-18 09:33:36 -04:00