LINUX.ORG.RU

История изменений

Исправление petav, (текущая версия) :

Mikrotik CapsMan

# apr/24/2017 12:23:49 by RouterOS 6.35.4
# software id = 7WTA-CVP2
#
/caps-man channel
add band=2ghz-b/g/n extension-channel=Ce frequency=2412 name=channel1 \
    tx-power=28 width=20
/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
/ip neighbor discovery
set ether1 discover=no
/caps-man datapath
add bridge=bridge1 local-forwarding=no name=datapath1
/caps-man security
add authentication-types=wpa2-psk encryption=aes-ccm name=security1 \
    passphrase=12342135423sdfsdf987987
/caps-man configuration
add channel=channel1 country=russia datapath=datapath1 mode=ap name=cfg1 \
    rx-chains=0,1,2 security=security1 ssid=mupmuk tx-chains=0,1,2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.239.20-192.168.239.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge1 name=defconf
/caps-man manager
set enabled=yes
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=cfg1
/interface bridge port
add bridge=bridge1 interface=ether2-master
/ip address
add address=192.168.239.1/24 comment=defconf interface=ether2-master network=\
    192.168.239.0
add address=6.288.318.10/24 interface=ether1 network=6.288.318.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid interface=ether1
/ip dhcp-server network
add address=192.168.239.0/24 comment=defconf dns-server=8.8.8.8,8.8.4.4 \
    gateway=192.168.239.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.239.1 name=router
/ip firewall filter
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add chain=forward comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface=ether1
add action=drop chain=input in-interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    out-interface=ether1
/ip route
add distance=1 gateway=6.288.318.1
/system clock
set time-zone-name=Europe/Moscow
/system identity
set name=MikroTikid19
/system routerboard settings
set cpu-frequency=650MHz protected-routerboot=disabled
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2-master
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2-master

Mikrotik cAP

# apr/22/2017 19:38:17 by RouterOS 6.35.4
# software id = WT3T-L1KJ
#
/interface bridge
add name=bridge1
/interface wireless
# managed by CAPsMAN
# channel: 2412/20-Ce/gn(20dBm), SSID: mupmuk, CAPsMAN forwarding
set [ find default-name=wlan1 ] proprietary-extensions=pre-2.9.25 ssid=\
    MikroTik
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=wlan1
/interface wireless cap
set bridge=bridge1 caps-man-addresses=192.168.239.1 discovery-interfaces=\
    bridge1 enabled=yes interfaces=wlan1
/ip address
add address=192.168.239.3/24 interface=ether1 network=192.168.239.0
/ip dhcp-client
add dhcp-options=hostname,clientid interface=wlan1
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=192.168.239.1
/system clock
set time-zone-name=Europe/Moscow
/system identity
set name=MikrotikcAPid20
/system leds
set 0 type=ap-cap
/system routerboard settings
set cpu-frequency=650MHz protected-routerboot=disabled

P.S.: тег CODE не работает в теге CUT поэтому портянка

Исходная версия petav, :

# apr/24/2017 12:23:49 by RouterOS 6.35.4
# software id = 7WTA-CVP2
#
/caps-man channel
add band=2ghz-b/g/n extension-channel=Ce frequency=2412 name=channel1 \
    tx-power=28 width=20
/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
/ip neighbor discovery
set ether1 discover=no
/caps-man datapath
add bridge=bridge1 local-forwarding=no name=datapath1
/caps-man security
add authentication-types=wpa2-psk encryption=aes-ccm name=security1 \
    passphrase=12342135423sdfsdf987987
/caps-man configuration
add channel=channel1 country=russia datapath=datapath1 mode=ap name=cfg1 \
    rx-chains=0,1,2 security=security1 ssid=mupmuk tx-chains=0,1,2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.239.20-192.168.239.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge1 name=defconf
/caps-man manager
set enabled=yes
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=cfg1
/interface bridge port
add bridge=bridge1 interface=ether2-master
/ip address
add address=192.168.239.1/24 comment=defconf interface=ether2-master network=\
    192.168.239.0
add address=6.288.318.10/24 interface=ether1 network=6.288.318.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid interface=ether1
/ip dhcp-server network
add address=192.168.239.0/24 comment=defconf dns-server=8.8.8.8,8.8.4.4 \
    gateway=192.168.239.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.239.1 name=router
/ip firewall filter
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add chain=forward comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface=ether1
add action=drop chain=input in-interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    out-interface=ether1
/ip route
add distance=1 gateway=6.288.318.1
/system clock
set time-zone-name=Europe/Moscow
/system identity
set name=MikroTikid19
/system routerboard settings
set cpu-frequency=650MHz protected-routerboot=disabled
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2-master
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2-master
# apr/22/2017 19:38:17 by RouterOS 6.35.4
# software id = WT3T-L1KJ
#
/interface bridge
add name=bridge1
/interface wireless
# managed by CAPsMAN
# channel: 2412/20-Ce/gn(20dBm), SSID: mupmuk, CAPsMAN forwarding
set [ find default-name=wlan1 ] proprietary-extensions=pre-2.9.25 ssid=\
    MikroTik
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=wlan1
/interface wireless cap
set bridge=bridge1 caps-man-addresses=192.168.239.1 discovery-interfaces=\
    bridge1 enabled=yes interfaces=wlan1
/ip address
add address=192.168.239.3/24 interface=ether1 network=192.168.239.0
/ip dhcp-client
add dhcp-options=hostname,clientid interface=wlan1
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=192.168.239.1
/system clock
set time-zone-name=Europe/Moscow
/system identity
set name=MikrotikcAPid20
/system leds
set 0 type=ap-cap
/system routerboard settings
set cpu-frequency=650MHz protected-routerboot=disabled
[/cut]