Renato Botelho
22234bbb2f
Fix #3172 , return_gateway_groups_array() was returning the last vip since it was using wrong variable name on iteration
2013-09-02 08:00:07 -03:00
Jean Cyr
b3e0fedf55
Dummynet does not require burst size specification
...
Dummynet traffic shaper does not require burst size specification and
assumes 0 if not specified. Allow user to leave burst field blank/
2013-09-02 02:55:09 -04:00
Phil Davis
df0cb10bbe
Provide get_uptime_sec in a common include file
...
so it is available to anything that cares.
2013-08-29 00:09:40 -07:00
Phil Davis
5517f60472
Use physmem and realmem from get_memory() in the appropriate places
2013-08-28 13:13:37 -07:00
Phil Davis
6b0739ac37
Use new names for get_memory parameters
2013-08-28 13:11:11 -07:00
Phil Davis
386758bba9
Use hw.physmem when calculating pfsense_default_state_size
...
hw.physmem is the actual amount of memory that FreeBSD/pfSense can get its hands on, so use this for the calculation.
2013-08-28 13:09:08 -07:00
Phil Davis
493360f50a
Use updated get_memory var names
...
The value of minimum_ram_warning is designed to be compared to hw.physmem - so do that. Usse the appropriate physmem or realmem value in each place.
2013-08-28 13:05:10 -07:00
Phil Davis
517fb89ed6
Improve var names in get_memory
...
realmem is the amount of actual (real) memory installed - the size of the RAM card - e.g. 256MB
physmem is the amount of memory available to FreeBSD after BIOS, video... has stolen some of realmem.
The variable names currently used are not very helpful for code readability. This standardises them. No functional change here.
2013-08-28 13:01:13 -07:00
jim-p
f6339216b7
s/require/require_once/g for filter.inc to avoid redeclaration errors in some rare cases.
2013-08-28 13:54:30 -04:00
jim-p
aed005392c
Support the names used by the status page as well as those used internally by service entries.
2013-08-28 09:00:30 -04:00
Renato Botelho
083a9e6d0b
Delete old route for remote gateway when its IP changes. It fixes #3155
2013-08-22 16:14:24 -03:00
jim-p
4475997eb6
Fixup check for existing easyrule block rule to account for the ipproto and when the ipproto is blank.
2013-08-21 15:20:37 -04:00
Renato Botelho
bd6ff3288a
Add scope to target when it is a link-local, it helps ticket #3150
2013-08-20 14:37:42 -03:00
jim-p
e56cb3de7d
Attempt to recognize pfsync entries from pf logs.
2013-08-19 13:54:22 -04:00
Chris Buechler
44e72b7c25
Fix selection of IPv6 target IP for IPv6 Outbound NAT rules.
...
This makes it possible (without source hacking) to do many:1 NAT of IPv6.
Some will rejoice. Some will curse.
This should really only be done in limited, specific circumstances. Don't develop the IPv4 NAT mentality with IPv6.
2013-08-17 05:11:48 -05:00
Renato Botelho
5ef99bd9fd
Obsolete more ntp binaries from base
2013-08-16 17:06:06 -03:00
Renato Botelho
6d501aefc2
Use ntpdate from ports also and obsolete base one
2013-08-16 16:55:17 -03:00
Ermal
17921b7e8d
Ooops fix this to add only th einterface
2013-08-16 19:49:03 +00:00
Renato Botelho
62580df45f
Obsolete base ntpd since we are using the one from ports
2013-08-16 16:43:41 -03:00
Ermal
42f33846eb
Add scope identifier to target when its link-local
2013-08-16 19:35:34 +00:00
Ermal
420aa48b98
Add also a special case so the correct ip is returned for the case when WAN is v4 PPP type and v6 is DHCP but with option fetch v6 info from v4.
2013-08-16 15:00:41 +00:00
Ermal
f253e9281f
When using DHCPv6 and only requesting a prefix the communication on the WAN interface will be over link-local so return the link-local address of the interface in this case rather than nothing.
2013-08-16 14:45:55 +00:00
Ermal
ebcbc110d0
Optimize a bit to try and convrt back to friendly interface only when needed
2013-08-16 14:35:13 +00:00
Ermal
45c07f1673
Resolves #2627 . When WANv4 is PPP and v6 is DHCP but the option get v6 info from v4 is ticked the real interface is different. For WANv4 is pppXX and for v6 is the real underlying interface. Take this into consideration during interface_bring_down to properly cleanup things
2013-08-16 14:34:16 +00:00
Ermal
c289c48a1f
Correctly remove IPv6 addresses from the interface rather than just erroring out. The same trick that works for IPv4 of not specifying address does not work with v6
2013-08-16 14:11:40 +00:00
Ermal
a55dd5371d
Even if called with wrong parameters try to do something rather than return here.
2013-08-16 13:38:15 +00:00
Ermal
b77d19c768
Add the check even here when dealing with ipv6 addreses
2013-08-16 10:40:48 +00:00
Ermal
55909a9adf
Handle link local addresses with embedded interface scope on is_ipaddrv6 and also on dnsmasq which is not yet there for these addresses
2013-08-16 10:33:31 +00:00
Ermal
8b22629028
Unbreak limitrules and probably pfblocker errors. Spotted-by: Jim
2013-08-15 19:31:13 +00:00
jim-p
108e868d70
When renaming or deleting a virtual server, clean up the old relayd anchor name. Otherwise the rules are still there and valid, and will cause problems as they will override the new VS settings. Also clear out the anchors when stopping relayd or starting fresh that way no old settings could conflict.
2013-08-15 13:46:45 -04:00
Ermal
5c4fdda353
Synchronize dhcpv6 as well if dhcp sync setting is on. Reported-by: http://forum.pfsense.org/index.php/topic,65487.0.html
2013-08-15 09:01:00 +00:00
Ermal
2c3924a16a
Cleanup some code that is not needed anymore
2013-08-14 23:16:02 +00:00
Ermal
ce14e37ba9
Use pfSense module functions for finding interface v6 addresses. The addresses will be not in friendly format as returned by getnameinfo
2013-08-14 23:05:17 +00:00
jim-p
de85521ad5
Remove prior CSC entry when cleaning up. Fixes #3143
2013-08-14 08:52:13 -04:00
jim-p
f229148479
Declare globals as global before defining them in openvpn.inc
2013-08-14 08:52:07 -04:00
Ermal
2db93ddbf5
Force apinger to write the status file before getting gateway status
2013-08-13 20:09:44 +00:00
Ermal
61ef13853f
Ticket #3139 try to detect if the popen is closed from an error
2013-08-13 10:18:32 +00:00
jim-p
f8466c3637
Fix interface selections on UPnP to show the customized descriptions entered by the user. While here, add an external interface selection knob. Fixes #3141
...
Conflicts:
etc/inc/pkg-utils.inc
2013-08-12 12:36:50 -04:00
Renato Botelho
a9e4412797
Fix #1047
...
* When advanced options (LRO, TSO and CSUM) changes, enable capabilities
again on interfaces
* For lagg and bridge, check caps instead of encaps and enable flags
when it's necessary for all members
* Take in consideration Disable (LRO, TSO, CSUM) options from
system->advanced when configuring lagg and bridge
2013-08-08 14:54:57 -03:00
Renato Botelho
1672398453
Remove duplicate polling set
2013-08-08 09:16:02 -03:00
jim-p
b05a8f356f
Show apinger as a service when active, and display its status on gateway-related pages.
2013-08-06 16:38:21 -04:00
jim-p
8ab8d85372
Don't print this message for a mobile IPsec setup. It's normal for it to not have an endpoint, and not worth spamming the log about.
2013-08-06 10:05:04 -04:00
Ermal
71549fa709
Try to do the loading operations as close as possible to avoid any issues coming from it
2013-08-06 08:26:24 +00:00
Ermal
7fdf29708c
Correct bandwidth assignment so the configuration is not reverted courtesy of ipfw(4) swapped arguments. Reported-by: http://forum.pfsense.org/index.php/topic,65069.0.html
2013-08-02 14:35:31 +00:00
Ermal
746f0afb00
Reload apinger now that we can rather than restarting. Related to Ticket #3119
2013-08-02 14:04:10 +00:00
Chris Buechler
ab9dc5be75
fix text - s/occured/occurred/
2013-08-01 21:56:41 -05:00
Chris Buechler
653bde345e
the state type is required/valid for all specifications of protocol, not
...
just the ones formerly listed. For instance, sloppy is valid (and widely
used on 2.0.x and some older 2.1x) with "any" protocol.
2013-08-01 21:43:56 -05:00
Ermal
af12517771
Resolves #3121 . Fix the command so it does perform correctly
2013-08-01 17:51:49 +00:00
Ermal
e506b054be
Manually revert the patch to cleanup aliases since now its propely handled in the ip assignements. Ticket #2495
2013-08-01 11:11:52 +00:00
Ermal
12feed15db
Add Zone to the messages logged on syslog from CP to easy troubleshooting
2013-08-01 10:26:01 +00:00