...
| Блок кода |
|---|
wlc(config)# ip access-list extended DHCP wlc(config-acl)# rule 10 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol udp wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# match source-port port-range 68 wlc(config-acl-rule)# match destination-port port-range 67 wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit wlc(config-acl)# rule 11 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol udp wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# match source-port any wlc(config-acl-rule)# match destination-port port-range 53 wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit wlc(config-acl)# exit |
...
| Блок кода |
|---|
wlc(config)# ip access-list extended BYPASS wlc(config-acl)# rule 1 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol udp wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# match source-port port-range 68 wlc(config-acl-rule)# match destination-port port-range 67 wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit wlc(config-acl)# rule 2 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol udp wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# match source-port any wlc(config-acl-rule)# match destination-port port-range 53 wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit wlc(config)# ip access-list extended INTERNET wlc(config-acl)# rule 1 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol any wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit wlc(config)# ip access-list extended WELCOME wlc(config-acl)# rule 10 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol tcp wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# match source-port any wlc(config-acl-rule)# match destination-port port-range 443 wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit wlc(config-acl)# rule 20 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol tcp wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# match source-port any wlc(config-acl-rule)# match destination-port port-range 8443 |
| Блок кода |
|---|
wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit wlc(config-acl)# rule 30 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol tcp wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# match source-port any wlc(config-acl-rule)# match destination-port port-range 80 wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit wlc(config-acl)# rule 40 wlc(config-acl-rule)# action permit wlc(config-acl-rule)# match protocol tcp wlc(config-acl-rule)# match source-address any wlc(config-acl-rule)# match destination-address any wlc(config-acl-rule)# match source-port any wlc(config-acl-rule)# match destination-port port-range 8080 wlc(config-acl-rule)# enable wlc(config-acl-rule)# exit |
...
| Блок кода |
|---|
wlc(config)# subscriber-control
wlc(config-subscriber-control)# aaa das-profile bras_das
wlc(config-subscriber-control)# aaa sessions-radius-profile bras_radius
wlc(config-subscriber-control)# aaa services-radius-profile bras_radius_servers
wlc(config-subscriber-control)# nas-ip-address 192.168.1.1
wlc(config-subscriber-control)# session mac-authentication
wlc(config-subscriber-control)# bypass-traffic-acl BYPASS
wlc(config-subscriber-control)# default-service
wlc(config-subscriber-default-service)# class-map BYPASS
wlc(config-subscriber-default-service)# filter-name local defaultserv
wlc(config-subscriber-default-service)# filter-action permit
wlc(config-subscriber-default-service)# default-action redirect http://192.
168.1.2:8080/eltex_portal
wlc(config-subscriber-default-service)# session-timeout 121
wlc(config-subscriber-default-service)# exit
wlc(config-subscriber-control)# enable
wlc(config-subscriber-control)# exit |
...