summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/system.inc
Commit message (Collapse)AuthorAgeFilesLines
* Detect XG-1537Renato Botelho2017-09-261-0/+7
|
* Put the FQDN first in /etc/hosts to make dnsmasq happy when reverse ↵jim-p2017-08-141-3/+4
| | | | resolving hostnames. Make a special exception for localhost. Fixes #7771
* Restructure how unbound zone data is written to fix processing of "redirect" ↵jim-p2017-07-131-19/+36
| | | | | | | zone entries. Fixes #7690 Also corrects some other misc issues for formatting of zone data. While here, add an option, not exposed in the GUI, for users to get the previous behavior of defining short names for hosts.
* Move uniqueid read to a function system_get_uniqueid()Renato Botelho2017-07-051-0/+18
|
* SG-23* serial number is igb0 mac addressRenato Botelho2017-05-231-2/+11
|
* Refine some syslogd restarts, add a way to send it a HUP to reload w/o a ↵jim-p2017-05-151-12/+30
| | | | full restart. Part of ticket #7256
* Merge pull request #3725 from sestary/masterRenato Botelho2017-05-151-3/+6
|\
| * Make the changes suggested by jim-p and changed the way the disable function ↵Robbert Rijkse2017-05-091-3/+6
| | | | | | | | work to ensure the manually added host entries or DHCP reservations still work.
* | Fix APU2 with coreboot v4.x detectiondoktornotor2017-05-061-0/+1
|/ | | See https://forum.pfsense.org/index.php?topic=106444.msg716558#msg716558
* Detect SG-2320/SG-2340 models and set initial config for themRenato Botelho2017-05-021-0/+19
|
* Always add the CN as the first SAN when creating a certificate in the GUI or ↵jim-p2017-04-261-1/+3
| | | | an automatic GUI self-signed certificate. Per RFC 2818, relying on the CN to determine the hostname is deprecated, SANs are required. Chrome 58 started enforcing this requirement. Fixes #7496
* 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.
OpenPOWER on IntegriCloud