zoukankan      html  css  js  c++  java
  • [daily][netctl] netctl有线网络连接使用802.1x进行验证上网

    由于企业安全管理要求,需要验证上网。验证方式是账号密码+802.1x

    目前先调研了一下方案,还没有实施,大概调研结果如下:

    先参考:https://jlk.fjfi.cvut.cz/arch/manpages/man/netctl.profile.5

    以及:https://wiki.archlinux.org/index.php/WPA_supplicant#Advanced_usage

    https://jlk.fjfi.cvut.cz/arch/manpages/man/wpa_supplicant.conf.5

    netctl的关键选项:

    Next to the ip options, the following are understood for connections of the ‘ethernet’ type:
    Auth8021X=
    Set to ‘yes’ to use 802.1x authentication.
    WPAConfigFile=
    Path to a wpa_supplicant configuration file. Defaults to /etc/wpa_supplicant.conf.
    WPADriver=
    The wpa_supplicant driver to use for 802.1x authentication. Defaults to ‘wired’.

    wpa的关键选项:

    /etc/wpa_supplicant/wpa_supplicant-wired-adapter.conf
    
    ctrl_interface=/var/run/wpa_supplicant
    ap_scan=0
    network={
      key_mgmt=IEEE8021X
      eap=PEAP
      identity="user_name"
      password="user_password"
      phase2="autheap=MSCHAPV2"
    }

    测试一下,好使了,如图:

    如果同样的配置换成无线网卡呢?

    只需要调整wpa_supplicant.conf即可

    [root@T7 netctl]# cat /etc/wpa_supplicant.conf 
    ctrl_interface=DIR=/var/run/wpa_supplicant
    network={
            ssid="XX"
            key_mgmt=WPA-EAP
            eap=PEAP
            identity="cxxxxxx"
            password="Cxxxxx"
            phase2="autheap=MSCHAPV2"
    }

    见:man wpa_supplicant.conf 中的配置例子二。

  • 相关阅读:
    JQuery源码解读 JQ框架简化( 妙味讲堂
    Mia Fringe官网会员须知
    require.js
    :before与::before的区别
    css----苹果移动端以及小程序滚动模块卡顿的处理
    Vue使用国密SM4加密
    vue + echarts + echarts-gl 实现3D 环状图
    React Hook 初学
    常用阻止默认行为的两种方式
    理解事件触发,事件捕获,事件冒泡
  • 原文地址:https://www.cnblogs.com/hugetong/p/8718750.html
Copyright © 2011-2022 走看看