Using conup/condown script for Chillispot
With the provided documentation the implementation of this script was actually a little problem. The documentation sais that the script will be called with a few parameters.
Script executed after a user has been authenticated. Executed with the following parameters: <devicename> <ip address> <mask> <user ip address>
So I tried to call these parameters but no luck. After that I took a look in the code. Chillispot sets environmental variables but with different names than the variables standing in the documentation. I’ve made a list with the variables you can use in your script. Some of the variables are new for me so if anybody has further explanation for it I’m interested in it.
Variable Meaning ======== ======= DEV Chillispot tun-device name NET Connection netaddress MASK Connection netmask ADDR Chillispot ip-address USER_NAME Username NAS_IP_ADDRESS Radius ip-address SERVICE_TYPE Returns allways 1 FRAMED_IP_ADDRESS User ip-address FILTER_ID Connection filterid STATE Connection state CLASS Connection class SESSION_TIMEOUT Connection session timeout IDLE_TIMEOUT Connection idle timeout CALLING_STATION_ID User mac-address CALLED_STATION_ID Chillispot mac-address NAS_ID Radius nasid NAS_PORT_TYPE Returns always 19 ACCT_SESSION_ID Radius accounting sessionid ACCT_INTERIM_INTERVAL WISPR_LOCATION_ID Radius locationid WISPR_LOCATION_NAME Radius location name WISPR_BANDWIDTH_MAX_UP Bandwith up from radius records WISPR_BANDWIDTH_MAX_DOWN Bandwith down from radius records CHILLISPOT_MAX_INPUT_OCTETS Statistics for input transmitted octets CHILLISPOT_MAX_OUTPUT_OCTETS Statistics for output transmitted octets CHILLISPOT_MAX_TOTAL_OCTETS Statistics for total transmitted octets
March 16th, 2007 at 12:37 am
bier2peer, nothing more to say.
March 16th, 2007 at 12:41 am
verdammt ich habe dein technisches Know-How definitiv unterschätzt
March 18th, 2007 at 6:52 pm
tonight is the night. wie hab ich dich vermisst, slsk!
March 18th, 2007 at 7:05 pm
hey aber nix versautes runterladen ne?!
March 28th, 2007 at 5:03 pm
schreibblockade, oder was? sag nicht, du arbeitest, dazu wohn ich zu nah…
March 29th, 2007 at 10:40 am
ja. passiert sogar den besten. Aber ich glaueb sie hat sich gelöst…