Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

1. Connection scheme

Consider a typical scheme of BRAS subscribers switching on and possible problems during configuration.

For each subscriber on BRAS a session is created for the subscriber (session id) and its services (service id), session numbers are unique. The session id number can be used to find information in the Portal and PCRF logs.

You can display the list of active sessions with the command show subscriber-control sessions status:

esr1000# show subscriber-control sessions status 
Session id             User name         IP address        MAC address         Interface            Domain            
--------------------   ---------------   ---------------   -----------------   ------------------   ---------------   
576460752303423705     --                192.168.133.219   20:47:da:00:39:e3   gi1/0/1.2336         --    

In the above example, the user is not authorised, no services are assigned to him.

esr1000# show subscriber-control sessions status 
Session id             User name         IP address        MAC address         Interface            Domain            
--------------------   ---------------   ---------------   -----------------   ------------------   ---------------   
576460752303423705     79123456789       192.168.133.219   20:47:da:00:39:e3   gi1/0/1.2336         eltex.root  

In the above example, the user is authorised.

To view which services are assigned to users, run the show subscriber-control services status command:

esr1000# show subscriber-control services status 
Service id             Session id             Service name      User name         Quota volume     Quota time       
                                                                                  (Bytes)          (Seconds)        
--------------------   --------------------   ---------------   ---------------   --------------   --------------   
36028797018963985      576460752303423705     A INTERNET        79123456789       --               --    

In the above example, you can see that an INTERNET service is assigned to user, the letter A means that it is active.

You can view the list of services of a particular session with the command show subscriber-control services status session-id <session number>:

esr1000# show subscriber-control services status session-id 576460752303423705
Service id             Session id             Service name      User name         Quota volume     Quota time       
                                                                                  (Bytes)          (Seconds)        
--------------------   --------------------   ---------------   ---------------   --------------   --------------   
36028797018963986      576460752303423705     N INTERNET        79123456789       --               --               
36028797018963987      576460752303423705     A WELCOME         79123456789       --               --             

In the above example, you can see that WELCOME and INTERNET services are assigned to user, but only the WELCOME service is active as it is marked with letter A. This means that the client is redirected to the "We recognise you" page, where he has to confirm his number by pressing the "Yes" button. After that the active service will change:

esr1000# show subscriber-control services status 
Service id             Session id             Service name      User name         Quota volume     Quota time       
                                                                                  (Bytes)          (Seconds)        
--------------------   --------------------   ---------------   ---------------   --------------   --------------   
36028797018963986      576460752303423705     A INTERNET        79123456789       --               --               
36028797018963987      576460752303423705     N WELCOME         79123456789       --               --     

You can delete all BRAS sessions with the clear subscriber-control sessions command. If you want to delete a specific session use clear subscriber-control sessions session-id <session number> command.

2. No network settings of subscriber

The subscriber connecting to the access point sends a DHCP Discover, which is transmitted via the operator's L2 access network to the BRAS ESR. The ESR performing the DHCP-relay function forwards the request to the DHCP server, which issues an address to the client based on the data in the giaddr field. The ESR address is specified as the GW. We assume that the DHCP server is configured correctly. DHCP and DNS queries should be allowed before authorisation, you should check the access list in ESR settings# show runnign-config → subscriber-control → bypass-traffic-acl unauthUSER. An example of a list allowing DHCP and DNS queries:

ip access-list extended unauthUSER
 rule 10 
  action permit
   match protocol udp
   match source-address any
   match destination-address any
   match source-port 68
   match destination-port 67
   enable
  exit
 rule 11
  action permit
   match protocol udp
   match source-address any
   match destination-address any
   match source-port any
   match destination-port 53
   enable
  exit
exit

3. Portal does not open 

In this section cases when there is a redirect to the portal in the browser, but the page is not displayed or we get to an error (page with clouds) are described.

  • Checking dns requests from the client

    Redirect to the portal occurs at http(s) request in the browser of the subscriber. If there is no redirect when requesting URL by dns name, you can check the request by ip address, for example http://1.1.1.2, if the portal is opened, you need to check the passing of dns requests on the client, for example by executing the command

C:\Users\Administrator>nslookup eltex.nsk.ru
server google-public-dns-a.google.com
Address: 8.8.8.8
No possible answer:
name: eltex.nsk.ru
Address:94.250.248.55

If dns requests do not pass, it is necessary to check network settings on the upstream router, e.g. if there is a route to the subscribers' network.

  • Checking eltex-portal logs

The log is located in /var/log/eltex-portal/

In the file /var/log/eltex-portal/access.log attempts of users to connect to the portal can be viewed:

100.123.0.2 127.0.0.1 - - [16/Aug/2019:05:16:48 +0000] "GET /eltex_portal/?router=bras&clientIp=192.168.133.219&clientMac=20:47:da:00:39:e3&nasIp=100.123.0.176&sessionId=99&vrf=1&loc=data10&L2loc=gi1/0/1.2336&origUrl=http://connect.rom.miui.com/generate_204 HTTP/1.0" 200 28782 "-" "Mozilla/5.0 (Linux; Android 8.1.0; Redmi 5 Build/OPM1.171019.026; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.111 Mobile Safari/537.36" "JSESSIONID=node012voamcl3aepd1oyo47v30v62w70.node0" 36799

In the file /var/log/eltex-portal/auth.log user authorisation logs can be viewed (the log shows an example of successful authorisation):

2019-08-16T13:41:49,218 Index-page:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:41:58,311 Register-form-submitted:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:41:58,385 Registration:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:41:58,470 Login-page:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:41:58,732 Login-page:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:41:59,660 Login-page-enter-button:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:41:59,668 Authentication:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:41:59,748 Tariffs:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:41:59,834 Apply-tariff:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3
2019-08-16T13:42:00,143 Success-redirect:success device:bras NAS_IP:100.123.0.176 BRAS_L2:SSID1 SSID_name:SSID1 SSID_domain:eltex.root portal:eltex user_name:null user_MAC:20:47:da:00:39:e3

In the file /var/log/eltex-portal/portal.log portal logs can be viewed. They are the main one for troubleshooting.

If there is the following in log

2019-08-16T11:47:40,873 [qtp2085002312-12] ERROR org.eltex.portal.controller.PageErrorController PageErrorController.errorPage(line:57). Handled exception: code 1101:BRAS_DISABLED . Source:org.eltex.portal.app.pipeline.stages.RouterSessionDetection.preprocess(line:58)

It is necessary to check if the "Interaction with BRAS" setting is activated in the Portal Builder.

If there is the following in log

2019-08-16T11:53:28,147 [qtp2085002312-14] ERROR org.eltex.portal.tools.TariffTools TariffTools.notifyOnEmptyTariffs(line:67). Invalid configuration of portal eltex: Portal has no tariffs linked. Change on the Tariffs page.

2019-08-16T11:53:28,147 [qtp2085002312-14] ERROR org.eltex.portal.controller.PageErrorController PageErrorController.errorPage(line:57). Handled exception: code 1301:NO_AVAILABLE_TARIFFS . Source:org.eltex.portal.tools.TariffT

ools.notifyOnEmptyTariffs(line:68)

If the user's portal opens with error 1301 at once, then it is necessary to check whether the portal to which the redirect is performed has tariffs assigned in the Portal Builder.

If there is the following in log

2019-08-16T12:08:42,602 [qtp2085002312-107] ERROR org.eltex.portal.tools.PcrfTools PcrfTools.findL2Subnet(line:136). Failed to find L2 subnet for gi1/0/1.2336 at 100.123.0.176 (1)

2019-08-16T12:08:42,604 [qtp2085002312-107] ERROR org.eltex.portal.controller.PageErrorController PageErrorController.errorPage(line:57). Handled exception: code 2101:L2_SUBNET_NOT_FOUND . Source:org.eltex.portal.app.pipeline.specific.BrasSessionFactory.lookupSubnet(line:122)

 It is necessary to check whether there is a corresponding L2 subnet in account "PCRF Settings" → L2 and whether it is correctly configured. You should also check in the Portal Builder whether access to PCRF is correctly configured - default value host: localhost, port: 7070.

If there is the following in log

 сообщение

2019-08-16T12:17:05,519 [qtp2085002312-14] ERROR org.eltex.portal.app.pipeline.WrapRequestAspect WrapRequestAspect.aroundAdvice(line:98). Failed to handle request
org.eltex.portal.app.bras.BrasException: Failed to interact with BRAS
at org.eltex.portal.app.bras.SubscriberImpl.sessionQuery(SubscriberImpl.java:70) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eltex.portal.storage.BrasProxy.getSessionStatus(BrasProxy.java:73) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039) ~[caffeine-2.6.2.jar:?]
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853) ~[?:1.8.0_222]
at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037) ~[caffeine-2.6.2.jar:?]
at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020) ~[caffeine-2.6.2.jar:?]
at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112) ~[caffeine-2.6.2.jar:?]
at com.github.benmanes.caffeine.cache.LocalManualCache.get(LocalManualCache.java:54) ~[caffeine-2.6.2.jar:?]
at org.eltex.portal.storage.BrasProxy.sessionQuery(BrasProxy.java:47) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eltex.portal.app.pipeline.specific.BrasSessionFactory.querySessionStatus(BrasSessionFactory.java:159) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eltex.portal.app.pipeline.specific.BrasSessionFactory.getSession(BrasSessionFactory.java:88) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eltex.portal.app.pipeline.specific.BrasSessionFactory.getSession(BrasSessionFactory.java:30) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eltex.portal.app.pipeline.stages.RouterSessionDetection.preprocess(RouterSessionDetection.java:66) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eltex.portal.app.pipeline.RequestPipeline.lambda$doPreHandle$0(RequestPipeline.java:21) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_222]
at org.eltex.portal.app.pipeline.RequestPipeline.doPreHandle(RequestPipeline.java:21) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eltex.portal.app.pipeline.WrapRequestAspect.aroundAdvice(WrapRequestAspect.java:77) [portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627) [spring-aop-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616) [spring-aop-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) [spring-aop-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168) [spring-aop-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671) [spring-aop-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.eltex.portal.controller.PageIndexController$$EnhancerBySpringCGLIB$$499946ea.indexPage(<generated>) [portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) [spring-web-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) [spring-web-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:849) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:760) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [javax.servlet-api-3.1.0.jar:3.1.0]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) [spring-webmvc-4.3.20.RELEASE.jar:4.3.20.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eltex.portal.app.pipeline.misc.RelativeRedirectFilter.doFilter(RelativeRedirectFilter.java:25) [portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eltex.portal.app.pipeline.misc.RequestHeadersFilter.doFilter(RequestHeadersFilter.java:55) [portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.Server.handle(Server.java:531) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) [jetty-io-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) [jetty-io-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) [jetty-io-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
Caused by: net.jradius.exception.TimeoutException: Timeout: No Response from RADIUS Server
at net.jradius.client.RadiusClientTransport.sendReceive(RadiusClientTransport.java:118) ~[jradius-core-1.13.4.jar:?]
at net.jradius.client.RadiusClient.sendReceive(RadiusClient.java:288) ~[jradius-core-1.13.4.jar:?]
at org.eltex.portal.app.bras.SubscriberImpl.sessionQuery(SubscriberImpl.java:58) ~[portal-starter.jar:1.15-101 (12.08.19 09:50:27)]
... 76 more

The key phrase is: Caused by: net.jradius.exception.TimeoutException: Timeout: No Response from RADIUS Server

You need to check the key for Radius and CoA messages, they must match. There are three places to check:

  1. In ESR configuration, profile for Radius and CoA;
  2. In EMS, menu "Manage Access Points on Radius Server", find the required ESR, parameter key for ESR ip address and 127.0.0.1;
  3. In Portal Builder: System Settings->BRAS Interaction.

If you enable debug on ESR (debug→debug BRAS error), you can see the corresponding error in ESR console:

2019-08-16T17:31:22+07:00 %BRAS-E-ERROR: <bras_receive_message_from_socket> ESR_rc_check_reply failed! (Maybe, is shared secret incorrect?) Dropping packet without response
  • Checking eltex-pcrf logs

 Logs are located in /var/log/eltex-pcrf/. Let's view /var/log/eltex-pcrf/eltex-pcrf-shaper.log, message with error:

2019-08-16T13:55:04,917 [vert.x-eventloop-thread-2] ERROR SubnetsVerticle PcrfJsonTools.replyRxFail(line:570). {
  "key" : "PcrfErrorCode.subnetNotFound",
  "message" : "Subnet not found by query '{\"location\":\"gi1/0/1.2336\",\"nas_ip\":\"100.123.0.176\"}'",
  "code" : 29,
  "args" : [ {
    "location" : "gi1/0/1.2336",
    "nas_ip" : "100.123.0.176"
  } ]
}

This message indicates that the L2 subnet in account is not configured or is configured with an error. You need to check if the subnet is available in "PCRF Settings" → "L2 subnets" in your personal cabinet and make sure it is configured correctly.

  • The wrong portal is opened

It is necessary to check the name of the portal in PCRF Settings→L2 Subnets in account, the portal is selected by matching NAS IP and location interface.

  • Errors during authorisation on the portal

  • Incorrect tariff plan (intended for Eltex AP)

If a user opens the portal, but after entering the number and SMS code, the portal displays error 1301 - then it is necessary to check the tariff specified in the portal settings - it must belong to the BRAS category, not "work with AP".

with the error: "Error:1301 (NO_AVAILABLE_TARIFFS)"

In the portal log /var/log/eltex-portal/portal.log there will be a message:

2019-08-16T14:07:52,586 [qtp2085002312-12] ERROR org.eltex.portal.tools.TariffTools TariffTools.notifyOnEmptyTariffs(line:67). Invalid configuration of portal eltex: Portal has no tariffs linked. Change on the Tariffs page.
2019-08-16T14:07:52,586 [qtp2085002312-12] ERROR org.eltex.portal.controller.PageErrorController PageErrorController.errorPage(line:57). Handled exception: code 1301:NO_AVAILABLE_TARIFFS . Source:org.eltex.portal.tools.TariffTools.notifyOnEmptyTariffs(line:68)

You need to configure the correct tariff plan for this portal in the Portal Builder.

  • Invalid login and/or password

    Subscriber received a password, entered it, but after selecting a tariff plan he receives an error: invalid password and/or login.

One of the reasons for this error is different keys for CoA messages, you need to check the configuration of Radius and CoA keys in three places:

  1. In ESR configuration, profile for Radius and CoA;
  2. In EMS, menu "Manage Access Points on Radius Server", find the required ESR, parameter key for ESR ip address and 127.0.0.1;
  3. In Portal Builder: System Settings->BRAS Interaction.
  • Mac authorisation does not work

After receiving the first ip packet from a subscriber, BRAS requests from PCRF the shaper parameters for this subscriber and tries to perform mac authorisation. For successful mac authorisation in "PCRF Settings->L2 Subnets" in the Personal Office a correct entry must be configured. You can check this by finding out the name of the L2 interface to which the subscriber is connected:

esr1000# show subscriber-control sessions status 
Session id             User name         IP address        MAC address         Interface            Domain            
--------------------   ---------------   ---------------   -----------------   ------------------   ---------------   
576460752303423705     --                192.168.133.219   20:47:da:00:39:e3   gi1/0/1.2336         --   

Check the configuration of L2 subnet in account, namely, NAS IP must match the ESR address, interface location must match the name of the interface to which the subscriber is connected, Service domain must match the service domain of the subscriber. The service domain is set in the L2 subnet which describes which portal will be displayed to the subscriber.

  • Second redirect to the portal after authorisation

After successful authorisation on the portal, redirect to the portal occurs again and authorisation is required again, no errors appear in the opening window with the portal.

It is necessary to check in account, in the service settings the spelling of "Traffic class", which should be assigned to the user after authorisation in accordance with the settings of the tariff assigned to him - it must be completely the same, including the case of letters in access-list, which is used to classify the traffic of this service on ESR BRAS:

Output from ESR show running access-list:

ip access-list extended internet
  rule 1
    action permit
    enable
  exit
exit

As it can be seen the case of letters does not match.

If debug is enabled on ESR (debug→debug BRAS error), then in ESR console that can be seen the corresponding error when user tries to authorise:

2019-08-16T17:31:22+07:00 %BRAS-E-ERROR: <bras_parse_traffic_class_attribute> class map 'INTERNET' not found

It is necessary to correct the name "Traffic class" in the account or access-list on ESR, so that they would match. After that it is necessary to reset the sessions of users, who managed to receive the wrong service. As a rule in such a situation you can reset sessions of all users: clear subscriber-control sessions.

  • Second redirect to the portal after selecting a tariff (error: "Unknown error Bras").

In this case you need to check at PCRF logs:

/var/log/eltex-pcrf/eltex-pcrf-radius.log
2021-07-29T03:42:59,587 [hz._hzInstance_1_dev.async.thread-2] ERROR AcctVerticle ?.(line:). Failed to find NAS secret for 100.123.0.55:50049

In case of such a log, it is necessary to check the presence of the address (the address must match the address in the logs) and the correctness of the password in the NAS table of the RADIUS server ("RADIUS" → "Access Point Management"):

  • Multiple redirects in the redirect bar to the portal

When connecting, a user can see multiple redirects in the redirect bar:

As a rule, the following error is displayed at the bottom of the page: "net:ERR_TOO_MANY_REDIRECTS".

This error occurs if the service that is assigned to the client uses a white list of URL filtering and redirects, and there is an error in the filtering list in the line that allows access to the portal. In the given example, this is the WELCOME service, which uses a whitelist. You need to open "PCRF Settings" → "URL lists" in your personal cabinet, open the corresponding list and check the correctness of the portal address.

4. Appendix

  • Differences in the way of forming L2 subnets in Personal Area in L2 and L3 switch-on schemes

There are two BRAS L2 and L3 switching schemes - in case of using L2 switching scheme L2 subnets are created manually in account by the system administrator. If L3 scheme is used - when subscribers' traffic is transmitted through L3 operator's network inside GRE tunnels - then in this case L2 subnets are created automatically and their absence in account is a sign of incorrect ESR BRAS addition to EMS. In this case it is necessary to check whether the "BRAS service" checkbox is ticked in the "Access" settings and whether the ESR operation mode is correctly specified - "Station".

  • Нет меток