summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/services.inc
Commit message (Collapse)AuthorAgeFilesLines
* Fix incorrect function name/typo. Ticket #7719jim-p2017-09-141-2/+2
| | | | (cherry picked from commit 48c4a0ea0958c0820f6caab2bf5182967114ac58)
* Fix #7719Renato Botelho2017-09-111-2/+12
| | | | | | | When Dynamic DNS entry uses a gateway group as interface, return_gateway_groups_array() will be called and it returns real interface instead of friendly name, as expected. Take both friendly and real interface name into consideration.
* If the user chose to have DDNS Hostnames forced, respect that in the backend ↵jim-p2017-08-211-0/+4
| | | | code for static map IPv6 hosts. Fixes #7324
* Some systems - only one that I am aware of, complain that unbound is ↵marjohn562017-08-111-0/+18
| | | | | | | | | | | | | | starting before dchp6 has completed leading to problems, this occurs only on boot. Further examination did indeed show that the problem is caused by unbound starting before the dhcp6c - RTSOLD - rc.newwanipv6 have completed, making sure that these have all run before unbound is allowed to start corrects the problem. In order to fix this I have added a file creation of a file in tmp in rc.newwanipv6, this is the final function when the system is booting and ONLY when the system is booting. In interfaces.inc I have added an unlink_if_exists () of this file, this is a "just in case" catch, should the file have been left behind due to some unforeseen event. The real work is done in services.inc, a section of code has been added that can cause up-to a ten second delay before allowing unbound to start. This is achieved by waiting for the file created by rc.newwanipv6 to exist, once it does exist then the file is deleted, the sleep loop breaks and unbound is allowed to start. If the file does not exist after 10 seconds then the sleep loop exits and unbound can start. Checks are made for the fact that WAN is using Ipv6 and dhcp6,
* Use an alternate method to stop unbound and fix #7326jim-p2017-07-141-6/+19
|
* Merge pull request #3771 from PiBa-NL/20170701-cron-fixRenato Botelho2017-07-131-1/+1
|\
| * cron, fix job removal by index splice and write valid schedules for ramdrive ↵PiBa-NL2017-07-011-1/+1
| | | | | | | | backups
* | Several complaints of unbound problems after commiting, so back this out. ↵jim-p2017-07-061-22/+6
| | | | | | | | | | | | Revert "Change the way unbound is stopped when the process is being restarted, to give the old process enough time to exit cleanly. Fixes #7326" This reverts commit 38d110824c87ff60c6289c0432d55009586ceee4.
* | Change the way unbound is stopped when the process is being restarted, to ↵jim-p2017-06-291-6/+22
| | | | | | | | give the old process enough time to exit cleanly. Fixes #7326
* | Set a value for this variable in each case, so a previous value isn't ↵jim-p2017-06-291-0/+1
|/ | | | re-used in a loop.
* Merge branch 'master' of https://github.com/pfsense/pfsense intofrank2017-04-211-2/+2
|\ | | | | | | | | dyndns_dreamhost
| * Merge pull request #3549 from xygrec/patch-dyndns-hoverRenato Botelho2017-04-211-2/+2
| |\
| | * Update services.incxygrec2017-04-201-2/+2
| | |
| | * Update services.incxygrec2017-02-161-2/+2
| | |
* | | Merge branch 'master' of https://github.com/pfsense/pfsense intofrank2017-04-041-1/+9
|\ \ \ | |/ / | | | | | | | | | dyndns_dreamhost
| * | Variable syntax correction. Fixes #7446.derelict-pf2017-04-031-1/+1
| | |
| * | Add separate bindip for usepublicip case. Fixes #7446.derelict-pf2017-04-031-1/+3
| | |
| * | Add local directive to nsupdate file. Fixes #7446.derelict-pf2017-04-031-0/+1
| | |
| * | cron, dont write_config() when nothing changed.PiBa-NL2017-03-271-0/+2
| | |
| * | Use the same cache filename pattern for RFC2136 IPv6 items as used by dyndnsRenato Botelho2017-03-021-1/+4
| |/
* | Added Dreamhost and Dreamhost V6 to list of DYNDNS services.frank2017-02-231-2/+2
|/
* Code with multiple %s in etcPhil Davis2017-02-011-1/+1
|
* Add a parameter to install_cron_job to stop it from performing its own ↵jim-p2017-01-201-5/+12
| | | | | | write_config. Adjust base system calls to match. Ticket #7146 Packages may still need the old behavior but need tested individually. Once all function calls are confirmed to work without the write, the write_config parameter and call can be removed from this function for good.
* Fix #6153Renato Botelho2017-01-121-0/+4
| | | | | | Initialize cached IP and Time on loop for RFC2136 items, without this the items used on last loop iteration will be used again and second item on the same interface will not be updated
* RAM Disk ManagementNOYB2017-01-081-33/+0
| | | | | | | | | | | | | | | 1) Treat the RAM disk more like a permanent storage device with content managed/restored by the system and made available at boot up, before needed by any services. a) Handle saving and restoring RAM disk content at reboot/shutdown/boot centrally in more of a system manged fashion. b) If it's in the RAM disk store it gets restored early in the pfSense startup so it's available for whatever needs to use it. c) Services utilizing RAM disk don't need to be aware that their content is on a RAM disk, and handling content restore individually. 2) Has the benefit of eliminating some issues with the previous code as well. Such as... a) Restoring RRD multiple times during boot, potentially at least 3 times, by rc.newwanip, rc.newwanipv6, and rc.boot. Some even overlapping. b) Not removing the backups if/when not being utilized. Such as on a full install with the RAM disk option not enabled. c) Eliminate some duplicate code. 3) Looking forward. a) The more centrally system managed approach may crack the door open to making it easier to include some of the logs in the RAM disk store. As well as anything else that may be useful/desirable to retain in the RAM disk across reboots.
* Don't allow SNMP hostres module to be selected or used with VMware VMs that ↵jim-p2017-01-071-1/+2
| | | | have a CD/DVD Drive device. Fixes #6882
* Handle the RA Search Domain List when writing out the RADVD config. Fixes #7081jim-p2017-01-051-2/+14
|
* Merge pull request #3132 from WorldTech-Solutions/masterRenato Botelho2017-01-041-0/+1
|\
| * Added support for CloudFlares Proxy.CarlGill2016-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Included a checkbox to enable and disable this feature when CloudeFlare type is selected. Included proxied variable in the update script as well. Defaults to false, as the is the current functionality Added help text Updated Last tested date Hope this helps other people. I use both dynDNS and the Proxy service. And by default without this feature, the proxy gets disabled. This is a huge problem, as I have all traffic blocked except for CloudFlare. And because I have certain other security features enabled, when the Proxy goes disabled, The Site goes down hard to end users. With this feature, I can ensure the proxy stays enabled.
* | Break some long lines, no functional changesRenato Botelho2017-01-031-27/+70
| |
* | Rework logic and reduce indent levels. No functional changesRenato Botelho2017-01-031-141/+148
| |
* | Fix #6357: Validate if RFC2136 dyndns updates succeededRenato Botelho2017-01-031-10/+25
| |
* | Merge pull request #3307 from blkeller/ignore-client-uidsRenato Botelho2016-12-271-0/+5
|\ \
| * | Add new "Ignore client identifiers" DHCP featureBrett Keller2016-12-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Exposes the underlying dhcpd configuration option "ignore-client-uids" in the pfSense "Services / DHCP Server" GUI by adding an "Ignore client identifiers" checkbox. As of ISC dhcpd version 4.3.0+, there is a new configuration statement available, "ignore-client-uids". According to the ISC's documentation, "If the 'ignore-client-uids' statement is present and has a value of 'true' or 'on', the UID for clients will not be recorded." While this behavior does not strictly adhere to the DHCP specification, it can be very useful in environments where devices on the network dual boot or PXE boot. Normally, if the network stacks in a single device's different operating systems (including PXE firmware) make DHCP requests with differing client identifiers, the server will treat each request with a unique identifier as having come from a unique client, even when they come from the same device. Thus, different operating systems on the same device and NIC might hold different leases with different IP addresses. Once activated, the "ignore-client-uids" option tells the DHCP server not to record client identifiers in new DHCP leases, which forces the server to fall back on hardware (MAC) addresses to uniquely identify clients. Now different operating systems on the same device and NIC will hold the same lease (based on MAC address), which should keep a device's IP address consistent regardless of its currently running operating system. Same as with most other general and pool-specific DHCP server options in pfSense, note that turning on this option only affects new leases. Any leases that existed prior to enabling this option will still contain their respective client identifiers. Manually deleting older leases or flushing the entire lease table can expedite a full migration to the new server behavior, if desired.
* | | Fix #3560 correctly handle disabled static routesPhil Davis2016-12-271-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) util.inc - add parameter to get_staticroutes() so the caller can choose to see all static routes or only the ones that are currently enabled. 2) filter.inc - just process enabled static routes when making direct networks list, tonathosts etc. 3) services.inc - only include enabled static routes when making confogs for DHCP(6) Relay. 4) unbound.inc - only include enable static routes in unbound_acls_config 5) rc.newroutedns - only trigger if there is an enabled static route. Note: GUI validation has been left as-is. e.g. in system_gateways we don not allow to delete a gateway if there is a disabled static route using it... If people want to delete "higher level" stuff, then they need to first delete the disabled static route(s). Otherwise it will get rather "risky" having disabled static routes in the config that refer to gateways that no longer exist, or have a subnet range that now matches a local interafce or...
* | | Save the igmpproxy configuration in /var/etc and not on /tmp.Luiz Otavio O Souza2016-12-231-3/+3
|/ /
* | Populate the HTTP_PROXY_AUTH env var. Ticket #6949jim-p2016-12-071-0/+4
| |
* | Fix indentjim-p2016-12-021-1/+1
| |
* | Merge pull request #3145 from skrude61/masterjim-p2016-12-021-7/+17
|\ \
| * | Allow snmpd to bind to multiple interfaces.skrude612016-09-201-7/+17
| | |
* | | Create a dummy /etc/printcap when starting bsnmpd so it it will not log ↵jim-p2016-12-021-0/+5
| | | | | | | | | | | | errors. Fixes #6838
* | | Removed TODO commentRoss Williams2016-11-301-1/+0
| | |
* | | Put DDNS hostname config in the wrong placeRoss Williams2016-11-291-6/+4
| | | | | | | | | | | | It is relevant to the interface, not just the per-static-mapping DDNS config.
* | | Implement ddns-hostname option emission for static hosts in services.inc.Ross Williams2016-11-291-0/+6
| | |
* | | - added support for duiadns.net ipv4 and ipv6Ionut2016-11-251-2/+2
| | |
* | | Merge pull request #3223 from filnko/patch-1Renato Botelho2016-11-251-2/+2
|\ \ \
| * | | add All-Inkl to services.classChristoph Filnkößl2016-11-121-2/+2
| | | |
* | | | Remove config files symlinks from /etc to /var/etc. Fixes #5538Renato Botelho2016-11-211-1/+1
| | | |
* | | | Revert "Apply the fix for ticket #6589 also into dhcpdv6 config"Renato Botelho2016-11-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Reverted after upgrade dhcpd server to 4.3.5 This reverts commit 20350989db5d66ffb827beaed5ef5738cd62fc9d.
* | | | Revert "Set dhcp-cache-threshold to 0 to avoid a bug in dhcpd 4.3.x where it ↵Renato Botelho2016-11-181-1/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | omits client-hostname where the cache threshold is reached. Ticket #6589" Removed after upgrade dhcpd server to 4.3.5 This reverts commit 318e0383829daac934424879ccfce09395e80025.
OpenPOWER on IntegriCloud