summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/system.inc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3560 from doktornotor/patch-5jim-p2017-04-031-1/+1
|\
| * Fix nginx certificate permissions (Bug #6862)doktornotor2017-02-191-1/+1
| |
* | Adds option to skip adding IPv6 entries in /etc/hosts for LANslukehamburg2017-03-091-7/+9
| | | | | | | | | | | | | | | | | | | | If a LAN interface's IPv6 configuration is set to Track, and the tracked interface loses connectivity, it can cause connections to the firewall that were established via IPv6 hostname to fail. This can happen unintentionally when accessing the system by hostname, since by default both IPv4 and IPv6 entries are added to /etc/hosts. This patch + enabling this option prevents those IPv6 records from being created and prevents this from occurring. Set the option in System > Advanced > Networking FILES CHANGED - /etc/inc/system.inc - /usr/local/www/system_advanced_network.php
* | Only start dhcpleases if DHCP server is enabled (Bug #6750)doktornotor2017-02-221-3/+6
|/
* Set ntp gps mode for pgrmf even if no other modes are being set.jskyboo2017-02-021-1/+1
|
* Add to NTP GPS processing of PGRMF sentencejskyboo2017-02-021-0/+3
|
* Code with multiple %s in etcPhil Davis2017-02-011-1/+1
|
* Restart unbound after clearing logs (Bug #6915)doktornotor2017-01-141-0/+5
| | | Handle clearing the individual log as well.
* Redmine #5549 Allow variable number of DNS ServersPhil Davis2017-01-121-7/+7
|
* Simplify logicRenato Botelho2017-01-111-5/+3
|
* Ticket #6712: Create system_hosts_entries()Renato Botelho2017-01-111-24/+21
| | | | This function will return an array all items to be added to /etc/hosts.
* Ticket #6712: Create system_hosts_dhcpd_entries()Renato Botelho2017-01-111-78/+104
| | | | | This function will return an array with dhcpd and dhcpdv6 items to be added to /etc/hosts.
* Ticket #6712: Create system_hosts_override_entries()Renato Botelho2017-01-111-23/+51
| | | | | This function will return an array with dnsmasq or unbound items to be added to /etc/hosts
* Ticket #6712: Create system_hosts_local_entries()Renato Botelho2017-01-111-36/+62
| | | | | | This function will return an array with 127.0.0.1, ::1 and LAN (or first interface with no gateway when LAN is not there) items to be added to /etc/hosts
* Kill dhcpleases after we are sure we can write /etc/hostsRenato Botelho2017-01-111-7/+8
|
* Fix styleRenato Botelho2017-01-111-58/+111
|
* Make sure IP address is v4 before create /etc/hosts entryRenato Botelho2017-01-111-2/+2
|
* Do not write a 'restrict' line to the NTP config if it will be empty. Fixes ↵jim-p2017-01-111-10/+12
| | | | #7110
* Add VMware detection to system_identify_specific_platform(). Ticket #6882jim-p2017-01-071-0/+5
|
* Merge pull request #3315 from plumbeo/accounting-on-disable-rebootRenato Botelho2017-01-041-2/+5
|\
| * Captive portal: rework logging and RADIUS accounting when disabling a zone ↵plumbeo2016-12-291-2/+5
| | | | | | | | | | | | | | | | or rebooting Make captiveportal_radius_stop_all() log the disconnections in the system log and fix it so that it works with the zone id parameter and sends complete RADIUS accounting packets. Since several zones can share the same RADIUS server, send an Accounting-Off packet only when rebooting, not when disabling a zone.
* | Add reroot support to system_reboot_sync() and to the /etc/rc.initial.reboot ↵jim-p2016-12-291-2/+6
|/ | | | menu. Ticket #6045
* Exclude /var/empty from tar extract and make sure its permissions are ↵Renato Botelho2016-12-261-1/+1
| | | | respected when it's created
* Add missing includedoktornotor2016-12-171-0/+3
|
* Restart unbound after clearing logs (Bug #6915)doktornotor2016-12-171-0/+1
|
* Add specific platform detection for PC Engines APU2Brett Keller2016-12-121-0/+3
| | | | | Based detection on $product rather than $hw_model, because $hw_model returns the name of the AMD SoC, which might be used on other boards.
* Add BIND logging to proper facility (Bug #5524)doktornotor2016-12-061-2/+2
| | | Stop the /etc/inc/system.inc patching by dns/pfSense-pkg-bind9 package.
* Silence kenv callsRenato Botelho2016-11-241-3/+3
|
* Remove config files symlinks from /etc to /var/etc. Fixes #5538Renato Botelho2016-11-211-6/+6
|
* Use the ntpd "pool" command for more robust timekeeping. Attempting to ↵jim-p2016-11-111-2/+32
| | | | automatically determine if we are using a pool, and allow it to be set optionally otherwise. Implements #5985
* syslogd, create configured logsocket directoriesPiBa-NL2016-11-021-6/+4
|
* Fix #6828Renato Botelho2016-10-181-28/+13
| | | | | | | | Until 2.3.x pfSense carried a patch that changed the behavior of 'route change' command, making it add the route when it fails to change. On 2.4 this patch was removed and will not be added back. This change adjust PHP code to deal with route add / change and make it work without the patch
* Deprecate nanobsd platform and remove all conditionals that uses itRenato Botelho2016-10-121-11/+1
|
* Remove all calls to conf_mount_r* functionsRenato Botelho2016-10-121-6/+0
|
* Merge pull request #3171 from phroggster/patch-2Renato Botelho2016-10-121-1/+1
|\
| * Fixup ntpd IPv6 restrict clauses.phroggie2016-10-011-1/+1
| | | | | | | | | | | | This should eliminate the following errors from the ntpd log file when using IPv6 or dual-stack networks: "syntax error, unexpected T_Mask, expecting T_EOC"
* | Fix static blackhole routes. Bug was introduced inphroggie2016-09-271-1/+1
|/ | | | 8be135cd114fbc9294ec9dafed2125d0e553956c (February, 2013).
* Merge pull request #3135 from phil-davis/pdlenRenato Botelho2016-09-131-4/+2
|\
| * Fix #6768 IPv6 static mapping on delegated prefixesPhil Davis2016-09-121-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, WAN receives a /48 delegated from the upstream (ISP...), e.g. "2001:470:abcd::" pfSense then uses this as a starting point to calculate the addresses on LAN, OPT1, OPT2 etc where they have been specified asa "track interface WAN". Actually each local interface gets just a /64 taken out of the /48, using the chunk specified by "IPv6 Prefix Id" for that local interface. e.g. if "IPv6 Prefix Id" is set to "a1" on LAN, then the LAN would be: 2001:470:abcd:00a1::/64 Then when we specify a static-mapped address in LAN, or other things that live in LAN, e.g. "::4242" we mean 4242 on from the base LAN address, so "2001:470:abcd:00a1::4242" i.e. we always have a CIDR of 64 when calculating this stuff. We do not want the logic that was in this code that was using the upstream prefix delegation size (like /48). Note: The code in services.inc "worked" because var $ifname was not set, and so $trackifname was blank, $trackcfg was blank, and so the attempted calculation of $pdlen always came out as 64 anyway. That tricked me for a while trying to understand why the use in service.inc worked. system.inc did not work, because it actually claculated $pdlen and got a number like 48 - which actually we do not want here.
* | Merge pull request #2616 from k-paulius/patch-pkg-syslog-v2Renato Botelho2016-09-131-3/+18
|\ \ | |/ |/|
| * Code style changesk-paulius2016-02-171-4/+4
| |
| * Allow packages to request syslogd log socket to be created inside chroot by ↵k-paulius2016-02-101-3/+18
| | | | | | | | | | | | | | | | | | | | | | specifying it in /package/logging/logsocket element. Implements #4898. Example: <package> <logging> <logsocket>/var/appname/var/run/log</logsocket> </logging> </package>
* | Fix up/catch up remote syslog areas. Fixes #6780jim-p2016-09-091-1/+18
| |
* | More pptp bitsjim-p2016-09-091-6/+1
| |
* | Remove some more dangling PPTP bits.jim-p2016-09-091-1/+1
| |
* | Move copyright from ESF to NetgateRenato Botelho2016-09-061-1/+1
| |
* | Merge pull request #3122 from NewEraCracker/patch-11Renato Botelho2016-09-021-0/+6
|\ \
| * | Improve dhcpd and dhcpleases reloadNewEraCracker2016-08-241-0/+6
| | | | | | | | | | | | | | | | | | 1) Avoid running services_dhcpd_configure() more times than needed. 2) Always restart dhcpleases after it's killed during interface recycle. 3) It's not necessary to restart dhcpdv4 when doing changes in ipv6 config.
* | | system_dhcpleases_configure() - Improve pidfile handlingNewEraCracker2016-08-201-2/+3
|/ / | | | | | | | | | | | | 1) Set the pidfile variable in the correct place. pidfile variable is required in both 'if' and 'else' blocks. 2) Ensure pidfile is valid before sending term signal
* | Set HTTP_PROXY to empty as recommended at https://httpoxy.org/#fix-nowRenato Botelho2016-07-181-0/+2
| |
OpenPOWER on IntegriCloud