[Chilli] Multiple gateway setup

EasyHorpak.com info at easyhorpak.com
Tue Dec 4 09:55:18 UTC 2012


On 04/12/2555 13:08, David Bird wrote:
> 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
add option to /etc/chilli.conf

conup=/var/www/member/userup.sh
condown=/var/www/member/userdown.sh

some scripts from bash file
#!/bin/bash
echo "$FRAMED_IP_ADDRESS $USER_NAME $CALLING_STATION_ID" >> 
/var/www/member/user.log


more strings

$DEV<br />
$NET<br />
$MASK<br />
$ADDR<br />
$USER_NAME<br />
$NAS_IP_ADDRESS<br />
$SERVICE_TYPE<br />
$FRAMED_IP_ADDRESS<br />
$FILTER_ID<br />
$STATE<br />
$CLASS<br />
$SESSION_TIMEOUT<br />
$IDLE_TIMEOUT<br />
$CALLING_STATION_ID<br />
$CALLED_STATION_ID<br />
$NAS_ID<br />
$NAS_PORT_TYPE<br />
$ACCT_SESSION_ID<br />
$ACCT_INTERIM_INTERVAL<br />
$WISPR_LOCATION_ID<br />
$WISPR_LOCATION_NAME<br />
$WISPR_BANDWIDTH_MAX_UP<br />
$WISPR_BANDWIDTH_MAX_DOWN<br />
$CHILLISPOT_MAX_INPUT_OCTETS<br />
$CHILLISPOT_MAX_OUTPUT_OCTETS<br />
$CHILLISPOT_MAX_TOTAL_OCTETS



More information about the Chilli mailing list