Commit Graph

11843 Commits

Author SHA1 Message Date
Ermal
baec2b007f Properly create zones for the CP with the new command arguments and properly invoke ipfw for applying rules and other configuration options. 2013-11-21 21:18:00 +00:00
Renato Botelho
d3b17c9a0b Fix #3331. Set interface subnet as destination when VIP is in the same subnet, otherwise use VIP subnet instead of IP address 2013-11-21 13:57:34 -02:00
Ermal
f7ec7bf9d1 FreeBSD 10 pf does not have a limit for table entries 2013-11-21 13:58:38 +00:00
Ermal Luçi
e6000a9bc6 Merge pull request #857 from Wraul/add_city_network_dyndns
Added support for City Network to Dynamic DNS.
2013-11-21 05:14:13 -08:00
Renato Botelho
23d9f68660 Fix an issue that changes wrong gateway entry when items are hidden 2013-11-21 09:37:02 -02:00
jim-p
33e71f1087 Don't flush interface cache on each call of the function when looping through all gateways. 2013-11-20 15:56:29 -05:00
Renato Botelho
e47914184a Add gettext() to recently added strings 2013-11-18 15:24:31 -02:00
Renato Botelho
3bb23264e1 Add an option to return outbound NAT automatic to nat hosts with description, ticket #2416 2013-11-18 15:09:13 -02:00
Renato Botelho
9bed0fcd6d Add subnet to 0.0.0.0 otherwise it's not added to table, ticket #2416 2013-11-18 10:09:13 -02:00
Renato Botelho
c437485d01 Make sure automatic rules are created even if mode is not set, ticket #2416 2013-11-18 09:56:22 -02:00
Renato Botelho
7997ed4440 Many fixes on privileges, ticket #3216:
- Rename some privileges:
   page-diag-system-activity => page-diagnostics-system-activity
   page-interfacess-groups => page-interfaces-groups
   page-interfacess-lagg => page-interfaces-lagg
   page-interfacess-qinq => page-interfaces-qinq
- Write an upgrade function to replace above privileges by the new name
- 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 edit pages (interfaces_groups, interfaces_lagg,
  interfaces_qinq and services-igmpproxy)
- Fix ID for acptiveportal allowedhostnames and editallowedhostnames
- Fix some wrong matches
2013-11-15 19:21:18 -02:00
Renato Botelho
2d845db7b8 Merge pull request #855 from ExolonDX/branch_01
Tidy up the "Helper Icons"
2013-11-15 10:20:24 -08:00
Mathias Andersson
2206f1b90f Added support for City Network to Dynamic DNS.
City Network is a Swedish web hosting company.
They provide a dynamic DNS service for their customers.
This service uses the dyndns2 protocol.
2013-11-14 22:06:03 +01:00
Renato Botelho
2b41df9c4d Provide a more safe way to avoid pw userdel being interactive because of a crontab existance 2013-11-14 15:54:05 -02:00
Renato Botelho
0f84dee3eb Revert "local_sync_accounts: provides empty STDIN to pw userdel command"
This reverts commit c6b156bfa5.
2013-11-14 15:54:05 -02:00
Renato Botelho
3afcc2380e Split automatic to nat hosts fill into a function to be able to call it from other place, ticket #2416 2013-11-14 12:34:34 -02:00
Colin Fleming
17b8c60a39 Tidy up the "Helper Icons"
The "Helper Icons" at the top right of some service pages at present
produces 30+ HTML errors/warnings, this is due to the table cell being
wrapped in a span statement then in a div statement, table cells can
only be part of a table row then within a table statement.

- remove the table cell definitions from /etc/inc/service-utils.inc
- add the table cell definition from /etc/inc/service-utils.inc to
/usr/local/www/status_services.php and add some logic to determine if
the service is running which will then determine which class statement
to use and pad the icon with a space
- apply the same table cell definition and logic as above to
/usr/local/www/widgets/widgets/services_status.widget.php
2013-11-14 13:44:59 +00:00
Renato Botelho
c39c8b8ffc Remove unused variables and fix automatic nat to alias-address 2013-11-14 10:38:37 -02:00
Renato Botelho
34f9597749 Merge pull request #854 from icyfork/provides_empty_STDIN_to_pw_command
local_sync_accounts: provides empty STDIN to pw userdel command
2013-11-14 02:19:15 -08:00
Renato Botelho
eef01b14df Add hybrid and disabled outbound NAT, fixes #2416:
- Add 2 new outbound NAT modes, hybrid and disabled, manual and advanced
  keep working the same way
- Hybrid mode applies manual rules first, automatic after
- Disabled do no create any outbound NAT rules
- Remove ipsecpassthru config field and rename advancedoutbound to
  outbound
- Save mode on $config['nat']['outbound']['mode'] to simplify the logic
- Modify config.default to reflect changes
- Add code to upgrade config, and change latest_version to 10.3
- Use html to align modes and remove some hacks to align using  
2013-11-13 07:45:09 -02:00
Ky-Anh Huynh
c6b156bfa5 local_sync_accounts: provides empty STDIN to pw userdel command
The /usr/sbin/pw command may wait for user input. For example,
if there is a manual crontab settings for :foobar account, then
when this account is requested to be deleted, the command will
ask if user wants to delete crontab settings for the account.

Because the command waits for user input, the boot process will
hang at the "Synchronizing user settings..." step, unless user
presses any key.

To avoid this problem, we use the /bin/echo command to give
empty input for /usr/bin/pw command. This is an alternative of
typing "no" or "n".

This is a not the best way. Maybe closing STDIN is good. Or
force users to change account settings from webUI.

See also #852 (pull request). Renato Botelho points out that
"pw userdel" will call "crontab -u %user -r" that is interative.
"pw groupdel" will never be interative, though.
2013-11-13 06:29:53 +07:00
Renato Botelho
7facbef711 Merge pull request #850 from phil-davis/master
Handle comma-separated list of remote networks when making vpn_networks table
2013-11-12 09:05:46 -08:00
Renato Botelho
c4421dfa4f Add an option to set no-sync on rules to keep states from being synced via pfsync. Fix #2501 2013-11-12 10:45:29 -02:00
jim-p
6186cdc4be Rework the usage of the shell i/o during stop_packages(), fixes the "Syntax error: bad fd number" for the remaining people who still saw it on shutdown 2013-11-11 16:29:07 -05:00
jim-p
629f07c331 This tag could be present, but empty. Skip processing if the interface has no IP address. 2013-11-11 13:12:01 -05:00
jim-p
63f7282808 If the interface is configured and not enabled, bail. We do not need to change settings for disabled interfaces. Fixes #3313 2013-11-11 13:10:32 -05:00
Phil Davis
62c5794dee Handle comma-separated list of remote networks when making vpn_networks table
If remote_networks for an OpenVPN instance is a list of more than 1 network then none of the networks gets added to the vpn_networks table. The code simply did not address this new comma-separated list feature. Now it does, and the vpn_networks table contains all the remote networks listed.
Related to forum thread: http://forum.pfsense.org/index.php/topic,66776.msg377169.html#msg377169
and bug report #3309 - but from the bug report, there might be some other issue to be addressed also.
2013-11-09 08:03:38 -08:00
Ermal
6d5fcf571b Unset this variable used in the loop to avoid having wrong information 2013-11-07 19:35:43 +00:00
Ermal
8194f2884b Do not forget the trace in the pf.conf that something went wrong during rules generation to be able to at least detect what is going on 2013-11-07 19:26:51 +00:00
Jean Cyr
70da417266 Give clients the IPV6 address of the DNS server
For IPV6 WAN tracking interfaces, dhcpdv6 does not provide an IPV6
address for the DNS server... fix that.
2013-11-06 21:15:07 -05:00
Renato Botelho
23b5b16ac6 Revert "Add conf_mount_rw calls on functions that changes user/groups. It fixes #3294"
This reverts commit b1e5a286bb.
2013-11-02 08:48:05 -02:00
jim-p
c5d4d97bab 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:43:40 -04:00
Renato Botelho
add913b143 Teach system_timezone_configure() to deal with symlinks to avoid having timezone misconfigured. This fixes #3293 2013-11-01 12:23:20 -02:00
Renato Botelho
b1e5a286bb Add conf_mount_rw calls on functions that changes user/groups. It fixes #3294 2013-11-01 10:55:49 -02:00
jim-p
9ed529906c Unset value should be '' and not 'none' 2013-10-31 15:03:04 -04:00
jim-p
edba198270 Change OpenVPN Compression settings to cover the full range of allowed settings on OpenVPN (unset, off, on, adaptive) rather than a simple off/on switch that either doesn't set the value or enables it with adaptive (OpenVPN's default). 2013-10-31 14:50:06 -04:00
jim-p
97d5b59b41 Add an Authentication Digest Algorithm drop-down to OpenVPN server/client (SHA1 is the default since that is OpenVPN's default) 2013-10-30 15:47:59 -04:00
Renato Botelho
204bec2835 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 6721d6d044.
2013-10-29 07:35:41 -02:00
Renato Botelho
6721d6d044 Define dynamic gateway for GRE interfaces and do not user to define IP address to the interface. Fixes #3280 2013-10-29 07:06:05 -02:00
Renato Botelho
1dc0e7f4f1 Make return_gateways_array() return all disabled gateways when $disabled is true, it should fix #3291 2013-10-28 14:20:26 -02:00
Renato Botelho
20623f576e Fix an attempt to read unset variable $rtent 2013-10-28 10:35:45 -02:00
jim-p
cbe12b8de3 Add source address selection to syslog settings, so it can work more effectively over a VPN. Fixes #355 2013-10-24 16:33:56 -04:00
Renato Botelho
b8250344f5 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:07:12 -02:00
Renato Botelho
a4e4b5609c Make sure pf rule labels never have more than 63 chars. It should fix #3208 2013-10-23 11:58:56 -02:00
Renato Botelho
a3e232db7d Merge pull request #813 from phil-davis/master
Fix logic in detecting if OpenVPN resync needed, fixes #3255
2013-10-23 04:52:31 -07:00
Ermal
10d9290f5b Prepend ipsec_ here as well for better protection 2013-10-22 18:49:34 +00:00
Ermal
7b95ffdd72 Use the pid of the process for the tmp file also prepend ovpn_ here to make it clear 2013-10-22 18:46:12 +00:00
Ermal
45758be466 Correct even here the routes from cisco-avpair processing 2013-10-22 18:44:41 +00:00
Ermal
eb7d43c0f5 Use the pid of the process for the tmp file 2013-10-22 18:42:52 +00:00
jim-p
9f293b1c04 Fix cisco-avpair processing, and route processing from avpair replies. 2013-10-22 11:45:36 -04:00