Mục tiêu thực hành:
- Cấu hình NAT Port (Telnet) trên Router MikroTik.
- Thiết lập lưu lượng Management Traffic luôn đi theo hướng WAN2 (VNPT) trên Router MikroTik.
Các bước triển khai:
Cấu hình NAT Port (Telnet) trên Router MikroTik.
- Từ ngoài Internet khi telnet tới IP WAN VNPT 14.241.170.169 bằng Port 2301 sẽ kết nối được tới thiết bị Switch 192.168.88.22 (Telnet Service đang mở trên Port 3001).
/ip firewall nat add chain=dstnat action=dst-nat to-addresses=192.168.88.2 to-ports=3001 protocol=tcp dst-address=14.241.170.169 in-interface=PPPoE-VNPT-Eth4 dst-port=2301
Thiết lập lưu lượng Management Traffic luôn đi theo hướng WAN2 (VNPT) trên Router MikroTik.
/ip route add dst-address=0.0.0.0/0 gateway=123.29.12.61 routing-mark=PPPoE-VNPT/ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=PPPoE-VNPT passthrough=yes src-address=192.168.88.0/24 dst-address-type=!local/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=PPPoE-VNPT passthrough=no src-address=192.168.88.0/24 dst-address-type=!local connection-mark=PPPoE-VNPT
Tham khảo thêm các video Khóa học Router MikroTik để biết thêm thông tin chi tiết, mọi thắc mắc các bạn có thể liên lạc với mình thông qua kênh Zalo (Jade Bùi) 076.877.2021.
0 comments