Project

General

Profile

Download (52.5 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
8171a2c2 09/04/2013 08:48 AM Ermal LUÇI

Introduce two new functions to be used on locking.

- try_lock: used for trying to get an EXCLUSIVE lock for a specified timeout by default of 5
- unlock_force: which just releases any locks held on a specified lock

Use this new functions on rc.openvpn to avoid spurious stale locks around.

f2cc3344 09/03/2013 03:37 PM Renato Botelho

Fix #3004:

. Create a function to replace strings on deep associative arrays
. Use the recent created function array_replace_values_recursive to fix
VIP interface names instead of touch config.xml directly

517fb89e 08/28/2013 08:01 PM Phil Davis

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.

bd6ff328 08/20/2013 05:37 PM Renato Botelho

Add scope to target when it is a link-local, it helps ticket #3150

55909a9a 08/16/2013 10:33 AM Ermal LUÇI

Handle link local addresses with embedded interface scope on is_ipaddrv6 and also on dnsmasq which is not yet there for these addresses

ce14e37b 08/14/2013 11:05 PM Ermal LUÇI

Use pfSense module functions for finding interface v6 addresses. The addresses will be not in friendly format as returned by getnameinfo

dd042c51 07/08/2013 03:38 PM Renato Botelho

Implement URL Table aliases for ports instead of IP addresses

079d1952 07/04/2013 01:42 PM Renato Botelho

Add a new alias type, URLs containing Ports

d9f33a7f 07/04/2013 01:40 PM Renato Botelho

Add group_ports()

866b1d61 06/28/2013 06:54 PM Jim Pingle

If the script_name is blank, try another method to locate what our filename is so we don't log an empty script name.

1901463c 05/27/2013 11:29 AM Renato Botelho

Add extra param, off by default, to make get_staticroutes() return hostnames too

86a5e1a8 05/27/2013 10:03 AM Renato Botelho

Fix whitespace and indent

19341491 05/09/2013 11:05 AM Renato Botelho

Create is_linklocal() to validate ll addresses

bcab1b07 03/05/2013 11:49 AM Ermal LUÇI

Make get_static routes behave correctly with aliases

2cf899d3 03/02/2013 10:39 PM un0x

Added IE mobile for WP8

1e5da31d 02/14/2013 07:46 AM Ermal LUÇI

Also do checks for ipv6 on is_ipaddr_configured

d97741c2 02/14/2013 07:39 AM Ermal LUÇI

Check for the right function name since the previous was present in util.inc not interfaces.inc

f1a831b8 02/13/2013 11:00 PM Renato Botelho

Restore require_once(interfaces.inc) on get_configured_ip_addresses(), it's required by get_interface_ip()

a1e4e2a7 02/13/2013 10:40 PM Ermal LUÇI

Two interfaces, carp, ip aliases might be on the same subnet as their parent. What needs to be checked is the ip itself

77daff18 02/13/2013 06:19 PM Ermal LUÇI

Use full path to nohup

fba1804f 02/13/2013 06:19 PM Ermal LUÇI

Assign the output of exec to a var to avoid any issues

e6c60013 02/11/2013 08:35 PM Renato Botelho

Check interfaces and VIP IP address overlap

- Check if interface IP overlaps other interfaces or localip from mpd
based services
- Check if VIPs IP overlaps interfaces or other VIPs address

It fixes #1723

83a12422 02/07/2013 09:46 AM Ermal LUÇI

Correct name of function call and use directly its return value as its boolean as needed. Also correct the function to be more readble and put a note for v4 checks that might be needed

88cc00db 02/07/2013 09:46 AM Ermal LUÇI

Make gen_subnetv6 return a compressed form IPv6 address/net representation. This removes some issues reported during Ticket #2746 and solve the issue on some cases

bd92ede8 02/06/2013 11:38 AM Cyrill B

IPv6 subnet check

dbea91b3 02/06/2013 11:06 AM Cyrill B

Add check_subnetsv6_overlap()

b5b5bcc0 02/04/2013 01:36 PM Ermal LUÇI

Make more strict checks during is_ip* functions. Helps http://forum.pfsense.org/index.php/topic,58399.0.html and http://forum.pfsense.org/index.php/topic,58273.0.html

a2219caf 01/28/2013 01:28 PM Renato Botelho

Add option filter to return_dir_as_array()

- Add a 2nd parameter, default empty, that allows to pass a regex to
filter files it'll return
- While I'm here, simplify code removinf $canadd var

41b4867e 01/24/2013 02:30 PM Renato Botelho

Move is_inrange() to util.inc and rename it to is_inrange_v6()

54404519 01/24/2013 02:28 PM Renato Botelho

Move is_inrange() to util.inc and rename it to is_inrange_v4()

281cf46f 01/16/2013 02:55 PM Ermal LUÇI

Forgotten -n option

5cd73772 01/16/2013 01:21 PM Ermal LUÇI

Use sysctl for this since its better rather than going thorugh dmesg

c4594e36 01/06/2013 03:22 PM Phil Davis

Prevent no such file message when pid file does not exist

5dbd619f 01/05/2013 06:36 PM Seth Mos

Add the PPPoE Server IP addresses to the locally configured addresses, this prevents the HTTP_REFERER check from triggering.

ac94ebd8 12/28/2012 02:14 PM Ermal LUÇI

Just check the file_exists let pkill decide if its a vaild file or not.

1198abf9 11/18/2012 01:10 PM Pi Ba

code comment typo ('log_error' should have been 'log_auth')

96cecadb 11/15/2012 03:50 AM Phil Davis

Add refcount_read to util.inc

Add refcount_read so other code can easily find out how many things have the file system mounted.

1e1e1ec8 11/02/2012 02:50 PM Jim Pingle

Make a function to get the current theme and use it everywhere rather than duplicating code or missing functions. (Fixes forced themes using the wrong theme for login screen)

1f1a08c8 09/14/2012 01:15 AM Jim Pingle

Allow/deny access to DHCP by partial MAC matching.

712eb769 07/31/2012 11:08 AM Ermal LUÇI

Unlock on return

eb295a1b 07/31/2012 11:07 AM Ermal LUÇI

There is no need to remove the @ from function names. Also properly unlock in case of exception. Size is constant and we know it no need for extra call to shmop. Put some more error checking just in case

7074a89a 07/31/2012 07:25 AM Phil Davis

Make access to shared memory atomic

Use lock and unlock to make sure that all incrementing and decrementing of the reference count in the shared memory section is atomic. This ensures that there are not unusual timing conditions that could see 2 callers trying to update the reference count at the same time, which could result in the count never returning to zero. If that happened, then the filesystems would never be restored to read-only. (this is really just relevant to nanobsd) (note that shmop_* calls in php do not do any locking themselves - callers must coordinate their own access to the shared memory section)...

780705e9 07/30/2012 07:18 PM Jim Pingle

Fix negative test

a9f250d6 07/30/2012 07:07 PM Jim Pingle

Pad data when adding to refcount reference, to avoid some oddities with how php handles such data. http://forum.pfsense.org/index.php/topic,51188.msg278141.html#msg278141

6d26ccdb 07/05/2012 06:07 AM Rahman Duran

Fix get_staticroutes() function to handle IPv6 subnets properly

e0a45ce0 07/02/2012 10:00 AM Erik Fonnesbeck

Do not directly print out a message when checking the interfaces, instead saving the list to use later. Display this list before the interface mismatch message. Fixes #2468 and fixes #2531

a2beee75 06/24/2012 07:59 PM Jim Pingle

Catch libraries from subdirectories of PBI lib dirs too

45930696 06/23/2012 05:25 PM Jim Pingle

Setup library paths to include /usr/pbi/*/lib as a last resort to make sure things can find libraries. We may eventually replace this with a better method as this can lead to conflicts, but for now it will allow packages to find their proper libraries.

8b2e2f12 06/11/2012 07:03 AM Ermal LUÇI

Make mac_format aware of cpzone but also friendly to previous code!

805b9ab6 06/11/2012 07:00 AM Ermal LUÇI

Revert "Make mac_format aware of multiple Captiveportal instances"

This reverts commit 54df925b9ea447bdd10f88a886e2ef11d44c3059.

e0ad13cd 06/11/2012 07:00 AM Ermal LUÇI

Revert "Make sure mac_format is always defined"

This reverts commit 56f9032170d3130c2066e5eebbe18b96398073ca.

56f90321 06/10/2012 05:20 PM Cyrill B

Make sure mac_format is always defined

54df925b 06/09/2012 08:33 PM Cyrill B

Make mac_format aware of multiple Captiveportal instances

3e662cb0 06/07/2012 08:51 AM Ermal LUÇI

Get rid of carpdev, it will never be

915089b7 06/07/2012 08:27 AM Ermal LUÇI

Catch up with multiple events sending. Also do not blindly startup check_reload_status check first

6bee76d5 06/06/2012 08:19 AM Ermal LUÇI

Make lock files availble to all users for usage from php process

b61e8960 05/16/2012 06:03 PM Jim Pingle

Teach mwexec and mwexec_bg how to optionally clear signal masks, and use that when launching ntp or ntpdate.

4dfd930e 05/10/2012 07:17 PM Darren Embry

cleanup: code for building arrays for autocompleted fields

a0539faa 05/10/2012 05:48 PM Darren Embry

prep work: function get_alias_list()

I wrote this function primarily to remove a lot of duplicate code
that's there because of a lot of those autocomplete fields.

d887d7f9 04/22/2012 10:39 PM Erik Fonnesbeck

Revert change to get_interface_list()'s $vfaces list for now. Interfaces in this list that are supposed to be listed on Interfaces: Assign need special logic on that page, which has not been added yet.

0c963226 04/20/2012 07:18 AM Erik Fonnesbeck

Add message stating which interfaces are missing.

Suggestion from http://forum.pfsense.org/index.php/topic,48366.0.html

fd863e5c 04/20/2012 07:11 AM Erik Fonnesbeck

Add some missing interface types in is_interface_mismatch() and get_interface_list()'s $vfaces. Fixes #2384

0d0cb047 04/12/2012 10:06 PM Jim Pingle

Fix constant. LOG_ERROR should be LOG_ERR

e371f8b9 04/12/2012 08:21 AM whjvenyl

Update etc/inc/util.inc

3f5f7ad3 04/12/2012 05:28 AM Seth Mos

Add modified version of user https://github.com/bcyrill patch that requires a IPv6 literal when used with a port.

4b51cc2e 04/12/2012 05:28 AM Seth Mos

Revert "Also validate IPv6 literals."

This reverts commit 21b586aa12ca35ccf54d4ddf66b0305e12e62a4d.

a119ecf8 04/12/2012 05:07 AM Erik Fonnesbeck

Modify get_configured_ip_aliases_list to optionally return the full vip entry and use this information to get the subnet and not just the IP in filter_get_direct_networks_list.

21b586aa 04/11/2012 07:21 PM Seth Mos

Also validate IPv6 literals.

f898c1a9 04/11/2012 03:58 PM Jim Pingle

Add alias support to static routes (needs some testing) Ticket #2239

Conflicts:

etc/inc/filter.inc
etc/inc/util.inc
usr/local/www/system_routes_edit.php
d7afd900 04/05/2012 08:48 PM Darren Embry

use existing filter_expand_alias (well, via a wrapper) instead of
reinventing it

7b47bd4c 04/05/2012 08:22 PM Ermal LUÇI

Make vips vhid be unique per parent interface!

01ed452e 04/05/2012 06:36 PM Darren Embry

Load Balancer: allow port aliases in Pools and Virtual Servers. (PEV-394754)

0917cb21 04/05/2012 05:10 PM Darren Embry

load balancer: allow IPv4 subnets up to 64 addresses in Pools and Virtual Servers (PEV-394754)

7b89ea6a 03/23/2012 11:12 PM Ermal LUÇI

Remove unused code

9a456170 03/21/2012 11:48 PM Darren Embry

fix for: Spanning Tree interface priority options do not alter Bridge

http://redmine.pfsense.org/issues/2261

d9adca3b 03/08/2012 08:02 PM Ermal LUÇI

Use the latest functions from pfSense module for getting interface list

6e1f456f 03/03/2012 08:23 PM Ermal LUÇI

Correct send_multiple_events to conform with new check_reload_status behaviour

47335ae3 02/26/2012 09:21 PM Pierre POMES

Fix gen_subnetv6_max(), used to display the end of available range in dhcp server ipv6

d3a2337a 02/23/2012 09:24 PM Jim Pingle

While we're at it, allow hostnames for syslog servers, since that is also valid.

4a8a90ff 02/23/2012 03:53 PM Jim Pingle

Allow users to enter a port number when adding a remote syslog server.

1dd8c3b6 11/21/2011 04:40 PM Ermal LUÇI

Select the newest of processes to make the command better

b1b42a06 09/28/2011 11:32 PM Warren Baker

Combine is_subnet to check for both v4 and v6 subnets

fdb9c1db 09/28/2011 11:26 PM Warren Baker

Add is_subnetv6 for checking of IPv6 subnets

5dc98f2e 08/25/2011 09:14 AM Seth Mos

Implement correct gen_subnetv6_max function that you can throw random prefix lengths in. Fixes Ticket #1725

e6f7e0be 08/21/2011 11:13 AM Seth Mos

Fix the referrer checks for IPv6 addresses Ticket #1583

e15e9c6b 08/17/2011 08:15 PM Ermal LUÇI

Ticket #1279. Decrease the refcount even though we're in booting phase. This helps the refcount to work as intended and help in making filesystem read only correctly on embedded platfroms. While here put some exceptions to refcount API and silent any related errors that might trigger. Also take not of the NOTE on the php manual that after a share memory is opened further references to it for size and access mode should be 0.

7734aea6 08/17/2011 02:15 AM Andrew Thompson

Make initial changes to allow pfSense to work in a jail.

This mostly avoids starting things that will not work and gets the
initial config. Most of the pfSense functionality will not work
(pf rules, routing, etc) but it can be used for testing.

6ebf7095 08/04/2011 02:58 PM Scott Ullrich

Remove trailing newline

8b6313a4 07/12/2011 11:57 PM Jim Pingle

Merge remote-tracking branch 'upstream/master'

Conflicts:
etc/inc/easyrule.inc
etc/inc/filter.inc
etc/inc/interfaces.inc
etc/inc/services.inc
etc/inc/xmlrpc_client.inc
usr/local/www/fbegin.inc
usr/local/www/services_dhcp.php

13b9dba9 07/07/2011 08:03 PM Jim Pingle

Merge remote branch 'upstream/master'

fab60c5e 07/07/2011 04:55 PM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

5ffa3389 07/06/2011 06:52 PM Ermal LUÇI

Feature #1603. Correct nested urltable alias code to be more fullproof to errors and does not break the ruleset on large lists of urltables. Though this needs a revisit to work properly since it breaks urltable alias property of reloading contents.

48427553 06/28/2011 07:55 PM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

0e61e3e4 06/22/2011 09:00 PM Jim Pingle

Merge remote branch 'upstream/master'

Conflicts:
etc/inc/filter.inc
etc/inc/util.inc

5bbd08e1 06/21/2011 06:05 PM Warren Baker

More whitespace fixes.

1015b3a9 06/21/2011 05:44 PM Warren Baker

If no event_address in globals.inc specified assume the default. Also fixed whitespaces.

c7bb0eed 06/21/2011 12:12 PM Jim Pingle

Merge remote branch 'upstream/master'

Conflicts:
etc/version

f0b17f3f 06/20/2011 11:50 AM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

857da904 06/19/2011 07:08 PM Scott Ullrich

Do not check dynamic and special interfaces for a complete interface mismatch error

45d4b71e 05/23/2011 06:57 PM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc