View previous topic :: View next topic |
Author |
Message |
SteveOllis
Joined: 02 Feb 2007 Posts: 32 Location: Sydney, Australia
|
Posted: Tue Mar 06, 2007 1:43 am Post subject: Session Handling - Pass-Through MAC Address |
|
|
Hi,
Tried setting up a pass-through MAC Address for testing, and found that it didn't work. Client gets redirected to login page regardless. Have restarted FirstSpot.
FirstSpot® v4.0.12
Steve |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Tue Mar 06, 2007 3:17 am Post subject: |
|
|
Note that:
1) Whether you use IP or MAC depends on your Session Handling setting.
2) You need to restart FirstSpot in order to have the client pass-through setting to take into effect. _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
SteveOllis
Joined: 02 Feb 2007 Posts: 32 Location: Sydney, Australia
|
Posted: Tue Mar 06, 2007 3:19 am Post subject: |
|
|
Session Handling page..
Session based - MAC
put the MAC address in
restarted FirstSpot
restarted PDA
opened Opera / IE
FIrstSpot login page.
Steve |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Tue Mar 06, 2007 3:25 am Post subject: |
|
|
Just a reminder, have you press save after you add your client pass-through entries?
If you still have difficulties, please post your config.ini file for further analysis. _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
SteveOllis
Joined: 02 Feb 2007 Posts: 32 Location: Sydney, Australia
|
Posted: Tue Mar 06, 2007 3:32 am Post subject: |
|
|
;
; Description : FirstSpot setting ini file
;
; Filename : config.ini
;
; Note: use a backslash to separate directories and files, those lines starting with
; a semi-colon are considered as comments.
;
; Warning : please don't change this file without supervision of a PatronSoft Engineer
; It is highly recommended that you change the FirstSpot setting in the Web-based Configuration Manager
[version]
version=Trial
versionDesc=4.0.12
[MNS]
; number of return paths
num_return_path=0
return_path0=
[DHCP]
leasetime=2880
num_ignored_addr=0
ignore_addr0=
[Port Filter]
flt_num=0
flt_0=
[QOS]
dl=
ul=
qos_num=
qos_0=
[Client Pass]
num_mac_addr=2
mac_0=00-19-D2-2C-74-08
num_ip_addr=0
ip_0=
mac_1=00-02-78-4E-45-96
[proxyARP]
ip_num=
ip_addr0=
;
; Redirect Login Page php file
;
[loginPhp]
Login_enable0=
Login_php_Num0=
;
; Gateway Settings
;
[gateway]
;Print Log Table
Datasource_Printlog=printlog
;Shared Secret Table Name
Datasource_Shared_Secret_Tablename=fssecret
;maximum timelimit per session in minutes (global), 0 = never
sessionlimit =
;URL tracking, default off
Trace_URL=0
;URL tracking interval, do not log the same url for particular user in x mins
Trace_URL_Interval=30
;URL tracking table
Datasource_URL_Log_Tablename=fsurl
;extra-information field table name
Datasource_extra_field_table =aexlog
;demo_mode=on, off (default)
;
;This demo_mode parameter is for FirstSpot channel partners demonstration purpose
;If demo_mode=on, FirstSpot DNS Server and Web Server will perform a catch-all on all
;requests. After the user login, the client will always see the "firstspotdemo" page.
demo_mode=off
;redirect user to cart.php when login fails
redirect_cart=1
;Client Isolation, NetBIOS over TCP/IP, Default is Disabled
netbios=0
;Scenario 2 (Distributed Network Topology)
scenario2=0
; Post-Startup Batch File Path Name
batch_filePath =
; lan's subnet mask (please change this through Configuration Manager only)
;
subnet_mask =255.255.254.0
; domain name server IP address
;
DNS =0.0.0.0
; domain name server IP address
;
preferred_DNS =0.0.0.0
; domain name server IP address
;
alternate_DNS =0.0.0.0
; username
;
user =marcellus
; password
;
pass =35b9223c81a280aef1bb5240ce836bc8
;Number of maximum administrator account
max_admin_account = 10
;Administrator username
admin_username0 =library
admin_username1 =
admin_username2 =
admin_username3 =
admin_username4 =
admin_username5 =
admin_username6 =
admin_username7 =
admin_username8 =
admin_username9 =
;Administrator password
admin_password0 =a1a24a61bc783845f9e9782a104e62a0
admin_password1 =
admin_password2 =
admin_password3 =
admin_password4 =
admin_password5 =
admin_password6 =
admin_password7 =
admin_password8 =
admin_password9 =
;Administrator parameter
admin_parameter0 =100000000000000101
admin_parameter1 =
admin_parameter2 =
admin_parameter3 =
admin_parameter4 =
admin_parameter5 =
admin_parameter6 =
admin_parameter7 =
admin_parameter8 =
admin_parameter9 =
; network interface card connected to Internet (after modify this, need to restart FirstSpot)
;
publicNIC=Local Area Connection 2
; network interface card connected Hotspots or visitor-based networks (after modify this, need to bind the FirstHop driver
; to this new card and unbind the FirstHop driver from ALL other cards, then reboot Windows)
;
privateNIC=Local Area Connection
; data source for user login
;
Datasource =C:\Program Files\FirstSpot\datasource\firstspot.dsn
; datasource table for user login
;
Datasource_Tablename = fsusr
; datasource table for user login
Datasource_Plans_Tablename = fsplans
; enable session logging into the datasource log table
session_log =ON
; datasource table for user session logging
;
Datasource_Log_Tablename = fsusrlog
; datasource table for PayPal
;
Datasource_PayPal_Table=ppal
; port used by Gateway Service
;
port =5786
; port used by Authentication Server
;
auth_port =5788
; port used by ssl site
;
ssl_port =5789
; Greeting message displayed in login page
;
greeting_msg =Welcome to our Hotspot!
; Enable to show InfoBox
;
show_infobox =ON
; Login page picture (filename)
;
loginpage_pic_name=computer.jpg
; authentication server IP address (please change this through Configuration Manager only)
; Note: different from gateway_IP when it is not installed in gateway (not officially supported in this version)
;
auth_IP =10.0.18.1
; login page filename which dispatcher will call
;
loginpage =login_select.php
; login form filename which login_select.php will call
;
loginform =login_form.php
; anonymous login form filename which login_select.php will call
;
a_loginform =alogin_form.php
; authentication form filename which authentication.php will call
;
reauthenticationform =reauth_form.php
; anonymous authentication form filename which authentication.php will call
;
a_reauthenticationform =alogout_form.php
; idle time (minutes) allowed for authenticated users
;
idle_timeout =5
; private network (please change this through Configuration Manager only)
;
private_IP =10.0.18.0
; gateway IP address (please change this through Configuration Manager only)
;
gateway_IP =10.0.18.1
; allow access to config manager from private network?
;
access_from_private =off
; allow access to config manager from public network?
;
access_from_public =ON
; license file path
;
licensepath =C:\Program Files\FirstSpot\
; session handling mode, 0 for MAC-based, 1 for IP-based
session_handling =0
; path for dhcp config
dhcppath =C:\Program Files\FirstSpot\dhcp\dhcpservice.ini
; dhcp mode, 0 = auto, 1 = static, 2 = disabled
dhcpmode =0
; for static dhcp only, path of the Ip MAC mapping list
static_dhcp_path =C:\Program Files\FirstSpot\StaticDHCP.txt
; anonymous login
anonymous_login =OFF
; secret enable
secret_enable=off
; secret code
secret_code=0aed120c6f7090a5b26a4c93df382b21
; anonymous login user table name
Datasource_Anonymous_Tablename =fsa
; anonymous login log table name
Datasource_Anonymous_Log_Tablename =fsalog
; password offloading mode
pwd_offload = off
; password encryption directory path
encrypt_path =C:\Program Files\FirstSpot\dispatcher\encrypt_pwd.exe
; initial air time in minutes for self signup users
self_sign_up_credit=0
; self signup filtering
self_signup_filter=1
;allow self-signup without an ip/mac, 0=yes, 1=no
self_signup_no_mac=1
; null=no filter, 0 = signup once, >0 after x mins
self_signup_period=
;use 3 party ssl cert 0=yes 1=no
ssl_cert=1
;secure socket layer for authentication
;443 for enabled SSL, auth_port=ssl_auth_port for disabled ssl
ssl_auth_port=5788
;rewrite engine for http to https redirection
rewrite_engine=off
;NAT
nat=0
;maximum fail attempt allowed
max_attempt=
;If user accesses http://10.20.7.1:5788 directly, redirect the request to any non-existing ip,
;so that driver can capture the request properly.
;DO NOT put any unresolvable domain name here
redirect_address=http://10.0.0.51/logged_in.html
;port to handle https request in apache when user is not authenticate
redirect_port=5790
restricted_redirect=0
; Allowed Hosts Settings
;
[allowed hosts]
; allowed hosts keywords file path
;
hosts_keywords_path =C:\Program Files\FirstSpot\AllowedHostsKeywords.txt
; allowed hosts IPs file path
;
hosts_ips_path =C:\Program Files\FirstSpot\AllowedHostsIps.txt
; Bandwidth Throttle Settings
[bw_throttle]
; Bandwidth Throttle Mode
bt_mode =2
; Overall Upload Limit (at least 20KB/s recommended)
bt_ul_limit =50
; Overall Download Limit (at least 20KB/s recommended)
bt_dl_limit =50
; low, medium and high definition
bt_low=100
bt_medium=50
bt_high=20
bt_drop_period=2
[bwreset]
bwresetmethod=day
bwresetperiod=1
lastresetbw=1171255763
[creditcard]
payment_method=ppal
[paypal]
; Business id
;
ppal_business=library@hillsong.com
; URL for successful transactions
;
ppal_return=http://10.0.18.1:5788/cart.php
; URL for cancelled transactions
;
ppal_cancel_return=http://10.0.18.1:5788/cart.php
; trust "Pending"=="Complete"?
;
ppal_pending_release=no
; the settlement currency
;
ppal_base_currency=AUD
; URL for notify
;
ppal_notify_url=http://203.94.168.109:5789
; Starting number for invoice
;
ppal_invoice_start=1
[worldpay]
; Installation id
;
wpay_instID=your_installation_ID
; the settlement currency
;
wpay_base_currency=USD
; URL for notify
;
wpay_notify_url=http://fixed_ip:5789
; Test Mode
; 100 : test mode - always successful validation
; 101 : test mode - always failed validation
; 0 : test mode - live mode, not testing
;
wpay_testmode=0
[AuthorizeNet]
;login id
aNet_id=
;transaction key
aNet_key=
aNet_hash=
aNet_base_currency=USD
; URL for notify
aNet_notify_url=http://fixed_ip
; Test Mode
; 0 : test mode - live mode, not testing
; 1 : test mode - testing only
aNet_testmode=0
[PrinterOn]
PrintSupport=0
SiteURL=
SiteUID=
SiteAuth=
; show siteURL
show_URL_login=1
show_URL_infobox=1
[lang]
; default language file
default_lang_file=lang.php
default_lang_file_attributes=English;en,en-us;iso-8859-1
; number of other language files
lang_fileNumber=0
; other luguage files
lang_file1=
lang_file1_attributes=
lang_file2=
lang_file2_attributes=
lang_file3=
lang_file3_attributes=
lang_file4=
lang_file4_attributes=
lang_file5=
lang_file5_attributes=
; show character encoding
; 0 : hide
; 1 : show
show_charset=1
lang_pack_file=custom_lang.php
cmlang_pack_file=custom_cmlang.php
last_logout=logout
this_logout=logout
last_info=infobox
this_info=infobox
last_cart=cart
this_cart=cart
key_0=
url_0=
signup01=on
signup02=on
signup03=off
signup04=off
signup05=off
signup06=off
signup07=off
signup08=off
signup09=off
signup10=off
ReqSignUp01=off
ReqSignUp02=off
ReqSignUp03=off
ReqSignUp04=off
ReqSignUp05=off
ReqSignUp06=off
ReqSignUp07=off
ReqSignUp08=off
ReqSignUp09=off
ReqSignUp10=off
extra01=off
extra02=off
extra03=off
extra04=off
extra05=off
extra06=off
extra07=off
extra08=off
extra09=off
extra10=off
; Setting of cart description
[cart]
max_slot_open=4
description0=
price0=
plan0=
recurring_enable0=
interval0=
interval_unit0=
recurring_method0=
fixed_number0=
segments0=
description1=
price1=
plan1=
recurring_enable1=
interval1=
interval_unit1=
recurring_method1=
fixed_number1=
segments1=
description2=1 Hour (512MBytes per Hour)
price2=5.00
plan2=College Students
recurring_enable2=0
interval2=
interval_unit2=
recurring_method2=
fixed_number2=
segments2=
description3=5 Hours (512 MBytes per Hour)
price3=25.00
plan3=College Students - 5 hrs
recurring_enable3=0
interval3=
interval_unit3=
recurring_method3=
fixed_number3=
segments3=
[radius]
use_radius=false
ServerIP=10.20.7.1
AuthPort=1812
AccPort=1813
Secret=secret
FSVendorID=2004
Datasource=C:\Program Files\FirstSpot\datasource\radius.dsn
Datasource_Tablename=fsRadius
Acc_Start=true
Acc_Stop=true
;Acc_FSLogin=true
;Acc_FSLogout=true
;Acc_FSWriteLog=true
[radiusAuthentication]
NAS_IDENTIFIER=FirstSpot
;NAS_IP_ADDRESS=the private nic ip, this can be edited.
;CALLING_STATION_ID=client nic mac or ip, depends on the Firstspot setting, this can not be edited.
;CALLED_STATION_ID=firstspot private nic mac, this can not be edited.
[radiusCustomAttribute]
;Vendor spec type for Firstspot
;fixed value can not be changed.
;
;FS_AUTH_TIMELEFT=1
;FS_AUTH_ACCUMBW=2
;FS_AUTH_BWQUOTA=3
;FS_AUTH_BWCOUNT=4
;FS_AUTH_ULLIMIT=5
;FS_AUTH_DLLIMIT=6
;FS_AUTH_LOGINTIME=7
;FS_AUTH_LOGOUTTIME=8
;FS_AUTH_TIMEDIFF=9
;FS_AUTH_BWUSAGE=10
;Account Status Type Attributes, can be changed.
;
;default ACCT_STATUS_FSLOGIN=217
;default ACCT_STATUS_FSLOGOUT=218
;default ACCT_STATUS_FSWRITELOG=219
[prepaidCard]
random_usr_prefix=usr_
random_usr_suffix_salt=abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ123456789
random_usr_suffix_length=5
pwd_salt=abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ123456789
pwd_length=7
[ACL]
num_acl=10
acl_addr0=10.0.8.0 255.255.252.0
acl_addr1=10.0.1.0 255.255.255.0
acl_addr2=10.0.0.15 255.255.255.255
acl_addr3=10.0.0.14 255.255.255.255
acl_addr4=10.0.0.17 255.255.255.255
acl_addr5=10.0.0.18 255.255.255.255
acl_addr6=10.0.0.28 255.255.255.255
acl_addr7=10.0.0.25 255.255.255.255
acl_addr8=10.0.0.35 255.255.255.255
acl_addr9=10.0.0.42 255.255.255.255
acl_addr10=10.0.0.42 255.255.255.255
[fssmtp]
smtp =false
IspSmtpDomain=
[misc]
show_cart=yes
enable_chgpwd=1
block_icmp=off
block_udp=on
_debug=0
pkt_period=20
oem=C:\WINNT\INF\oem0.inf
PublicAdapterIP=10.0.0.51
PublicAdapterIpMask=255.255.255.0
PublicAdapterGateway=10.0.0.1
PrivateMAC=00508be8fe09
[DataTransfer]
bwcount_dl=0
bwcount_ul=0 |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Tue Mar 06, 2007 3:40 am Post subject: |
|
|
Your Client Pass-through setting looks correct.
Can you confirm that there is no router between FirstSpot and the client device (as a router will hide the MAC header)? Also, please make sure you didn't spoof the MAC in the client device. _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
SteveOllis
Joined: 02 Feb 2007 Posts: 32 Location: Sydney, Australia
|
Posted: Tue Mar 06, 2007 3:47 am Post subject: |
|
|
Config is as follows:
Multiple Wireless Access Points all provision the hotspot SSID on VLAN18.
All switches are also configured with VLAN18.
Only `device' on VLAN18 is private port of FirstSpot.
Userlog is showing unique MAC addresses per device (wouldn't they all appear the same if they were routed?)
S07907 00-16-6F-B4-22-47 Tue Mar 06 13:39:27 2007 Tue Mar 06 13:43:57 2007 5 733.0KB 73.0KB
S07961 00-17-F2-EC-25-F4 Tue Mar 06 13:43:46 2007 Tue Mar 06 13:50:29 2007 7 1.04MB 339.0KB
s07862 00-19-E3-03-AC-9F Tue Mar 06 13:39:03 2007 Tue Mar 06 13:51:35 2007 13 278.0KB 209.0KB
S07504 00-14-A5-3E-87-3F Tue Mar 06 14:30:34 2007 Tue Mar 06 14:32:10 2007 2 149.0KB 19.0KB
s07439 00-19-E3-06-D0-62 Tue Mar 06 14:40:40 2007 Tue Mar 06 14:42:59 2007 3 60.0KB 14.0KB |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Tue Mar 06, 2007 3:57 am Post subject: |
|
|
It is hard to say, since your current client device may connect through a router while at the same time there are several other client devices in the local network segments connecting to FirstSpot.
The best test is to have your client device login and then logout. You should be able see the MAC in the latest user log. Please post it.
BTW, have you changed the _debug parameter to 0? This will stop FirstSpot from writing debug log information and we won't have enough to troubleshoot when problem occurs. _________________ ~ Patronsoft Limited ~
Last edited by alan on Tue Mar 06, 2007 7:23 am; edited 1 time in total |
|
Back to top |
|
|
SteveOllis
Joined: 02 Feb 2007 Posts: 32 Location: Sydney, Australia
|
Posted: Tue Mar 06, 2007 4:11 am Post subject: |
|
|
user log shows..
sollis 00-19-D2-2C-74-08 Tue Mar 06 15:06:57 2007 Tue Mar 06 15:07:19 2007 1 N/A N/A
which matches the entry in the Session Handling tab.. |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Tue Mar 06, 2007 4:17 am Post subject: |
|
|
Well, we need the debug log to troubleshoot further. Please:
1) set _debug parameter back to 1
2) restart FirstSpot
3) have the client perform login/logout
4) post the debug log file firstspot_gw_srv_[timestamp].log under FirstSpot\log directory _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
SteveOllis
Joined: 02 Feb 2007 Posts: 32 Location: Sydney, Australia
|
Posted: Tue Mar 06, 2007 4:56 am Post subject: |
|
|
Ok .. so this is weird. Maybe I restarted the wrong instance of FirstSpot, but it is now working.. with debug on, and then with debug off.
Very peculiar.
Steve |
|
Back to top |
|
|
|