Привет, я понимаю, что это очень элементарные вещи, я прочитал немало руководств и посмотрел видео, но почему-то у меня просто не получается настроить проброс портов на моём Hex. Я выбрал автоматическую конфигурацию по умолчанию, и моя сеть устроена так: симметричное подключение 1G, которое идёт через Fiber Media Converter (режим моста, динамический публичный IP) → в ether1 RB750GR, оттуда через ether2 → на TP-link 8-портовый "простой" коммутатор, к которому подключено всё остальное. WAN-соединение работает нормально, скорость при этом приличная — примерно по 900 мбит/с туда и обратно. Вот моя конфигурация:
# oct/02/2022 12:18:46 by RouterOS 6.49.6
# software id = BIWD-CH4N
# model = RB750Gr3
# serial number = CC210FD2F930
/interface bridge
add admin-mac=XX:XX:XXX:XX auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] name=ether1_WAN
set [ find default-name=ether2 ] name=ether2_LAN
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=10.0.0.3-10.0.0.99
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether2_LAN
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface detect-internet
set detect-interface-list=all
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1_WAN list=WAN
/ip address
add address=10.0.0.2/24 comment=defconf interface=ether2_LAN network=10.0.0.0
/ip arp
add address=10.0.0.10 comment=Server interface=bridge mac-address=XX:XX:XX:XX:XX
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add comment=defconf disabled=no interface=ether1_WAN
/ip dhcp-server lease
add address=10.0.0.9 client-id=xxxxxxxxx mac-address=xxxxxxx server=defconf
/ip dhcp-server network
add address=10.0.0.0/24 comment=defconf gateway=10.0.0.2 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=10.0.0.2 comment=defconf name=router.lan
/ip firewall address-list
add address=cc210fd2f930.sn.mynetname.net list=WAN_list
add address=10.0.0.0/24 list=LAN_list
/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
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" 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
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="HAIRPIN NAT" dst-address=10.0.0.0/24 src-address=10.0.0.0/24
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether1_WAN
add action=dst-nat chain=dstnat dst-port=34343 in-interface=ether1_WAN protocol=tcp to-addresses=10.0.0.9 to-ports=34343
add action=dst-nat chain=dstnat dst-port=aaa protocol=tcp to-addresses=10.0.0.10 to-ports=aaa
add action=dst-nat chain=dstnat dst-port=80 in-interface=ether1_WAN protocol=tcp to-addresses=10.0.0.10 to-ports=80
/ip upnp
set show-dummy-rule=no
/system clock
set time-zone-name=xxx
/system ntp client
set enabled=yes primary-ntp=162.159.200.123 secondary-ntp=188.165.138.207
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
10.0.0.10 — мой домашний сервер, я пытался открыть порт для HTTP и SSH, 10.0.0.9 — мой рабочий комп. После некоторых манипуляций мне удалось настроить работающий hairpin NAT, и я могу зайти на домашний сервер через SSH по нестандартному порту внутри LAN, используя доменное имя, но внешние подключения так и не проходят, что бы я ни делал. У меня есть домен для сервера, я могу обращаться к нему по доменному имени внутри LAN, но снаружи доступ не работает.
# oct/02/2022 12:18:46 by RouterOS 6.49.6
# software id = BIWD-CH4N
# model = RB750Gr3
# serial number = CC210FD2F930
/interface bridge
add admin-mac=XX:XX:XXX:XX auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] name=ether1_WAN
set [ find default-name=ether2 ] name=ether2_LAN
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=10.0.0.3-10.0.0.99
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether2_LAN
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface detect-internet
set detect-interface-list=all
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1_WAN list=WAN
/ip address
add address=10.0.0.2/24 comment=defconf interface=ether2_LAN network=10.0.0.0
/ip arp
add address=10.0.0.10 comment=Server interface=bridge mac-address=XX:XX:XX:XX:XX
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add comment=defconf disabled=no interface=ether1_WAN
/ip dhcp-server lease
add address=10.0.0.9 client-id=xxxxxxxxx mac-address=xxxxxxx server=defconf
/ip dhcp-server network
add address=10.0.0.0/24 comment=defconf gateway=10.0.0.2 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=10.0.0.2 comment=defconf name=router.lan
/ip firewall address-list
add address=cc210fd2f930.sn.mynetname.net list=WAN_list
add address=10.0.0.0/24 list=LAN_list
/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
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" 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
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="HAIRPIN NAT" dst-address=10.0.0.0/24 src-address=10.0.0.0/24
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether1_WAN
add action=dst-nat chain=dstnat dst-port=34343 in-interface=ether1_WAN protocol=tcp to-addresses=10.0.0.9 to-ports=34343
add action=dst-nat chain=dstnat dst-port=aaa protocol=tcp to-addresses=10.0.0.10 to-ports=aaa
add action=dst-nat chain=dstnat dst-port=80 in-interface=ether1_WAN protocol=tcp to-addresses=10.0.0.10 to-ports=80
/ip upnp
set show-dummy-rule=no
/system clock
set time-zone-name=xxx
/system ntp client
set enabled=yes primary-ntp=162.159.200.123 secondary-ntp=188.165.138.207
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
10.0.0.10 — мой домашний сервер, я пытался открыть порт для HTTP и SSH, 10.0.0.9 — мой рабочий комп. После некоторых манипуляций мне удалось настроить работающий hairpin NAT, и я могу зайти на домашний сервер через SSH по нестандартному порту внутри LAN, используя доменное имя, но внешние подключения так и не проходят, что бы я ни делал. У меня есть домен для сервера, я могу обращаться к нему по доменному имени внутри LAN, но снаружи доступ не работает.
