Commit Graph

76 Commits

Author SHA1 Message Date
Phillip Davis
974fb32ccd Enhance interface gateway data entry descriptions 2014-02-07 09:50:06 -08:00
Phil Davis
5a997d96b2 Use correct vars for IPv6 when checking subnet start and end 2013-12-09 03:07:04 -08:00
Phil Davis
12f5a2d861 Check that DHCP end IP is >= DHCP start IP 2013-12-09 01:53:14 -08:00
Phil Davis
3038ece777 Fix checking DHCP end IP is in range
Cut-paste bug
2013-12-08 19:15:22 -08:00
Renato Botelho
7a25652fae Check if dhcp start and end addresses are inside interface subnet, helps #3196 2013-12-06 09:42:11 -02:00
Renato Botelho
bebf0fa8dc When user attempt to set network or broadcast address, ask again for the IP address. Issue #3196 2013-12-06 09:34:55 -02:00
Renato Botelho
20dda76651 Prevent network or broadcast address to be set on interface (console, GUI and wizard). It should fix #3196 2013-12-04 18:21:18 -02:00
Renato Botelho
d632dd5aa9 Check if IP is already configured on console setup 2013-03-14 14:08:38 -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
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
Renato Botelho
1b0074d5d1 Interface assignment wrongly changing:
When WAN is set to PPPoE and user set other interfaces IP address using
console, it wrongly change the interface assignment to use the same
device of wan. It was caused by a hard coded "wan" on
console_get_interface_from_ppp() call, when it should use $interface
instead.  It should fix #2074
2013-01-07 17:44:26 -02:00
Darren Embry
d23b53eb51 add gateways to config from cmdline 2012-06-07 20:39:22 -04:00
Darren Embry
1b8bf24dbe again, string interpolation kinda defeats the purpose of gettext. ;-) 2012-06-07 20:39:20 -04:00
Darren Embry
005a704988 variable interpolation defeats the purpose of gettext. 2012-06-07 20:39:19 -04:00
Darren Embry
c63e35947e work in progress: set gateway IPs from console
- add --dry-run mode
- prompts for gateway IP address as needed

does not yet do:
- add gateway to config
2012-06-07 20:39:18 -04:00
Darren Embry
0098aa734e show dhcp/dhcp6/static/staticv6 along with descriptions in console 2012-06-07 15:16:35 -04:00
Darren Embry
6499a7d5d9 show real interface names 2012-06-07 15:16:34 -04:00
Darren Embry
3f63e8e20b minor variable name change. 2012-06-07 15:16:34 -04:00
Darren Embry
d71371bcc0 actually display webconfigurator port numbers on console 2012-06-07 14:03:13 -04:00
Darren Embry
bfaafe2884 setting $config['interfaces']['wan']['ipaddrv6'] to 'dhcp6' *should* work now. 2012-06-07 13:33:42 -04:00
Darren Embry
b3cb233ff6 now shows ipv6 webConfigurator URLs (#2413) 2012-06-07 13:28:19 -04:00
Darren Embry
c1361a9f8b feature #2413 Allow IPv6 interface configuration from the menu 2012-05-17 20:17:48 -04:00
Darren Embry
416e1530bd normalize indentation 2012-05-17 19:17:01 -04:00
Ermal
aab5f04c47 Correct behaviour of switching from console from any ppp type device to other type. This has been broken since new ppp code. 2011-09-12 11:46:29 +00:00
Scott Ullrich
a53992b78d Simplify message that wraps off screen 2011-06-19 15:01:50 -04:00
lgcosta
7a18dfa4ed Fixes #1444. Implements the same fix that issue ermal made in #1522 to the console menu 2011-05-23 11:56:32 -03:00
Ermal
9b2e42c9fa When setting the ip from the console also enable the interface otherwise the HTTP_REFERER checks will not let you use the GUI. 2011-01-28 16:03:42 +00:00
Scott Ullrich
c9fa825423 Show disabled interfaces as well 2010-08-09 21:19:32 -04:00
Scott Ullrich
20252ff529 Make sure <dhcpd><wan> exists before blindly unsetting. 2010-03-10 18:57:18 -05:00
Chris Buechler
a64b5d3f92 if reverted to HTTP, restart lighty 2010-02-27 15:24:35 -05:00
Scott Ullrich
5f2d078e7d Decouple filter.inc from functions.inc. There is no need to process filter functions most of the time. Include filter.inc where it is needed 2009-11-21 19:10:37 -05:00
Scott Ullrich
1dcba27ccb Really restart DHCPD server after changes 2009-08-12 14:00:25 -04:00
Chris Buechler
af25d41585 move killall dhcpd above section that exits if no DHCP servers are enabled, and configure dhcpd if it's disabled by option #2 at the console.
Ticket #1867 (cvstrac)
2009-03-10 02:17:24 -04:00
Scott Ullrich
e3a13b0068 Add services_dhcp_server_enable which allows the DHCP server to be turned
off easily.
2008-10-29 03:07:11 +00:00
Scott Ullrich
e8dba7460f Reload interface being worked on, not blindly lan 2008-10-27 22:51:03 +00:00
Ermal Luçi
69e5a8be8d Rename interfaces_wan_configure to interface_configure now that it is used for all assigned interface configuration. 2008-09-09 11:08:02 +00:00
Ermal Luçi
4476d44751 Merge lan configuration to the interfaces_wan.php page wich does the configuration of all
other assigned interfaces.
2008-09-07 19:34:18 +00:00
Bill Marquette
12294e724d we don't care if rm can't find old dhcpd database files 2008-09-07 01:18:59 +00:00
Bill Marquette
ac6ddeffe1 fix debug code that never worked and make it disabled by default 2008-09-07 01:17:54 +00:00
Bill Marquette
b980f9e485 Semicolons after if's apparently parse...but it's not terribly helpful 2008-09-07 01:15:31 +00:00
Scott Ullrich
7993688e8b Check to see if key exists before unsetting 2008-09-07 01:06:39 +00:00
Scott Ullrich
a4c597209a Check to see if a interface has a dhcp key before trying to unset
if the interface has a dhcp server enabled.
2008-09-07 01:00:20 +00:00
Ermal Luçi
79b322f020 Correctly set interface to dhcp in wan case. 2008-07-08 18:07:55 +00:00
Chris Buechler
db747fb17f clean up text a bit, still some issues remaining (like "http://DHCP", my logic is apparently flawed) 2008-07-07 22:35:46 +00:00
Ermal Luçi
774c23c1de Remove unneeded code. 2008-07-07 22:02:58 +00:00
Scott Ullrich
424b758b99 Fix interface ip assignment. Originally commited by Ermal 2008-07-07 21:36:34 +00:00
Ermal Luçi
bba3a775d4 Missed interface improvements commit. 2008-07-02 18:11:35 +00:00
Chris Buechler
c71276f79f fix typo
Ticket #1761
2008-06-23 22:02:01 +00:00
Seth Mos
3538050462 Show Port of the webui if it is set 2008-06-13 12:31:18 +00:00
Chris Buechler
9f0280d96d Fix prompting for DHCP server setup 2008-03-12 01:43:03 +00:00