f00b4r0 / uspot

A captive portal system for OpenWrt
GNU General Public License v2.0
14 stars 1 forks source link

Problème de redirection captive avec uspot sur OpenWrt #16

Open yessinebaghdadi opened 1 month ago

yessinebaghdadi commented 1 month ago

Discussed in https://github.com/f00b4r0/uspot/discussions/15

Originally posted by **yessinebaghdadi** July 30, 2024 Bonjour à tous, Je rencontre un problème avec la configuration de uspot sur OpenWrt version 23.05.3. J'ai suivi les instructions pour configurer uspot mais la redirection captive ne fonctionne pas. Voici les détails de ma configuration : ``` #for auth mode 'credentials', add any number of the following config entry #config credentials # option uspot 'example' # option username 'myuser' # option password 'mypass' ## Values provided for the options below reflect the defaults used when the option is not set. config uspot 'captive' option auth_mode 'click-to-continue' # one of 'uam', 'radius', 'credentials', 'click-to-continue' # option idle_timeout '600' # client is kicked when idle for more than N seconds, defaults to 600, option used if not provided by radius # option session_timeout '0' # client is kicked if connected for more than N seconds, defaults to 0, option used if not provided by radius # option disconnect_delay '0' # if set, a disconnected client will only be actually kicked after disconnect_delay seconds option interface 'captive' # network interface (from config/network) on which captive clients will be managed option setname 'uspot' # firewall ipset name for client management option debug '5' # turn on debugging output in logs # captive portal API (RFC8908) configuration: # option cpa_can_extend '0' # 'can-extend-session' is true if this option is set to '1', false otherwise # option cpa_venue_url '' # value is provided verbatim as 'venue-info-url' #for auth mode 'uam' and 'radius': # option auth_server '172.27.158.231' # radius authentication server name or address # option auth_port '1812' # radius authentication server port # option auth_secret 'testing123' # radius authentication server password # option auth_proxy '' # radius authentication server proxy # option acct_server '' # radius accounting server name or address # option acct_port '1813' # radius accounting server port # option acct_secret '' # radius accounting server password # option acct_proxy '' # radius accounting server proxy # option acct_interval '' # radius accounting interim interval override # option das_secret '' # radius DAS secret # option das_port '3799' # radius DAS listen port # option nasid '' # radius NAS-Identitifer, UAM '&nasid=' # option nasmac '' # radius Called-Station, UAM '&called=' # option mac_format '' # MAC format specifier: 'aabbccddeeff', 'aa-bb-cc-dd-ee-ff', 'aa:bb:cc:dd:ee:ff' or the equivalent uppercase # option location_name '' # radius WISPr-Location-Name #for auth_mode 'uam': # option uam_port '3990' # local UAM server port # option uam_secret '' # remote UAM server password #option uam_server '10.0.0.1' # remote UAM server base url, e.g. "https://server.example.com/" - NB: trailing slash # option challenge '' # UAM CHAP shared challenge #option final_redirect_url 'http://10.0.0.1' # URL the client will be redirected to upon login. Special value 'uam' enables UAM 'success/reject/logoff' redirections URLs. # option mac_auth '0' # Attempt MAC-authentication first # option mac_password '' # Password sent for MAC-auth, defaults to MAC address # option mac_suffix '' # Optional suffix appended to username for MAC-auth # option uam_sslurl '' # optional base url to local UAM SSL (requires valid SSL setup in uhttpd UAM config), e.g. "https://uspot.lan:3991/" - NB: trailing slash ``` ca marche pas j'ai suivie toute la configuration qui se trouve dans le github
f00b4r0 commented 5 days ago

Hi, please don't post in French, this prevents non-French speaking people from participating. Also do not report the same problem multiple times: I have deleted conversation #15. Lastly "it doesn't work" is not helping: I have now added an issue template, if the problem still persists can you provide the required information? Thanks.