On the enterprise network shown in Figure 1, mobile employees access resources at the headquarters through SSL VPN tunnels. The mobile employees are required to use the specified devices to access resources at the headquarters, which prevents unauthorized devices from accessing the enterprise network. To meet the requirement, the network administrator at the headquarters needs to configure MAC address authentication on the virtual gateway to authenticate the MAC addresses of user devices.
MAC address authentication can be used in multiple service scenarios, such as web proxy, file sharing, port forwarding, and network extension. Which services users access is not the focus of this section. In this section, network extension is used as an example.
If you use the specified device with MAC address 286e-xxxx-xxxx for login, the login succeeds.
If you use an authorized device whose MAC address is not 286e-xxxx-xxxx for login, the system displays MAC address authentication failed.

# aaa authentication-scheme default authorization-scheme default domain default service-type ssl-vpn internet-access mode password reference user current-domain # interface GigabitEthernet0/0/1 ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/2 ip address 10.2.0.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/2 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 #****BEGIN***gateway**1****# v-gateway gateway basic ssl version tlsv11 tlsv12 ssl timeout 5 ssl lifecycle 1440 ssl ciphersuit custom aes256-sha aes128-sha service network-extension enable network-extension keep-alive enable network-extension keep-alive interval 120 network-extension netpool 172.16.1.1 172.16.1.100 255.255.255.0 netpool 172.16.1.1 default network-extension manual-route 10.2.0.0 255.255.255.0 security policy-default-action permit vt-src-ip certification cert-anonymous cert-field user-filter subject cn group-filter subject cn certification cert-anonymous filter-policy permit-all certification cert-challenge cert-field user-filter subject cn certification user-cert-filter key-usage any undo public-user enable mac-authentication enable mac-group mac-group mac-address 286e-d488-dc67 bind user-group /default/group1 mac-group mac-group hostchecker cachecleaner role role default role default condition all role role role role condition all role role network-extension enable #****END****# # security-policy rule name policy01 source-zone untrust destination-zone local service https destination-address 1.1.1.0 mask 255.255.255.0 action permit rule name policy02 source-zone untrust destination-zone trust destination-address 10.2.0.0 mask 255.255.255.0 action permit # The following configurations are stored in the database, not described in the configuration file. user-manage user user0001 domain default password %$%$j@p.U.0bwNQv9nE#tf]G-+"v%$%$ parent-group /default/group1 v-gateway gateway vpndb group /default/group1 role role role1 group /default/group1