[Chilli] Multiple gateway setup
Richard REY
richard at rexy.fr
Tue Dec 4 07:06:04 UTC 2012
Hi Alberto,
This is the begining of a script used in ALCASAR project that let you
see the available variables :
----------------------
#!/bin/sh
# alcasar-conup.sh by Rexy
# This script is distributed under the Gnu General Public License (GPL)
# This script is launched after each successfull login
# Debug : show all the coova parse variables. There are declared in
/src/chilli.c
echo "parse coova variables" > /tmp/debug-conup.txt
for i in LAYER3 DEV NET MASK ADDR USER_NAME NAS_IP_ADDRESS SERVICE_TYPE
FRAMED_IP_ADDRESS FILTER_ID STATE CLASS CUI SESSION_TIMEOUT IDLE_TIMEOUT
CALLING_STATION_ID CALLED_STATION_ID NAS_ID NAS_PORT_TYPE
ACCT_SESSION_ID ACCT_INTERIM_INTERVAL WISPR_LOCATION_ID
WISPR_LOCATION_NAME WISPR_BANDWIDTH_MAX_UP WISPR_BANDWIDTH_MAX_DOWN
WISPR-SESSION_TERMINATE_TIME CHILLISPOT_MAX_INPUT_OCTETS
CHILLISPOT_MAX_OUTPUT_OCTETS CHILLISPOT_MAX_TOTAL_OCTETS INPUT_OCTETS
OUTPUT_OCTETS SESSION_TIME IDLE_TIME LOCATION OLD_LOCATION TERMINATE_CAUSE
do
echo "$i : ${!i}" >> /tmp/debug-conup.txt
done
...
Best regards
REXY
Le 04/12/2012 07:08, David Bird a écrit :
> Hi Alberto,
>
> I don't have an example of the script you need immediately available,
> but you should look into the conup/condown configuration (chilli --help)
> to implement the multi-wan routing. For a glimpse at the variables you
> get in the script from chilli, see runscript() in chilli.c, which set up
> the environment of the script.
>
> Cheers,
> David
>
>
> On Mon, 2012-12-03 at 13:04 +0100, alberto at web3king.com wrote:
>> On Thu, 2012-11-29 at 10:31 +0100, alberto at web3king.com wrote:
>>> Hi everyone I setup a hotspot with chilli+coova but I want to use
>>> multiple gateway for internet access.
>>> I've got two type of users: standard and premium, I want to set
>>> different gateway to serve internet access for this two kind of
>>> users.
>>> This is a classic use case: a standard and a premium user see the
>>> access point wifi signal, they connect to the wifi, they see the
>>> login
>>> page and they insert their login and password. At this point I want
>>> to
>>> set two different gateways, for example: 192.168.182.20 for standard
>>> and
>>> 192.168.182.30 for premium. In other words I want to set different
>>> SLA
>>> based on different gateway.
>>
>> On attachment there is my configuration:
>> - on the lan side there's a DHCP 192.168.182.1/24 (eth1). I've got to
>> kind of user that connect to the wifi signal, they put login and
>> password and after that they're connceted with the coova+chilli server,
>> for example
>> normal user: IP_ADDRESS 192.168.182.50 GW 192.168.182.1 NETMASK
>> 255.255.255.0
>> premium user: IP_ADDRESS 192.168.182.70 GW 192.168.182.1 NETMASK
>> 255.255.255.0
>>
>> - on the wan side there are two type of connection to go on internet: a
>> UMTS and SAT connection. In my case coova+chilli have to set for the
>> normal user the connection to UMTS and for premium user the connection
>> to SAT (dotted line on the schema). In other words this is a sort of
>> traceroute for two user:
>> normal user (192.168.182.50) -> 192.168.182.1 (eth1 - lan) ->
>> coova+chilli -> 192.168.181.50 (eth0:0 - wan) -> UMTS -> INTERNET
>> premium user (192.168.182.70) -> 192.168.182.1 (eth1 - lan) ->
>> coova+chilli -> 192.168.181.100 (eth0:1 - wan) -> SAT -> INTERNET
>>
>> Best Regards,
>> Alberto - Web3king.com
>
More information about the Chilli
mailing list