Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # feb/21/2019 10:35:32 by RouterOS 6.43.12
- # software id = 637D-459X
- #
- # model = 951Ui-2nD
- # serial number = 71A3066E9DAC
- /caps-man channel
- add band=2ghz-onlyn control-channel-width=20mhz extension-channel=XX \
- frequency=2422,2457,2467 name=channel3-10-12 tx-power=10
- /interface bridge
- add admin-mac=6C:3B:6B:A2:FA:7A auto-mac=no comment=defconf name=bridge
- /interface wireless
- # managed by CAPsMAN
- # channel: 2422/20-Ce/gn(10dBm), SSID: Test-1, CAPsMAN forwarding
- set [ find default-name=wlan1 ] band=2ghz-onlyn channel-width=20/40mhz-XX \
- country=russia distance=indoors frequency=auto ssid="" wireless-protocol=\
- 802.11
- /caps-man interface
- add disabled=no mac-address=00:00:00:00:00:00 master-interface=none name=cap1 \
- radio-mac=00:00:00:00:00:00
- /caps-man datapath
- add bridge=bridge client-to-client-forwarding=yes name=datapath1
- /caps-man security
- add authentication-types=wpa2-psk encryption=aes-ccm,tkip group-encryption=\
- aes-ccm name=security1 passphrase=tCUDtUJkWd
- /caps-man configuration
- add channel=channel3-10-12 datapath=datapath1 mode=ap name=cfg1 rx-chains=\
- 0,1,2 security=security1 ssid=Test-1 tx-chains=0,1,2
- /interface list
- add comment=defconf name=WAN
- add comment=defconf name=LAN
- /interface wireless security-profiles
- set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=\
- dynamic-keys supplicant-identity=MikroTik wpa-pre-shared-key=tCUDtUJkWd \
- wpa2-pre-shared-key=tCUDtUJkWd
- /ip hotspot profile
- set [ find default=yes ] html-directory=flash/hotspot
- /ip pool
- add name=dhcp ranges=192.168.10.10-192.168.10.254
- /ip dhcp-server
- add address-pool=dhcp disabled=no interface=bridge name=defconf
- /caps-man manager
- set enabled=yes
- /caps-man provisioning
- add action=create-dynamic-enabled master-configuration=cfg1
- /interface bridge port
- add bridge=bridge comment=defconf interface=ether2
- add bridge=bridge comment=defconf interface=ether3
- add bridge=bridge comment=defconf interface=ether4
- add bridge=bridge comment=defconf interface=ether5
- add bridge=bridge comment=defconf interface=wlan1
- /ip neighbor discovery-settings
- set discover-interface-list=LAN
- /interface list member
- add interface=wlan1 list=WAN
- add interface=ether1 list=LAN
- add interface=ether2 list=LAN
- add interface=ether3 list=LAN
- add interface=ether4 list=LAN
- add interface=ether5 list=LAN
- /interface wireless cap
- #
- set bridge=bridge caps-man-addresses=127.0.0.1 discovery-interfaces=bridge \
- enabled=yes interfaces=wlan1
- /ip address
- add address=192.168.10.1/24 comment=defconf interface=bridge network=\
- 192.168.10.0
- /ip dhcp-client
- add comment=defconf dhcp-options=hostname,clientid disabled=no interface=\
- ether1
- /ip dhcp-server network
- add address=192.168.10.0/24 comment=defconf dns-server=192.168.10.1,1.1.1.1 \
- gateway=192.168.10.1 netmask=24
- /ip dns
- set allow-remote-requests=yes
- /ip dns static
- add address=192.168.10.1 name=router.lan
- /ip firewall filter
- add action=accept chain=input comment=\
- "defconf: accept established,related,untracked" connection-state=\
- established,related,untracked
- add action=drop chain=input comment="defconf: drop invalid" connection-state=\
- invalid disabled=yes
- add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
- add action=drop chain=input comment="defconf: drop all not coming from LAN" \
- disabled=yes in-interface-list=!LAN
- add action=accept chain=forward comment="defconf: accept in ipsec policy" \
- ipsec-policy=in,ipsec
- add action=accept chain=forward comment="defconf: accept out ipsec policy" \
- ipsec-policy=out,ipsec
- add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
- connection-state=established,related
- add action=accept chain=forward comment=\
- "defconf: accept established,related, untracked" connection-state=\
- established,related,untracked
- add action=drop chain=forward comment="defconf: drop invalid" \
- connection-state=invalid disabled=yes
- add action=drop chain=forward comment=\
- "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
- connection-state=new in-interface-list=WAN
- /ip firewall nat
- add action=masquerade chain=srcnat comment="defconf: masquerade" \
- ipsec-policy=out,none out-interface-list=WAN
- /ip upnp
- set enabled=yes
- /ip upnp interfaces
- add interface=bridge type=internal
- add interface=ether1 type=external
- /system clock
- set time-zone-autodetect=no time-zone-name=Europe/Moscow
- /system identity
- set name=hAP1
- /tool mac-server
- set allowed-interface-list=LAN
- /tool mac-server mac-winbox
- set allowed-interface-list=LAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement