首页 科技问答 天高夜静,关于portal认证方式

天高夜静,关于portal认证方式

科技问答 230
1677252120,CRM论坛(CRMbbs.com)——一个让用户更懂CRM的垂直性行业内容平台,CRM论坛致力于互联网、客户管理、销售管理、SCRM私域流量内容输出5年。 如果您有好的内容,欢迎向我们投稿,共建CRM多元化生态体系,创建CRM客户管理一体化生态解决方案。内容来源:知了社区天高夜静 天高夜静 零段 粉丝:1人 关注:0人

问题描述:

如何设置portal认证?认证后才能接入外网,未认证无法上外网

目前组网方式   F100防火墙做的NAT----dhCP由核心交换机分配,portal认证是在核心上做认证还是防火墙上面?设备型号如下:


组网及组网描述:

组网方式

防火墙--核心交换机--二层交换机

8小时前提问

建议在交换机做


1.

1. 组网需求

·     用户主机与接入设备Switch直接相连,采用直接方式的Portal认证。用户通过手工配置或DHCP获取的一个公网IP地址进行认证,在通过Portal认证前,只能访问Portal Web服务器;在通过Portal认证后,可以使用此IP地址访问非受限互联网资源。

·     Switch同时承担Portal Web服务器和Portal认证服务器的职责。

·     采用RADIUS服务器作为认证/计费服务器。

·     配置本地Portal Web服务使用HTTP协议,且HTTP服务侦听的TCP端口号为2331。

2. 组网图

图1-23 使用本地Portal Web服务的直接Portal认证组网图

 

3. 配置步骤

·     按照组网图配置设备各接口的IP地址,保证启动Portal之前各主机、服务器和设备之间的路由可达。

·     完成RADIUS服务器上的配置,保证用户的认证/计费功能正常运行。

 

     配置RADIUS方案

# 创建名称为rs1的RADIUS方案并进入该方案视图。

<Switch> system-view

[Switch] radius scheme rs1

# 配置RADIUS方案的主认证和主计费服务器及其通信密钥。

[Switch-radius-rs1] primary authentication 192.168.0.112

[Switch-radius-rs1] primary accounting 192.168.0.112

[Switch-radius-rs1] key authentication simple radius

[Switch-radius-rs1] key accounting simple radius

# 配置发送给RADIUS服务器的用户名不携带ISP域名。

[Switch-radius-rs1] user-name-format without-domain

[Switch-radius-rs1] quit

# 开启RADIUS session control功能。

[Switch] radius session-control enable

     配置认证域

# 创建并进入名称为dm1的ISP域。

[Switch] domain dm1

# 配置ISP域使用的RADIUS方案rs1。

[Switch-isp-dm1] authentication portal radius-scheme rs1

[Switch-isp-dm1] authorization portal radius-scheme rs1

[Switch-isp-dm1] accounting portal radius-scheme rs1

[Switch-isp-dm1] quit

# 配置系统缺省的ISP域dm1,所有接入用户共用此缺省域的认证和计费方式。若用户登录时输入的用户名未携带ISP域名,则使用缺省域下的认证方案。

[Switch] domain default enable dm1

     配置Portal认证

# 配置Portal Web服务器的URL为http://2.2.2.1:2331/portal(Portal Web服务器URL中的IP地址可配置为设备上与客户端路由可达的三层接口IP地址或除127.0.0.1以外的Loopback接口的IP地址)。

[Switch] portal web-server newpt

[Switch-portal-websvr-newpt] url http://2.2.2.1:2331/portal

[Switch-portal-websvr-newpt] quit

# 在接口Vlan-interface100上开启直接方式的Portal认证。

[Switch] interface vlan-interface 100

[Switch–Vlan-interface100] portal enable method direct

# 在接口Vlan-interface100上引用Portal Web服务器newpt。

[Switch–Vlan-interface100] portal apply web-server newpt

[Switch–Vlan-interface100] quit

# 进入本地Portal Web服务视图,并指定使用HTTP协议和客户端交互认证信息。

[Switch] portal local-web-server http

# 配置本地Portal Web服务提供的缺省认证页面文件为defaultfile.zip(设备的存储介质的根目录下必须已存在该认证页面文件,否则功能不生效)。

[Switch–portal-local-websvr-http] default-logon-page defaultfile.zip

# 配置本地Portal Web服务的HTTP服务侦听的TCP端口号为2331。

[Switch–portal-local-webserver-http] tcp-port 2331

[Switch–portal-local-websvr-http] quit

4. 验证配置

# 以上配置完成后,通过执行以下显示命令可查看Portal配置是否生效。

[Switch] display portal interface vlan-interface 100

 Portal information of Vlan-interface 100

     Authorization                   Strict checking

     ACL                             Disabled

     User profile                    Disabled

 IPv4:

     Portal status: Enabled

     Portal authentication method: Direct

     Portal web server: newpt

     Portal mac-trigger-server: Not configured

     Authentication domain: Not configured

     User-dhcp-only: Disabled

     Pre-auth IP pool: Not configured

     Max Portal users: Not configured

     Bas-ip: Not configured

     User detection:  Not configured

     Action for server detection:

         Server type    Server name                        Action

         --             --                                 --

     Layer3 source network:

         IP address               Mask

 

     Destination authenticate subnet:

         IP address               Mask

IPv6:

     Portal status: Disabled

     Portal authentication method: Disabled

     Portal web server: Not configured

     Portal mac-trigger-server: Not configured

     Authentication domain: Not configured

     User-dhcp-only: Disabled

     Pre-auth IP pool: Not configured

     Max Portal users: Not configured

     Bas-ipv6: Not configured

     User detection: Not configured

     Action for server detection:

         Server type    Server name                        Action

         --             --                                 --

     Layer3 source network:

         IP address                                        Prefix length

 

     Destination authenticate subnet:

         IP address                                        Prefix length

使用本地Portal Web服务进行Portal认证的组网环境中,只支持通过网页方式进行Portal认证。用户在通过认证前,只能访问认证页面http://2.2.2.1:2331/portal,且发起的Web访问均被重定向到该认证页面,在通过认证后,可访问非受限的互联网资源。

# Portal用户认证通过后,可通过执行以下显示命令查看Switch上生成的Portal在线用户信息。

[Switch] display portal user interface vlan-interface 100

Total portal users: 1

Username: abc

  Portal server: newpt

  State: Online

  VPN instance: N/A

  MAC                IP                 VLAN   Interface

  0015-e9a6-7cfe     2.2.2.2            100     Vlan-interface100

  Authorization information:

    DHCP IP pool: N/A

    User profile: N/A

    Session group profile: N/A

    ACL number: N/A

    Inbound CAR: N/A

    Outbound CAR: N/A

8小时前回答

暂无

你这个情况最好做在核心上面。

7小时前回答

暂无

你正在,关于portal认证方式