Commit Graph

5560 Commits

Author SHA1 Message Date
Scott Ullrich
864bbcddfa Correct tagfile_deformat() call 2008-10-19 21:16:34 +00:00
Ermal Luçi
52d6ad5136 Oops, use tunnel address not network. 2008-10-19 14:39:23 +00:00
Ermal Luçi
0c56453c8c Clenup some more when bringing down an interface. 2008-10-19 14:34:34 +00:00
Ermal Luçi
4367b5f627 Bring order and simplify logic. 2008-10-19 14:05:41 +00:00
Ermal Luçi
adec685108 Clear the arp entries for the interface going down. 2008-10-19 13:32:55 +00:00
Ermal Luçi
d8acd70624 Slightly change order of commands for dhcp. 2008-10-19 13:29:04 +00:00
Ermal Luçi
80bf3f4aac Refactor some code so frontend does not need to know about details that might change
during development.
2008-10-19 13:20:32 +00:00
Ermal Luçi
f620d00d37 style(9) 2008-10-19 09:47:51 +00:00
Ermal Luçi
87a2efd1d8 Move from $debugging to $g["debug"]. 2008-10-19 09:39:21 +00:00
Ermal Luçi
b042cfd6fd Remove unused var. 2008-10-19 09:33:48 +00:00
Ermal Luçi
40aa6f2072 Mpd4 handles itself mss even with reduced mtu on pppoe case. 2008-10-19 09:07:28 +00:00
Ermal Luçi
b4914b78ba When interface is configured for pppoe and mtu is also configured then adjust the pppoe mtu c
orrespondingly as to us this means pppoe mtu and not parent interface mtu.
2008-10-19 09:03:43 +00:00
Ermal Luçi
9a12451b3a Do not try to generate rules for the known interface groups or should we? 2008-10-19 07:50:51 +00:00
Ermal Luçi
c5a568d943 * Cleanup some logic for loading ipfw module which might improve somewhat rules speed on very large rulesets. The best option is moving this to rules generation itself which would really speed up things but i will check it later on.
* Fix scrub rules generation since it was 'broken' by generating mss-clamping for all interfaces which might be the reason for some slow transfers reported. Remove generation of mss clamping by pf in pppoe case since we handle this in mpd4 and seems to be a better fit for this.
2008-10-19 07:30:24 +00:00
Scott Ullrich
e6d436e8d0 If <prefix> does not exist, then call safe_mkdir on it. 2008-10-19 03:38:28 +00:00
Scott Ullrich
64a0b4e4ec Only attempt to run plugins if directory exists 2008-10-19 03:24:34 +00:00
Scott Ullrich
5025a56c9f * Add run_plugins() function
* Use run_plugins() function in filter.inc
* Add plugin hook for parse_config and write_config
2008-10-19 03:19:22 +00:00
Ermal Luçi
c08360648a Cleanup some not needed code and use the correct debug var.
A lot of code references $debug as var but actually there is only $g['debug'] and $debugging that are defined!!
2008-10-18 14:06:22 +00:00
Ermal Luçi
cf30589944 When creating vlan interfaces from console fill all the needed information. 2008-10-18 13:57:56 +00:00
Ermal Luçi
b9004dfedf Restore accidentally removed code with bigpond removal which is causing issues with pppoe/pptp. 2008-10-17 14:33:23 +00:00
Scott Ullrich
4b6e75fff9 Check for valid IP address using is_ipaddr
Suggested-by: Ermal
2008-10-15 17:32:59 +00:00
Scott Ullrich
cc8ad8a7ad Misc style fix and checking to see if this is noticed by GIT 2008-10-15 17:29:11 +00:00
Scott Ullrich
915ffd5f8b Actually insert the interface address when the option is specified. 2008-10-14 18:24:34 +00:00
Ermal Luçi
7c36f9e050 Revert this and see if it affects any of problem reported on latest builds. 2008-10-13 22:40:48 +00:00
Scott Ullrich
8fe7e7c855 Add global debug where needed 2008-10-13 00:35:28 +00:00
Scott Ullrich
269d60620b Only show debug Running commands if $debug is enabled 2008-10-13 00:33:17 +00:00
Scott Ullrich
37f36cdaad Read in tabcontrols.php and properly eval() 2008-10-12 19:37:46 +00:00
Scott Ullrich
fe39586a31 If /usr/local/www/themes/$themename/tabcontrols.php exists, then eval
it and allow the tabbing colors and nifty corners to be overriden.

The file simply needs to look like:

<?php
	$tab_active_bg   = "#EEEEEE";
	$tab_inactive_bg = "#777777";
	$nifty_tabs_corners = "#FFF";
	$font_color = "white";
?>
2008-10-12 19:32:14 +00:00
Scott Ullrich
ba5be9ef2c No need to lock config when setting filter update status 2008-10-07 00:37:22 +00:00
Ermal Luçi
df4ae7c832 * Remove bigpond support from backend.
* Use killbypid instead of sigkillbypid SIGUSR2 is not doing what is expected.
* Actually start pppoe/pptp when the routing is called for this.
2008-10-06 22:23:03 +00:00
Matthew Grooms
1f5309a3a5 Use the correct syslog LOG_ERR constant and make this file executable. 2008-10-06 18:25:58 +00:00
Ermal Luçi
723e16b89c Actually take a shorter route at saving the gateway. 2008-10-04 22:52:32 +00:00
Ermal Luçi
8b12711717 Use correct interface to record gateway. 2008-10-04 22:50:24 +00:00
Chris Buechler
d78e676308 trim description so long descriptions on IPsec doesn't create an invalid ruleset 2008-10-04 22:03:48 +00:00
Scott Ullrich
d14aea5914 Switch network-backend to freebsd-sendfile from writev now that
lighttpd 1.4.20 has had some fixes applied.
2008-10-02 00:09:42 +00:00
Ermal Luçi
2cbdf97ea1 Cleanup the status queues so it does not does stupid things.
Apparnetly this needs to be converted to 'ajax' calls as the traffic graph but for now live with this.
2008-10-01 17:26:25 +00:00
Chris Buechler
77045939e7 run hostap later in script, fixes ral(4) card difference in FreeBSD 7.0. Works with ath(4) also.
Ticket #1813
2008-09-28 03:33:29 +00:00
Scott Ullrich
5252b98da2 Move alwaysbroadcast item to a settable field.
Ticket #1814

XXX: Create GUI option
2008-09-24 02:20:15 +00:00
Scott Ullrich
d3d6bbf371 Always broadcast to help fix vista fun.
Ticket #1814
2008-09-24 02:12:59 +00:00
Ermal Luçi
df1fc19892 Correct check if we are running with only one interface. LAN ca be deleted without problems with the new interface code. 2008-09-23 18:51:02 +00:00
Ermal Luçi
bd33ee5732 Take into consideration the subnet mask configured. 2008-09-23 18:32:15 +00:00
Seth Mos
9ff5048ffd Cleanup bootup script
Remove starting dhcp twice.
Remove double resolv.conf generation.
Remove direct pfctl filter load command.
Move initial time sync into is_wan_up logic so that it saves a lot of time on boot without a wan. opentp takes casre of it
later if required.
2008-09-22 18:37:14 +00:00
Ermal Luçi
1d45c5ec30 Use correct variable name for parent interface. 2008-09-22 16:38:48 +00:00
Seth Mos
d526d66944 Use correct arguments 2008-09-21 21:49:16 +00:00
Seth Mos
93ecc2fb43 Reffer to correct variable 2008-09-21 20:36:04 +00:00
Seth Mos
9d635f0a55 Set full path to ping 2008-09-21 20:33:25 +00:00
Seth Mos
4c9f3cf593 If we really can't find what to ping just continue with the next graph 2008-09-21 19:53:55 +00:00
Seth Mos
551e91596c Remove dependency on WAN having the default route.
Also failed because it did not use the full path to /sbin
2008-09-21 19:48:27 +00:00
Seth Mos
778b612884 Make sure we get a valid address to ping for the rrd graphs. 2008-09-21 19:42:31 +00:00
Ermal Luçi
3cf1591296 kill(1) does not need SIG in front of signals anymore. Though i do not think mpd4 responds to SIGUSR[1,2] the same as mpd3. 2008-09-20 14:56:39 +00:00