How to configure CoovaChilli to support VLAN. I got the new Switch Layer 3 and I want to setup Fresh Ubuntu on my old box .So I will be implement Coovachilli to support Vlans. V lans. e!uirement applications "or Captive portal solution Ubuntu #$.$% CoovaChilli #.&.% 'y scenario ( ((((((((((((((((((((((((((((((((((((((((((╔╡#$.#.#.$)&* ((((((((((((((((((((((((((((((((((((((((((╠╡#$.&.&.$)&* +outer,--+Coova,--+Switch,-- ╬╡#$.3.3.$)&* ((((((((((((((((((((((((((((((((((((((((((╚╡#$.%.%.$)&*
Con"iguration rocedure on Switch 3C/' %*$$ &0 ports 1 Create VLAN Create VLAN #$ #$ "or the mar2eting department and con"igure the I address o" VLAN(inter"ace VLAN(inter"ace #$ as #$.#.#.#&0 system(view +Sysname, vlan #$ vlan #$ +Sysname(vlan#$, port thernet #)$)# +Sysname(vlan#$, !uit +Sysname, inter"ace Vlan inter"ace Vlan(inter"ace (inter"ace #$ +Sysname( Vlan(inter"ace#$, Vlan(inter"ace#$, ip address #$.#.#.#&0 &**.&**.&**.#&4 +Sysname( Vlan(inter"ace#$, Vlan(inter"ace#$, !uit 1 Create VLAN Create VLAN &$ &$ "or the 56 department and con"igure the I address o" VLAN o" VLAN(( inter"ace &$ as #$.&.&.#&0 +Sysname, vlan &$ vlan &$ +Sysname(vlan&$, port thernet #)$)& +Sysname(vlan&$, !uit +Sysname, inter"ace Vlan inter"ace Vlan(inter"ace (inter"ace &$ +Sysname( Vlan(inter"ace&$, Vlan(inter"ace&$, ip address #$.&.&.#&0 &**.&**.&**.#&4 +Sysname( Vlan(inter"ace&$, Vlan(inter"ace&$, !uit 1 Create VLAN Create VLAN 3$ 3$ "or the administration department and con"igure the I address o" VLAN o" VLAN(inter"ace (inter"ace 3$ as #$.3.3.#&0 +Sysname, vlan 3$ vlan 3$ +Sysname(vlan3$, port thernet #)$)3 +Sysname(vlan3$, !uit +Sysname, inter"ace Vlan inter"ace Vlan(inter"ace (inter"ace 3$ +Sysname( Vlan(inter"ace3$, Vlan(inter"ace3$, ip address #$.3.3.#&0 &**.&**.&**.#&4 +Sysname( Vlan(inter"ace3$, Vlan(inter"ace3$, !uit 1 Create VLAN Create VLAN %$ %$ "or the 7eb cache server and con"igure the I address o" VLAN o" VLAN(( inter"ace %$ as #$.%.%.#&0 +Sysname, vlan %$ vlan %$ +Sysname(vlan%$, port thernet #)$)% +Sysname(vlan%$, !uit +Sysname, inter"ace Vlan inter"ace Vlan(inter"ace (inter"ace %$ +Sysname( Vlan(inter"ace%$, Vlan(inter"ace%$, ip address #$.%.%.#&0 &**.&**.&**.#&4 +Sysname( Vlan(inter"ace%$, Vlan(inter"ace%$, !uit
+Sysname,inter"ace 8igabitthernet #)$)&9 +Sysname(8igabitthernet#)$)&9,port lin2(type trun2 +Sysname(8igabitthernet#)$)&9,port trun2 permit vlan all +Sysname(8igabitthernet#)$)&9,undo shutdown lug the lan cable conectected with the internal inter"ace o" Coovachilli into port &9th
Install vlan support and create inter"ace apt(get install (y vlan modprobe 4$! echo :4$!: ;; )etc)modules vcon"ig add eth# #$ vcon"ig add eth# &$ vcon"ig add eth# 3$ vcon"ig add eth# %$
i" installed dns(nameservers &$3.#%%.&$9.&? auto eth# auto vlan%$ i"ace vlan%$ inet manual vlan(raw(device eth# auto vlan&$ i"ace vlan&$ inet manual vlan(raw(device eth# auto vlan3$ i"ace vlan3$ inet manual vlan(raw(device eth# auto vlan#$ i"ace vlan#$ inet manual vlan(raw(device eth#
@uild coova pac2age
aptitude ((assume(yes install dp2g(dev debhelper libssl(dev cd )tmp wget (c httpA))ap.coova.org)chilli )coova(chilli(#.&.%.tar.gB tar xB" coova(chilli=.tar.gB cd coova(chilli= dp2g(buildpac2age (r"a2eroot
Install CoovaChilliA cd .. dp2g (i coova(chilli=i340.deb
Con"igure coova cp etc)chilli )de"aults )etc)chilli )con"ig nano )etc)chilli )con"ig DSDS<6SCE-Iloveradius DSU<'SCE-uamsecret DSU<'www.google.com>#$.x.x.#)&* DSU<'SV-#$.x.x.# DSU<'F/'
Con"iguration process m2dir )etc)chilli )eth#.#$ m2dir )etc)chilli )eth#.&$ m2dir )etc)chilli )eth#.3$ m2dir )etc)chilli )eth#.%$ cp cp cp cp
)etc)chilli )con"ig )etc)chilli )con"ig )etc)chilli )con"ig )etc)chilli )con"ig
)etc)chilli )eth#.#$)con"ig )etc)chilli )eth#.&$)con"ig )etc)chilli )eth#.3$)con"ig )etc)chilli )eth#.%$)con"ig
dit value "or vlan #$ nano )etc)chilli )eth#.#$)con"ig 1 Settings only "or eth#.#$ networ2
DSL
nano )etc)chilli )eth#.#$)chilli.con" include )etc)chilli )eth#.#$)main.con" include )etc)chilli )eth#.#$)hs.con" include )etc)chilli )eth#.#$)local.con" ipup )etc)chilli )up.sh ipdown )etc)chilli )down.sh
nano )etc)chilli )eth#.&$)con"ig 1 Settings only "or eth#.&$ networ2 DSL
nano )etc)chilli )eth#.&$)chilli.con" include )etc)chilli )eth#.&$)main.con" include )etc)chilli )eth#.&$)hs.con" include )etc)chilli )eth#.&$)local.con" ipup )etc)chilli )up.sh ipdown )etc)chilli )down.sh
nano )etc)chilli )eth#.3$)con"ig 1 Settings only "or eth#.3$ networ2 DSL
DSU<'/E-33$$ DSU<'UI/E-%3$$ DSU<'SV-#$.3.3.# DSU<'F/'
Create inclouding "ile o" Vlan 3$ nano )etc)chilli )eth#.3$)chilli.con" include )etc)chilli )eth#.3$)main.con" include )etc)chilli )eth#.3$)hs.con" include )etc)chilli )eth#.3$)local.con" ipup )etc)chilli )up.sh ipdown )etc)chilli )down.sh
Con"igure Vlan %$ nano )etc)chilli )eth#.%$)con"ig 1 Settings only "or eth#.%$ networ2 DSL
Create inclouding "ile nano )etc)chilli )eth#.%$)chilli.con" include )etc)chilli )eth#.%$)main.con" include )etc)chilli )eth#.%$)hs.con" include )etc)chilli )eth#.%$)local.con" ipup )etc)chilli )up.sh ipdown )etc)chilli )down.sh
I" you got the message:+error, +client #$.%.%.3#, Invalid method in re!uest x#0x$3x$# : in apache log> try to input this command. sudo ln (s )etc)apache&)sites(available)de"ault(ssl )etc)apache&)sites( enabled)$$$(de"ault(ssl sudo )etc)init.d)apache& restart
Finally> Ehis is my con"iguration Coova "ile.
----------------------------------------DSL "or embedded portalM DS6NJI-#?&.#04.&$.#3$ DS6NJI'#?&.#04.$.$)&%>#$.#$.#$.$)&9 DS<6SCE-Chitlada 1 Set to be your <6IUS shared secret DSU<'SCE-Luamsecret 1 Set to be your U<' secret DSU<'
DS'/6-hotspot DSEN-chillispot DS7776I-)etc)chilli )www DS777@IJ-)etc)chilli )wwwsh DS/VI6-Coova DS/VI6LIJK-httpA))www.coova.org) DSL/CJ<'-:'y DotSpot: ----------- nd o" "ile ----------