OAUTH
return
sys
domain cloud
authentication portal none
authorization portal none
accounting portal none
authorization-attribute idle-cut 30
authorization-attribute session-timeout 360
return
sys
portal local-web-server http
portal local-web-server https
return
sys
portal safe-redirect enable
portal safe-redirect user-agent Android
portal safe-redirect user-agent CaptiveNetworkSupport
portal safe-redirect user-agent MicroMessenger
portal safe-redirect user-agent Mozilla
portal safe-redirect user-agent WeChat
portal safe-redirect user-agent micromessenger
return
sys
u p fr 2346257224
u p fr 2346257225
u p fr 2346257226
u p fr 2346257227
u p fr 2346257228
u p fr 2346257229
u p fr 2346257230
u p fr 2346257231
u p fr 2346257232
u p fr 2346257233
u p fr 2346257234
u p fr 2346257235
u p fr 2346257236
u p fr 2346257237
u p fr 2346257238
u p fr 2346257239
u p fr 2346257240
u p fr 2346257241
u p fr 2346257242
u p fr 2346257243
p fr 2346257224 dest open.weixin.qq.com
p fr 2346257225 dest ip any tcp 5223
p fr 2346257226 dest ip 114.114.114.114 255.255.255.255
p fr 2346257227 dest ip any udp 53
p fr 2346257228 dest ip any tcp 53
p fr 2346257229 dest oasisauth.h3c.com
p fr 2346257230 dest short.weixin.qq.com
p fr 2346257231 dest mp.weixin.qq.com
p fr 2346257232 dest long.weixin.qq.com
p fr 2346257233 dest dns.weixin.qq.com
p fr 2346257234 dest minorshort.weixin.qq.com
p fr 2346257235 dest extshort.weixin.qq.com
p fr 2346257236 dest szshort.weixin.qq.com
p fr 2346257237 dest szlong.weixin.qq.com
p fr 2346257238 dest szexshort.weixin.qq.com
p fr 2346257239 dest isdspeed.qq.com
p fr 2346257240 dest wx.qlogo.cn
p fr 2346257241 dest long.open.weixin.qq.com
p fr 2346257242 dest res.wx.qq.com
p fr 2346257243 dest wifi.weixin.qq.com
return
sys
portal mac-trigger-server cloud
binding-retry 2 interval 3
cloud-binding enable
return
sys
portal web-server vlan
url http://oasisauth.h3c.com/portal/protocol
server-type oauth
url-parameter nas_id value 947752
url-parameter vlan vlan
if-match original-url http://10.168.168.168 temp-pass
if-match user-agent CaptiveNetworkSupport redirect-url http://oasisauth.h3c.com/generate_404
if-match user-agent Dalvik/2.1.0(Linux;U;Android7.0;HUAWEI redirect-url http://oasisauth.h3c.com/generate_404
if-match original-url http://captive.apple.com user-agent Mozilla temp-pass redirect-url http://oasisauth.h3c.com/portal/protocol
if-match original-url http://www.apple.com user-agent Mozilla temp-pass redirect-url http://oasisauth.h3c.com/portal/protocol
if-match original-url http://o2o.gtimg.com/wifi/echo temp-pass redirect-url http://oasisauth.h3c.com/generate_404
return
sys
interface Vlan-interface1
portal enable method direct
portal domain cloud
portal apply web-server vlan
portal temp-pass period 20 enable