Commit Graph

11207 Commits

Author SHA1 Message Date
Renato Botelho
dc2e5552a2 simplify logic a bit 2013-02-22 09:43:23 -03:00
Renato Botelho
fb6a3e7a1a Set pfsync0 as down when it's not being used 2013-02-22 09:40:11 -03:00
Renato Botelho
b32ea59d5a Fixes on HA setup:
- Configure pfsync when configuration is changed
- Disable pfsync when it's disabled on GUI
- Remove syncpeer and back it to default multicast address when it's
  removed from conf

Fixes #2491
2013-02-22 09:34:23 -03:00
Renato Botelho
873e49ec1c Set if interface is enable before try to configure static arp. Fixes #1988 2013-02-21 11:16:58 -03:00
Renato Botelho
acc68ffad2 find_interface_ipv6 should return the first configured address, not the last one 2013-02-21 08:43:28 -03:00
Renato Botelho
2c98a93536 Teach is_ipaddr_configured to check ipv6 for single IPs. While I'm here, reduce code duplication 2013-02-21 08:19:39 -03:00
Renato Botelho
8d8b1af708 Remove unused function remove_numbers() 2013-02-21 07:41:41 -03:00
Renato Botelho
2ccac12588 A nic family name can contain numbers on it, remove only the index in the end. Fixes #2010 2013-02-21 07:41:23 -03:00
Renato Botelho
9a15b8d2e9 Fix issues on "Set interface(s) IP address" option
- Avoid duplicate gateway entries
- Fix checking if a default gw already exists
- Set IPv6 to none when user choose it
- Set gateway on interface
2013-02-20 16:50:54 -03:00
Renato Botelho
b82e46967a fix typo 2013-02-20 14:55:40 -03:00
Renato Botelho
1f56ce5866 Fix dhcp v6 config section name for console setup and check on interfaces.php, the correct is dhcpdv6 instead of dhcpd6. Fixes #2827 2013-02-20 09:41:26 -03:00
jim-p
c3ebb2f867 Try to use our git PBI instead of the tbz version. 2013-02-19 10:48:31 -05:00
jim-p
5823264a93 Add some PHP shell scripts for managing packages from the CLI.
pfSsh.php playback installpkg git
pfSsh.php playback uninstallpkg git
pfSsh.php playback listpkg
2013-02-19 10:36:12 -05:00
Renato Botelho
4021ec36a9 CARP IPs were being checked twice in some cases. Fixes #2823 2013-02-18 18:10:27 -03:00
Jean Cyr
34cb864556 Avoid Warning: Invalid argument supplied for foreach() in /etc/inc/system.inc
Warning: Invalid argument supplied for foreach() in /etc/inc/system.inc

Don't use captiveportal configuration option variable if it isn't set
2013-02-17 21:21:48 -05:00
Renato Botelho
5705c60a24 Revert "Merge pull request #417 from miken32/cp-database-fix"
It breaks customizations, it's not a good time for such big change.

This reverts commit 40c7b1a98b, reversing
changes made to d896f86751.
2013-02-17 11:34:44 -03:00
jim-p
290296cdc0 Fix test for enabling upnp anchor. Unbreaks upnp for many. 2013-02-17 09:03:46 -05:00
rbgarga
2d7e911174 Merge pull request #419 from bcyrill/patch-6
Remove #2760 workaround
2013-02-17 03:43:02 -08:00
rbgarga
cae9d2ca9c Merge pull request #418 from bcyrill/bogons_mem
Update bogons update routine
2013-02-17 03:42:02 -08:00
bcyrill
9ffce6c1e8 Remove #2760 workaround
Since pfctl has been patched there is no need for the #2760 issue workaround anymore.
2013-02-17 01:34:47 +01:00
Renato Botelho
923e440b75 Fix #2818. Last change didn't work, it needs to be one more step out of the loop. 2013-02-16 13:55:24 -02:00
bcyrill
45bc16b974 Update bogons update routine 2013-02-15 23:08:15 +01:00
Renato Botelho
7790196644 Restart snmpd on rc.newwanip. It should fix #2756 2013-02-15 15:40:38 -02:00
jim-p
c6e83f5e6d Add php shell scripts to (en|dis)able carp. 2013-02-15 10:17:18 -05:00
Renato Botelho
fa77faffbf Fix #2818. Save information about all phase1 on ipsecpinghosts instead of only the last one 2013-02-15 08:20:14 -02:00
Renato Botelho
71034b51ff Treat openvpn tunnel IPs as local IPs and prevent warning on login page when acessing it using tun IP address. Fixes #1681 2013-02-15 08:12:16 -02:00
rbgarga
40c7b1a98b Merge pull request #417 from miken32/cp-database-fix
Use associative array for captive portal database
2013-02-15 01:35:27 -08:00
Michael Newton
f1ab195e81 self-explanatory now, no comments needed 2013-02-14 22:06:06 -08:00
Michael Newton
00109fef22 while we're here, send named termination causes 2013-02-14 22:01:24 -08:00
Michael Newton
91ca7e9fa0 use associative array for captive portal to prevent confusion, messiness, and abuse 2013-02-14 21:14:38 -08:00
Michael Newton
e35ab948a3 only send Accounting-On at boot; can't tell if CP's being newly enabled or not 2013-02-14 16:11:34 -08:00
Michael Newton
cf2859f3f7 whitespace fixes 2013-02-14 15:26:00 -08:00
Michael Newton
62f20eab88 add support for RADIUS NAS accounting, fixes redmine feature request 2143 2013-02-14 15:19:06 -08:00
Warren Baker
2ccc41c1c5 Add privileges to CP 'Allowed hostnames' and fix a typo on edit IPs 2013-02-14 20:09:38 +02:00
Warren Baker
120404e07f Keep Unbound here for syslog messages 2013-02-14 19:59:54 +02:00
Warren Baker
950c9a182e Backout Unbound for now bring back in 2.2. Fixes #2817 2013-02-14 19:50:24 +02:00
Renato Botelho
03e96afb7d Set $interfacegw properly and avoid losing default route in some circumstances 2013-02-14 10:18:01 -02:00
Ermal
1e5da31d31 Also do checks for ipv6 on is_ipaddr_configured 2013-02-14 07:46:13 +00:00
Ermal
d97741c2b2 Check for the right function name since the previous was present in util.inc not interfaces.inc 2013-02-14 07:39:19 +00:00
Renato Botelho
f1a831b8a8 Restore require_once(interfaces.inc) on get_configured_ip_addresses(), it's required by get_interface_ip() 2013-02-13 21:00:04 -02:00
Ermal
a1e4e2a79f Two interfaces, carp, ip aliases might be on the same subnet as their parent. What needs to be checked is the ip itself 2013-02-13 22:40:22 +00:00
Ermal
c7ada9743f Remove dead code 2013-02-13 21:58:52 +00:00
Ermal
1b584e3ff3 During bootup do not try to resolve hostnames filterdns will handle those 2013-02-13 21:58:52 +00:00
jim-p
bddd2be844 Add a knob in the GUI to set the RADIUS authentication timeout. Previous default was 3s, new is 5s. When using two-factor auth via external (e.g. phone), this needs to be set much higher, 60-120. 2013-02-13 15:55:55 -05:00
Ermal
77daff1863 Use full path to nohup 2013-02-13 18:19:19 +00:00
Ermal
fba1804f83 Assign the output of exec to a var to avoid any issues 2013-02-13 18:19:18 +00:00
Phil Davis
785145350b Say goodbye to routed at bootup
Now that routed/RIP has been removed from the base system, it generates errors trying to start it in the base system boot script.
(I guess that if it is installed as a package, the package start code will bring it up at the end of the base system boot)
2013-02-13 08:04:13 +05:45
bcyrill
a0ad97f278 Remove redundant variable 2013-02-12 22:03:52 +01:00
Jim P
f5b89c3948 Merge pull request #410 from bcyrill/patch-1
Update etc/inc/services.inc
2013-02-12 12:35:48 -08:00
jim-p
f8edf05d87 Fix these tests, they will never succeed the way we set these variables using the old test. Fixes #1987 2013-02-12 15:28:06 -05:00