Commit Graph

25727 Commits

Author SHA1 Message Date
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
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
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
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
Chris Buechler
41e9efe667 chmod +x hostid 2015-06-18 00:26:40 -05:00
jim-p
e932c35017 Blacklist invalid "from" sources since they can be picked up accidentally and cause rule errors. Fixes #4772 2015-06-17 15:33:24 -04:00
Phil Davis
a7c28e996c Say what is happening when reinstalling package GUI XML
At the confirmation dialog after pressing the "Reinstall XML" button, the text does not distinguish between having pressed "Reinstall the whole package" and "Reinstall the GUI/XML". It would be nice if the text of this confirmation allowed the user to be confident about which button they had just pushed, before confirming the action.
Note: This stuff has no gettext() wrappers - but that can be fixed later, not get mixed up in this.
2015-06-16 12:42:01 -05:00
jim-p
c28ab88c24 Add load_balancer_relay_* to obsolete files. They were removed from the master branch already. 2015-06-16 13:41:11 -04:00
Renato Botelho
c28a785ae9 Merge pull request #1723 from phil-davis/patch-2 2015-06-16 12:40:28 -05:00
Phil Davis
b94559164d Say what is happening when reinstalling package GUI XML
At the confirmation dialog after pressing the "Reinstall XML" button, the text does not distinguish between having pressed "Reinstall the whole package" and "Reinstall the GUI/XML". It would be nice if the text of this confirmation allowed the user to be confident about which button they had just pushed, before confirming the action.
Note: This stuff has no gettext() wrappers - but that can be fixed later, not get mixed up in this.
2015-06-16 22:51:53 +05:45
Phil Davis
84a2e91548 Why is break missing for reinstallxml
I thought that "reinstallxml" should do less than "reinstallpkg" but actually it was getting stuff here, then falling through "reinstalpkg" which did delete_package_xml and then install_pkg, which got the files a 2nd time and...
Maybe that was supposed to happen?
Anyway, I thought I would point this out and someone can either commit this pull request if the "break" should be there, or explain to me why "reinstallxml" is supposed to fall through executing all this code.
2015-06-16 22:40:23 +05:45
jim-p
ab2fd59d63 Encoding in services_unbound_advanced.php 2015-06-16 12:11:57 -04:00
jim-p
a5e950ae27 Encoding in system_advanced_sysctl.php 2015-06-16 12:02:36 -04:00
jim-p
df6a9c6d7c Encoding in interfaces.php 2015-06-16 11:54:41 -04:00
jim-p
e08298127d Encoding in services_unbound.php 2015-06-16 11:45:56 -04:00
jim-p
55f6b38bca Encoding in pkg_mgr_settings.php 2015-06-16 11:42:07 -04:00
jim-p
b29a65a493 Encoding in system_advanced_admin.php 2015-06-16 11:38:09 -04:00
jim-p
f727f25709 Encoding in interfaces_ppps_edit.php 2015-06-16 11:36:14 -04:00
jim-p
05dea4b71f Encoding in diag_packet_capture.php 2015-06-16 11:31:07 -04:00
jim-p
f68e2f9f0f Encoding in interfaces_qinq_edit.php 2015-06-16 11:27:54 -04:00
jim-p
dd5ec20f05 Encoding in services_dnsmasq.php 2015-06-16 11:22:02 -04:00
jim-p
5b8c4101b3 Encoding in vpn_ipsec_settings.php 2015-06-16 11:11:17 -04:00
jim-p
b18d2108db More encoding 2015-06-16 11:10:36 -04:00
jim-p
2debaf5c34 Fix some low-hanging potential security issues. 2015-06-16 10:57:55 -04:00
jim-p
3aef3ad0c0 Be more careful with encoding on pages that use single quotes around HTML attributes 2015-06-16 10:10:58 -04:00
jim-p
1cdfcaf40d Additional encoding for system_advanced_misc.php 2015-06-16 09:24:34 -04:00
jim-p
ee3de7b191 Protect single quotes as well to prevent JS injection, due to the way this page uses single quotes for attributes. 2015-06-16 09:12:22 -04:00
jim-p
034620d62a Encode parameters in system_advanced_firewall.php before displaying back to the user. 2015-06-16 08:57:13 -04:00
Renato Botelho
9fced93c25 Keep a copy of old mtree binary during upgrade and use it to avoid crashing. Fixes #4563 2015-06-16 07:34:26 -05:00
Renato Botelho
8f102b0910 Check also for old FreeBSD release versions 2015-06-16 07:34:24 -05:00
N0YB
7d8dd0b737 Add semicolon
Fix delete Java Script to match valid HTML ID
2015-06-15 12:25:37 -07:00
Ermal LUÇI
86bc5c1a2d Merge pull request #1722 from chapmajs/fix_hughesnet_pd 2015-06-15 18:13:33 +02:00
Jonathan
b8ceb34480 Fixing PD size selection for HughesNet 2015-06-15 10:46:25 -04:00
Ermal LUÇI
ce817bdb57 Remove the GUI for the pc-sysinstaller as well and add it to obsoletee files 2015-06-15 16:46:24 +02:00