Hoi
Voor een van mijn projectjes (ja ik ben druk
) wil ik een captive portal krijgen dat gebruikers laat authenticeren voor ze het web op mogen.
Het is belangrijk dat de eindgebruiker zelf users aan kan maken; daarom leek een radius (met db backend) oplossing mij handig, maar als iemand iets beters weet hoor ik het graag. Database omdat hier vast wel een nette webinterface voor is en die anders ook zelf wel gemaakt kan worden.
Aan de machine komen trouwens meerdere domme access points te hangen.
De volgende software heb ik gezien:
* pfSense: behandelt niet het dhcp deel en redirect niet automatisch naar het captive portal. Buiten dat: lastig userbeheer zonder meteen root xs te geven. Ook komt er samba op die machine en dat is voor mij vrij onhandig op de pfSense omgeving.
* Chillispot: project is al 5 jaar dood, lijkt me niet verstandig. Wel wat leuke forks zoals:
* coovachilli. Ziet er tof uit maar ik krijg de redirect na dhcp niet werkend.
* pepperspot: idem dito.
Beide zijn chillispot clones. Ik ga er wel vanuit dat zij ook de routering doen en evt met firewall scripts zorgen dat je op de captive portal uitkomt.
De config van coovachilli, ik heb er wat quatsch uitgeknipt...
Het punt is hier met name dat ik zou verwachten dat ik geredirect word naar een captive portal page,wat dus niet gebeurt. Weet iemand nu al waar dit fout gaat?
Voor een van mijn projectjes (ja ik ben druk
Het is belangrijk dat de eindgebruiker zelf users aan kan maken; daarom leek een radius (met db backend) oplossing mij handig, maar als iemand iets beters weet hoor ik het graag. Database omdat hier vast wel een nette webinterface voor is en die anders ook zelf wel gemaakt kan worden.
Aan de machine komen trouwens meerdere domme access points te hangen.
De volgende software heb ik gezien:
* pfSense: behandelt niet het dhcp deel en redirect niet automatisch naar het captive portal. Buiten dat: lastig userbeheer zonder meteen root xs te geven. Ook komt er samba op die machine en dat is voor mij vrij onhandig op de pfSense omgeving.
* Chillispot: project is al 5 jaar dood, lijkt me niet verstandig. Wel wat leuke forks zoals:
* coovachilli. Ziet er tof uit maar ik krijg de redirect na dhcp niet werkend.
* pepperspot: idem dito.
Beide zijn chillispot clones. Ik ga er wel vanuit dat zij ook de routering doen en evt met firewall scripts zorgen dat je op de captive portal uitkomt.
De config van coovachilli, ik heb er wat quatsch uitgeknipt...
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
| # -*- mode: shell-script; -*- # Local Network Configurations # # HS_WANIF=eth0 # WAN Interface toward the Internet HS_LANIF=eth1 # Subscriber Interface for client devices HS_NETWORK=10.0.0.0 # HotSpot Network (must include HS_UAMLISTEN) HS_NETMASK=255.255.255.0 # HotSpot Network Netmask HS_UAMLISTEN=10.0.0.1 # HotSpot IP Address (on subscriber network) HS_UAMPORT=3990 # HotSpot UAM Port (on subscriber network) HS_UAMUIPORT=4990 # HotSpot UAM "UI" Port (on subscriber network, for embedded portal) # HS_DYNIP= # HS_DYNIP_MASK=255.255.255.0 # HS_STATIP= # HS_STATIP_MASK=255.255.255.0 # HS_DNS_DOMAIN= # OpenDNS Servers HS_DNS1=194.109.9.99 HS_DNS2=194.109.6.66 ### # HotSpot settings for simple Captive Portal # HS_NASID=nas01 HS_RADIUS=localhost HS_RADIUS2=localhost HS_UAMALLOW=www.ns.nl HS_RADSECRET=testing123 # Set to be your RADIUS shared secret HS_UAMSECRET=change-me # Set to be your UAM secret HS_UAMALIASNAME=chilli # Configure RADIUS proxy support (for 802.1x + captive portal support) # HS_RADPROXY=on # HS_RADPROXY_LISTEN=127.0.0.1 # HS_RADPROXY_CLIENT=127.0.0.1 # HS_RADPROXY_PORT=1645 # HS_RADPROXY_SECRET=$HS_RADSECRET # Example OpenWrt /etc/config/wireless entry for hostapd # option encryption wpa2 # option server $HS_RADPROXY_LISTEN # option port $HS_RADPROXY_PORT # option key $HS_RADPROXY_SECRET # To alternatively use a HTTP URL for AAA instead of RADIUS: HS_UAMAAAURL=http://10.0.0.1/hotspot # Put entire domains in the walled-garden with DNS inspection # HS_UAMDOMAINS=".paypal.com,.paypalobjects.com" # Optional initial redirect and RADIUS settings # HS_SSID=<ssid> # To send to the captive portal # HS_NASMAC=<mac address> # To explicitly set Called-Station-Id # HS_NASIP=<ip address> # To explicitly set NAS-IP-Address # The server to be used in combination with HS_UAMFORMAT to # create the final chilli 'uamserver' url configuration. HS_UAMSERVER=$HS_UAMLISTEN # Use HS_UAMFORMAT to define the actual captive portal url. # Shell variable replacement takes place when evaluated, so here # HS_UAMSERVER is escaped and later replaced by the pre-defined # HS_UAMSERVER to form the actual "--uamserver" option in chilli. HS_UAMFORMAT=http://\$HS_UAMLISTEN:\$HS_UAMUIPORT/www/login.chi # Same principal goes for HS_UAMHOMEPAGE. HS_UAMHOMEPAGE=http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html # This option will be configured to be the WISPr LoginURL as well # as provide "uamService" to the ChilliController. The UAM Service is # described in: http://www.coova.org/CoovaChilli/UAMService # # HS_UAMSERVICE= ### # Features not activated per-default (default to off) # # HS_RADCONF=off # Get some configurations from RADIUS or a URL ('on' and 'url' respectively) # # HS_ANYIP=on # Allow any IP address on subscriber LAN # # HS_MACAUTH=on # To turn on MAC Authentication # # HS_MACAUTHDENY=on # Put client in 'drop' state on MAC Auth Access-Reject # # HS_MACAUTHMODE=local # To allow MAC Authentication based on macallowed, not RADIUS # # HS_MACALLOW="..." # List of MAC addresses to authenticate (comma seperated) # # HS_USELOCALUSERS=on # To use the /etc/chilli/localusers file # # HS_OPENIDAUTH=on # To inform the RADIUS server to allow OpenID Auth # # HS_WPAGUESTS=on # To inform the RADIUS server to allow WPA Guests # # HS_DNSPARANOIA=on # To drop DNS packets containing something other # # than A, CNAME, SOA, or MX records # # HS_OPENIDAUTH=on # To inform the RADIUS server to allow OpenID Auth # # Will also configure the embedded login forms for OpenID # # HS_USE_MAP=on # Short hand for allowing the required google # # sites to use Google maps (adds many google sites!) # ### # Other feature settings and their defaults # # HS_DEFSESSIONTIMEOUT=0 # Default session-timeout if not defined by RADIUS (0 for unlimited) # # HS_DEFIDLETIMEOUT=0 # Default idle-timeout if not defined by RADIUS (0 for unlimited) # # HS_DEFBANDWIDTHMAXDOWN=0 # Default WISPr-Bandwidth-Max-Down if not defined by RADIUS (0 for unlimited) # # HS_DEFBANDWIDTHMAXUP=0 # Default WISPr-Bandwidth-Max-Up if not defined by RADIUS (0 for unlimited) ### # Centralized configuration options examples # # HS_RADCONF=url # requires curl # HS_RADCONF_URL=https://coova.org/app/ap/config # HS_RADCONF=on # gather the ChilliSpot-Config attributes in # # Administrative-User login # HS_RADCONF_SERVER=rad01.coova.org # RADIUS Server # HS_RADCONF_SECRET=coova-anonymous # RADIUS Shared Secret # HS_RADCONF_AUTHPORT=1812 # Auth port # HS_RADCONF_USER=chillispot # Username # HS_RADCONF_PWD=chillispot # Password ### # Standard configurations # HS_MODE=hotspot HS_TYPE=chillispot # HS_RADAUTH=1812 # HS_RADACCT=1813 # HS_ADMUSR=chillispot # HS_ADMPWD=chillispot ### # Post-Auth proxy settings # # HS_POSTAUTH_PROXY=<host or ip> # HS_POSTAUTH_PROXYPORT=<port> # Directory specifying where internal web pages can be served # by chilli with url /www/<file name>. Only extentions like .html # .jpg, .gif, .png, .js are allowed. See below for using .chi as a # CGI extension. HS_WWWDIR=/etc/chilli/www # Using this option assumes 'haserl' is installed per-default # but, and CGI type program can ran from wwwsh to process requests # to chilli with url /www/filename.chi HS_WWWBIN=/etc/chilli/wwwsh # Some configurations used in certain user interfaces # HS_PROVIDER=Coova HS_PROVIDER_LINK=http://www.coova.org/ HS_LOC_NAME="My HotSpot" # WISPr Location Name and used in portal |
Het punt is hier met name dat ik zou verwachten dat ik geredirect word naar een captive portal page,wat dus niet gebeurt. Weet iemand nu al waar dit fout gaat?
offtopic:
morgen ga ik het nog eens met dd-wrt proberen en chillispot daarop, kijken of dat makkelijker wil...alhoewel ik het mooier vind om die login page op 1 plek te hebben ivm roaming enzo
morgen ga ik het nog eens met dd-wrt proberen en chillispot daarop, kijken of dat makkelijker wil...alhoewel ik het mooier vind om die login page op 1 plek te hebben ivm roaming enzo
Ik heb elektra-inbouwmaterialen over? Kopen? Zie: hier