Проброс порта mikrotik

Ответить
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

Проброс порта mikrotik

Сообщение ya »

Код: Выделить всё

/ip firewall nat
add action=dst-nat chain=dstnat in-interface=ether1 dst-port=внешний_порт protocol=tcp to-addresses=192.168.8.210 to-ports=порт_локального_хоста
порты для cifs

Код: Выделить всё

# The router doesn't need SMB access.
-A INPUT -s 192.168.1.1 -p udp --dport 137 -j REJECT
-A INPUT -s 192.168.1.1 -p udp --dport 138 -j REJECT
-A INPUT -s 192.168.1.1 -p tcp --dport 139 -j REJECT
-A INPUT -s 192.168.1.1 -p tcp --dport 445 -j REJECT

# Actual Samba ports
-A INPUT -s 192.168.1.0/24 -m state --state NEW -p udp --dport 137 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -m state --state NEW -p udp --dport 138 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 139 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 445 -j ACCEPT
Проброс cifs в локальную сеть на mikrotik

Код: Выделить всё

/ip firewall nat add action=dst-nat chain=dstnat in-interface=ether1 dst-port=139 protocol=tcp to-addresses=192.168.88.254 to-ports=139
/ip firewall nat add action=dst-nat chain=dstnat in-interface=ether1 dst-port=445 protocol=tcp to-addresses=192.168.88.254 to-ports=445                 
/ip firewall nat add action=dst-nat chain=dstnat in-interface=ether1 dst-port=137 protocol=udp to-addresses=192.168.88.254 to-ports=137
/ip firewall nat add action=dst-nat chain=dstnat in-interface=ether1 dst-port=138 protocol=udp to-addresses=192.168.88.254 to-ports=138
Монтирование cifs
https://sys.hardprivate.com/viewtopic.php?p=1277#p1277

Порт микротика winbox 8291
Ответить