Commit Graph

11091 Commits

Author SHA1 Message Date
Chris Buechler
f8d1587b6e Merge pull request #882 from derelict-pf/cp-nohttpsforwards
Add checkbox and logic to disable forwarding HTTPS/SSL (Port 443)
2014-01-09 00:18:49 -08:00
Phil Davis
7c2ea0cc22 Update reserved_keywords checks to match firewall_aliases_edit
firewall_aliases_import should have the same checks for reserved names as firewall_aliases_edit
This code should really be in a function in a common include file, but which one is the appropriate one?
For now I made the checks the same.
2014-01-07 07:41:04 -02:00
Phil Davis
44b72c67ec Fix display of CIDR/Update Freq in Alias Edit
Fixes #3376. I have no idea what the "^" characters were meant to do, but removing them makes the CIDR/Update Freq value be displayed correctly when editing. Will there be some other side-effect from removing the "^"?
2013-12-30 09:23:43 +00:00
phildd
d564ed2426 Validate IP address ranges correctly on Alias Bulk Import
The code was there to attempt to validate and implement IP address range lines in Alias Bulk Import e.g.
10.20.0.0-10.21.22.0
should produce a bunch of smaller ranges with appropriate CIDRs.
This fixes the code so IP address ranges actually make it through into the resulting Alias.
2013-12-30 09:23:17 +00:00
Ermal
57b02731c1 Remove not needed code 2013-12-27 20:50:01 +00:00
Ermal
53555bf2f7 Make sense of interface mtu handling code. No need to do unneeded operations. This fixes slow boot times and proper handling of mtu for vlans though some work or better model is needed for other interface types. 2013-12-27 20:37:34 +00:00
Renato Botelho
1a4ef44e5c Delete static route when monitor IP is removed, also save monitor IP even when it's disabled 2013-12-27 12:58:19 -02:00
Renato Botelho
e2edc30daa When WANTIME is empty, there is nothing to do here 2013-12-24 12:16:56 -02:00
Renato Botelho
811ecea47e test only does integer comparison, use bc to compare float 2013-12-24 12:16:48 -02:00
Renato Botelho
8f105c8a9e Save status even if no script is executed 2013-12-24 12:16:45 -02:00
Renato Botelho
9886478019 On first run REVIOUSSTATUS doesn't exist, so it cannot be UP or DOWN, invert the logic to fix this. While I'm here, check if file exists before cat it 2013-12-24 12:16:40 -02:00
Renato Botelho
56301bed30 Fix DHCP lease time display, strftime already convert it to local timezone, so we no need to calc offset 2013-12-23 17:28:08 -02:00
Renato Botelho
f2aa828754 Remove 'deny unknown clients' option from DHCPv6 since it's not supported, it fixes #3364 2013-12-23 14:40:58 -02:00
phildd
e20a0af708 Avoid dashboard divide by zero errors 2013-12-22 07:37:37 -06:00
derelict-pf
e98daec596 Add checkbox and logic to disable forwarding HTTPS/SSL (Port 443)
connections to the captive portal if HTTPS logins is enabled.
2013-12-20 17:25:02 -08:00
jim-p
c1d5f0ef4a Fix saving of voucher sync settings. 2013-12-16 15:11:09 -05:00
Renato Botelho
d8b011b8e6 Fix vpn_pppoe_get_id and stop duplicating pppoeid for multiple servers, it fixes #2286 2013-12-09 09:22:13 -02:00
Renato Botelho
3c263d4541 Merge pull request #860 from iamzam/RELENG_2_1
Allow setting a default scale type preference for the traffic graphs wid...
2013-12-07 12:49:21 -08:00
jim-p
a6d96f9b80 Also account for a widget being null/not defined, and not just closed/open. 2013-12-05 15:05:24 -05:00
dwayne voelker
8ff8325599 added missing quotes
thx rbgarga
2013-12-05 10:24:36 -05:00
dwayne voelker
943d52cf12 Allow setting a default scale type preference for the traffic graphs widget
I originally submitted this at https://redmine.pfsense.org/issues/2994
but it seems that is not used for commits now so I am adding it here.
It works great on my box, and I can't see these changes causing any
issues on other types.

I like to have Autoscale (follow) set for the traffic graphs widget and
hate having to click on Autoscale (up) to change it to follow every
time I enter the dashboard page.

This preference is written to the traffic graph widget section in
config.xml
2013-12-05 00:19:31 -05:00
Renato Botelho
21d74c8e79 Prevent network or broadcast address to be set on interface (console, GUI and wizard). It should fix #3196 2013-12-04 18:21:30 -02:00
Renato Botelho
f70a140fe1 Fix #3350. Do not destroy an interface when it's being disabled 2013-12-03 12:37:36 -02:00
Renato Botelho
4e4e35dd93 One more typo on Alternative Names fill, that was setting type field with $value 2013-11-29 10:07:32 -02:00
Renato Botelho
30c15c58a1 Fix a (probably) copy/paste issue that is making all Alternative Names disapear when an input error is detected 2013-11-29 09:57:21 -02:00
jim-p
48f1333bfd Allow an "empty" CRL to be exported, since this is still a valid action. 2013-11-25 12:40:07 -05:00
Renato Botelho
1ad6ad279f Fix an issue that changes wrong gateway entry when items are hidden 2013-11-21 09:36:50 -02:00
Renato Botelho
6b1f9a9941 Many fixes on privileges, ticket #3216:
- Remove unused privilege page-diagnostics-logs-wireless
- Remove duplicated privileges
- Fix limiter-info, pf-info and system-pftop that were using wrong name
- Add privs for services-igmpproxy-edit
- Fix ID for acptiveportal allowedhostnames and editallowedhostnames
- Fix some wrong matches
2013-11-15 19:30:31 -02:00
Phil Davis
96a60eb429 system_camanager init $input_errors so array_push works
Fixes input validation when creating an internal certificate. Reported in forum http://forum.pfsense.org/index.php/topic,68849.0.html
2013-11-07 18:34:01 +00:00
Robert Nelson
84eaea96c6 Simplify the code.
No need to worry about the second column, we only need to pad the first one.
2013-11-07 09:52:28 -08:00
Robert Nelson
b24622e2d1 Rewrite the display_host_results() function to use spaces instead of
tabs. It does a much better job of aligning the fields in each column
and works in all the browsers, particularly chrome which doesn't
support the tab character.

It still isn't perfect due to the javascript alert() function's
use of a proportional font.
2013-11-07 09:52:28 -08:00
Renato Botelho
90caf54ebf Call conf_mount_rw before delete user, a better fix for #3294 2013-11-02 08:48:56 -02:00
jim-p
19b1021612 Prevent a Fall Back Pool from being selected when the DNS protocol is in use. If one is present in the config, ignore it. Fixes #3300 2013-11-01 10:45:21 -04:00
Renato Botelho
34e178135b Revert "Define dynamic gateway for GRE interfaces and do not user to define IP address to the interface. Fixes #3280"
Another solution will be implemented

This reverts commit bb6291e020.
2013-10-29 07:35:06 -02:00
Renato Botelho
bb6291e020 Define dynamic gateway for GRE interfaces and do not user to define IP address to the interface. Fixes #3280 2013-10-29 07:05:44 -02:00
Chris Buechler
d3ad6cf012 fix typo 2013-10-28 19:20:54 -05:00
Renato Botelho
f44ac2e973 Use a more accurate error message, fixes #3282 2013-10-25 10:41:28 -02:00
jim-p
53c5407e64 Add source address selection to syslog settings, so it can work more effectively over a VPN. Fixes #355 2013-10-24 16:34:38 -04:00
Renato Botelho
785158c6c4 Fix #3235
. diag_nanobsd.php:
 . Since conf_mount_ro() is always being called, always call
   conf_mount_rw to keep refcount correct
 . Do not show refcount_read() return when it's -1
. config.lib.inc
 . Increment and decrement refcount even if nanobsd_force_rw is set.
   This is necessary to avoid partition being mounted as RO when
   nanobsd_force_rw is disabled and any process requested it to be RW
2013-10-24 18:01:52 -02:00
jim-p
aad5eef2ab Make the RADIUS settings respect the description of the timeout field. If the timeout value is left blank, use 5 seconds, don't print an error. 2013-10-22 10:53:24 -04:00
Renato Botelho
f144493c68 Make it more explicit that 'update freq.' unit is days 2013-10-22 12:42:30 -02:00
Renato Botelho
dd8e414e06 Remove unused variable 2013-10-22 12:40:51 -02:00
Renato Botelho
a8521a6379 Fix priv name 2013-10-22 11:29:05 -02:00
jim-p
63a1e1ee3f Optimize DHCPv4 lease display online status for static leases. Do not re-parse complete ARP table for each lease, as it can be slow with large ARP tables. 2013-10-22 08:58:17 -04:00
Renato Botelho
5352362425 Fix #3283, use jQuery to change attributes based on id 2013-10-21 18:09:04 -02:00
Renato Botelho
521504d1c5 Set id for select elements created dynamicaly created 2013-10-21 18:03:03 -02:00
Renato Botelho
de3045982b Limit CIDR choices for IPv4 on GRE interface, fixes #3277 2013-10-21 12:02:53 -02:00
Renato Botelho
ea838318c0 Fix #3273
- When you disable a interface, it destroys vlan interface from system.
Do not report error when interface doesn't exist.
- While I'm here, use pfSense_interface_destroy() instead of ifconfig
2013-10-18 17:43:01 -03:00
Renato Botelho
6666ef4875 Actually there is no reason to set a variable just to use once 2013-10-18 11:38:18 -03:00
Renato Botelho
2db5f9c23c Fix #3242 and some code cleanup:
- Only explode '/' and set address_subnet when address is a subnet, it
  fixes issue reported at #3242
- While I'm here, do some cleanup on the way addresses are treated
  - Remove unecessary variable $tracker, we already have $counter set
    with the same value
  - Use if:endif and while:endwhile where there is html block inside the
    block
  - Use more meaning names for variables instead of item, item2, item3
    and item4
  - Use while($counter <= $count()) instead of using foreach referencing
    array using $counter inside
2013-10-18 11:31:05 -03:00