Re: Запретить трафик на порту
Добавлено: 08 апр 2016, 17:58
avs
Снял, не помогло. Пробовал сделать telnet на 22 порт. Тоже нет ответа.
Завтра попробую на чистой конфигурации сделать.
Это спойлер, создание которого ТС не осиливает. Непонятно, как он собирается осилить настройку Микротика...
Код: Выделить всё
# apr/08/2016 11:55:24 by RouterOS 6.7
# software id = AM1C-RYNU
#
/interface bridge
add admin-mac=D4:CA:6D:A2:47:FA auto-mac=no l2mtu=1598 name=LanNAT \
protocol-mode=rstp
add l2mtu=1598 name=bridgeITS
/interface ethernet
set [ find default-name=ether1 ] name=ether1-WAN
set [ find default-name=ether6 ] name=ether6-WAN
set [ find default-name=sfp1 ] name=sfp1-gateway
/ip neighbor discovery
set ether1-WAN discover=no
set sfp1-gateway discover=no
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
mac-cookie-timeout=3d
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=dhcp_pool1 ranges=172.16.10.20-172.16.10.100
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=LanNAT lease-time=1d name=\
dhcp1
/port
set 0 name=serial0
/interface bridge filter
add chain=forward dst-port=22 ip-protocol=tcp mac-protocol=ip
add chain=forward ip-protocol=icmp mac-protocol=ip
add chain=forward disabled=yes
add action=drop chain=forward out-interface=ether5
add action=drop chain=forward in-interface=ether5
/interface bridge port
add bridge=bridgeITS interface=ether2
add bridge=LanNAT interface=ether7
add bridge=LanNAT interface=ether8
add bridge=LanNAT interface=ether9
add bridge=LanNAT interface=ether10
add bridge=bridgeITS interface=ether3
add bridge=bridgeITS interface=ether4
add bridge=bridgeITS interface=ether5
/ip address
add address=172.16.10.1/24 interface=LanNAT network=172.16.10.0
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid disabled=no \
interface=sfp1-gateway
add comment="default configuration" dhcp-options=hostname,clientid disabled=no \
interface=ether1-WAN
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
interface=ether6-WAN
/ip dhcp-server network
add address=172.16.10.0/24 gateway=172.16.10.1
add address=192.168.88.0/24 comment="default configuration" dns-server=\
192.168.88.1 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=192.168.10.1
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=drop chain=forward disabled=yes src-address=192.168.10.82
add action=drop chain=forward disabled=yes dst-address=192.168.10.82
add action=drop chain=forward disabled=yes in-interface=ether5
add action=drop chain=forward disabled=yes out-interface=ether5
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=established
add chain=input comment="default configuration" connection-state=related
add action=drop chain=input comment="default configuration" in-interface=\
sfp1-gateway
add chain=forward comment="default configuration" connection-state=established
add chain=forward comment="default configuration" connection-state=related
add action=drop chain=forward comment="default configuration" connection-state=\
invalid
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" \
out-interface=sfp1-gateway
add action=masquerade chain=srcnat comment="default configuration" \
out-interface=ether1-WAN
add action=masquerade chain=srcnat out-interface=ether6-WAN
/lcd interface
set sfp1-gateway interface=sfp1-gateway
set ether1-WAN interface=ether1-WAN
set ether2 interface=ether2
set ether3 interface=ether3
set ether4 interface=ether4
set ether5 interface=ether5
set ether6-WAN interface=ether6-WAN
set ether7 interface=ether7
set ether8 interface=ether8
set ether9 interface=ether9
set ether10 interface=ether10
/system clock
set time-zone-name=Etc/GMT+3
/system ntp client
set enabled=yes mode=unicast primary-ntp=178.124.164.107
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=ether6-WAN
add interface=ether7
add interface=ether8
add interface=ether9
add interface=LanNAT
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=ether6-WAN
add interface=ether7
add interface=ether8
add interface=ether9
add interface=LanNAT
Завтра попробую на чистой конфигурации сделать.