Fixed #8322 to accommodate case where no VIPs are defined
Silence warnings generated by sysctl to standard error.
Merge pull request #3895 from PiBa-NL/20180106-openvpn-fix-subnet31
Improve the CARP description.
No functional change.
Merge pull request #3830 from PiBa-NL/20170925-pppoe-on-carpmaster
Fix syntax error in interfaces.inc
Do no configure the virtual IPs if the parent is disabled.
Ticket #6677
Change get_interface_subnet() to use configured value if available.
Update the Copyright notice for pfSense.
Remove ix from the ALTQ interface list. See ticket #7378
Fix typo
Bug in get_interface_ip
Global variable $config was not available, and IP was always fetched using find_interface_ip
Fix the interface_is_vlan() function.
It now works when only QinQ VLANs exist in the system.
Do not attempt to change the MAC address when the interface do not store the vendor MAC address.
Fix a bug in interface_is_vlan(), only check QinQ interfaces when they exist.
Do no set the MAC address for LAGG interfaces.
Ticket #7928
Fix the netgraph path for VLAN interfaces.
Recognize the first level tag of QinQ interfaces as standard VLANs.
Use the new function to validate the VLAN tags.
Fix the QinQ support.
Bring the QinQ support to the VLAN dotted format.
To avoid breaks third party software (such as dhcpd), we silently ignore the interfaces with names bigger than the maximum size in FreeBSD.
Ticket #7942
Do not reconfigure wireless on a link up event, or else it can get stuck in a loop. Fixes #7960
Use hostapd / wpa_supplicant from ports when available
Change the VLAN inteface names to use the 'dotted' format of FreeBSD, which is shorter and helps to keep the interface name smaller than the limit (16).
This fixes the 4 digit VLAN issues when the NIC name is 6 bytes long.
Ticket #294
Remove the previous 'no_dad' workaround now that if_stf is fixed.
Partly revert b76e0baebb70775b192507ec18f523141800ce95.
Merge pull request #3799 from marjohn56/Unbound-start-delay
Disable the DAD on the stf interface. This prevents the dpinger from start.
Some systems - only one that I am aware of, complain that unbound is 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....
Merge pull request #3761 from marjohn56/master
Merge pull request #3788 from znerol/feature/master/bridge-ipv6-auto-linklocal
dhcp6c Advanced Config prefix interface
Currently, when using dhcp6c advanced configuration the prefix interface is WAN, this is not very useful!
The changes here allow the user to select the interface that the PD will be applied on..
Add Option to use static IPV6 over v4 parent ( PPPoE
A new option when setting a v6 static on the WAN to allow the connection to use the V4 interfaces i.e. PPPoE
Add support for IPv6 AUTO_LINKLOCAL flag on bridge interfaces
Fix some other outdated links
Use recently added hwaddr field to restore original MAC address
Merge pull request #3559 from doktornotor/patch-4
Merge pull request #3721 from aaa2ppp/patch-1
Refactor get_configured_interface_list remove unused parameter
Refactor get_configured_interface_with_descr remove unused parameter
add validation via validate_ipv4_list to interfaces.inc
Adds ability to ignore DHCP offers from multiple servers- Forum thread: https://forum.pfsense.org/index.php?topic=124046.msg705100#msg705100- related dhclient source:https://github.com/pfsense/FreeBSD-src/blob/devel/sbin/dhclient/clparse.c#L945
changed files:...
Merge pull request #3515 from marjohn56/master
Sort the interface names.
Update interfaces.inc
Not defined pid file on starting choparp. The pfSense may not kill the program to reconfiguration.
Fix Vars for Interface naming
WAN flap loss of IPv6
Some hardware is taking too long to set ACCEPT_RTADV on the Interface,this results in RTSOLD exiting and this not sending RS to start theprocess. Apart from adding a delay to the start of RTSOLD which didimprove but not totally fix the issue the other change is to prevent the...
New dhcp6c features REASONS and signals
This PR takes advantage of modifications and additions to dhcp6c.
Firstly, a fix has been made to dhcp6c where the pid was being deletedbefore all processes had completed; this could leave dhcp6c sendingrelease signals but any check for the process using the pid would return...
Add reason to write_config() call
Request PD even if no interfaces are set to track6 (Bug #4544)
See https://redmine.pfsense.org/issues/4544#note-4
Vendor MAC Retention File Consolidate
Use a single file for vendor MAC retention (vendor_mac). a) Writes only one file during boot up rather than a file for each interface. b) More efficient than numerous tiny files. c) Friendlier to write cycle sensitive media in a RAM disk disabled system.
Vendor MAC Retention File Relocate
Relocate the vendor MAC retention file to /var/db directory. a) It's more at home here with other network interface stuff. b) Friendlier to write cycle sensitive media in a RAM disk enabled system.
Vendor MAC Restore Logic
Only use the vendor MAC retention file for restoring the vendor MAC when not booting. a) During boot up the current MAC that is obtained from the system is the vendor MAC. b) Using this eliminates the inefficient need to open the vendor MAC retention file for every interface during system boot up.
Spoof MAC Var Name
Rename 'spoof_mac' var to generic 'mac_addr'. a) It may be the vendor MAC or a spoofed MAC. b) Update the comment re: not reapplying an already applied MAC.
Add cpsw to ALTQ list now that the driver supports ALTQ. Ticket #7199
Remove \n from gettext strings
Fix #7120: Restore vendor mac address when spoofmac is set to blank
Simplify logic
Fix indent and spaces
Escape $ to avoid replacing it by PHP variables
Merge pull request #3410 from marjohn56/RTSOLD-lock-creation,-dhcp6c-launch-&-kill-changes-#3
Always force compress when calling Net_IPv6
Changed logging calls and style correction.
RTSOLD lock creation, dhcp6c launch & kill changes #3
Added lock file creation and check to RTSOLD script creation. This is toprevent mutliple launches of dhcp6c, this appears to happen whenmultiple RA's are received in rapid succession at the start of a...
Fix #6603: Wait while interface is in 'tentative' state before try to bind OpenVPN to its address
Merge pull request #3304 from marjohn56/master
Implement a different method to obtain the 'main' IP (v4) for the interface.
The last interface IP is always saved in /var/db/${interface}_ip. Use that file, if it exist, to find the main interface IP.
The file is created by the same process and function that call 'ifconfig setfirst', so the presence of that file should produce a very similar behavior....
Refactor interface_has_dhcp
to reduce nesting
Fix #7031 Allow interfaces that use DHCP for OpenVPN
even though the interface (or gateway group) has not yet actuallyreceived an IP address.This is useful when setting up a new system that is currently offline.
Fix missed reference to the pfSense-dhclient-script move.
User Defined DUID
User may define a DUID to use in System->Advanced->Networking. Theentered DUID is validated for composition and length, if valid it isstored in the config.xml. On call of wan_dhcp6_configure() the DUID iswritten to file to be read by dhcp6c on launch.
dhcp6c no release
Script changes to allow no-release option of dhcp6c. These changes to beused in conjunction with pfSense/FreeBSD-ports/net/dhcp6c recent changefrom PR #231
Improve input validation on static ARP for DHCP static mapping entries, also prevent the backend from attempting to apply entries with insufficient information stored. Fixes #6969
Change wireless interface description
Ticket #6770: Create a function to list available wireless interfaces and include model description
Fix #6899
Enable ALTQ for cxl. Fixes #6830
Fix #6828
Until 2.3.x pfSense carried a patch that changed the behavior of 'routechange' 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 changeadjust PHP code to deal with route add / change and make it work...
Merge pull request #3180 from valneacsu/fix_wifi_1st_VAP_params
Remove commented code
Remove all calls to conf_mount_r* functions
Merge pull request #3169 from valneacsu/fix_wifi_channel_change
Bring up the wifi interface only after setting up all the other arguments. This prevents issues when using VAPs.
Only configure wireless MAC address if a spoofed MAC address is set
Use tabs consistently
Re-enable executing the wifi mode command first. This fixes channel changing, which broke in d325e90818db2b22fc2562c38493769f217230f2.
Move copyright from ESF to Netgate
Force changes in routing to be detected by the system
When dhcp6c without RA is enabled, dhcp6c isn't killed and respawned, this causes the system not being able to pick up the routing changes. In this case, running the configuration script which fires rc.newwanipv6 solves the problem.
DHCP6 Before RA. Additions and ammendments
Replaced posix_kill() in kill_dhcp6client_process() with mwexec("kill -9 $pid"), this is because the posix_kill call was not reliably killing the dhcp6c process, kill -9 works every time.
Changes to the rtsold script creation. The script lines starting dhcp6c should not have be written to the script when dhcpwithoutra is true....
Merge pull request #3122 from NewEraCracker/patch-11
Ticket #3734: Add function to convert IPv6 address <-> binary
- ip6_to_bin() and bin_to_ip6() are copies obtained from pear-Net_IPv6 since the version available in the class is protected and we don't want to add more patches to thirdy part software. If upstream accept...
Improve dhcpd and dhcpleases reload
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.
Text typo
Noted by Daryl Morse in comment on Redmine bug 6637.
Remove '-x' flag from dhcpwithoutra launch of dhcp6c
This is the equivalent fix for the RELENG_2_3 branch to pull request #3078
Formatting tidy of interfaces.inc
After #3055
Merge pull request #3055 from marjohn56/master
Move to Apache License 2.0
Review license / copyright on all files (final round)
Bring back the "set iface route default" used in 2.2.6 and earlier versions, which works around the root problem in Ticket #6495
Review license / copyright on all files (1st round)
Merge pull request #3020 from shieldwed/Allow_comma_in_DHCP_option_string