Bài Viết Tiêu Biểu

Cấu hình NAT và Hairpint NAT bằng Script

Giới thiệu

  1. Nội dung thực hiện: Cấu hình NAT và Hairpin NAT
    • Cấu hình NAT
      • /ip firewall nat
        add action=dst-nat chain=dstnat comment=”DVR-nat tu ngoai vao” \
        dst-address-type=local dst-port=81 in-interface=pppoe-out1 protocol=tcp \
        to-addresses=192.168.1.254 to-ports=81
    • Cấu hình Hairpin NAT
      • /ip firewall nat
        add action=masquerade chain=srcnat comment=”DVR-hair pin nat” dst-address=\
        192.168.1.254 src-address=192.168.1.254/24add action=dst-nat chain=dstnat dst-address-type=local dst-port=81 \
        in-interface=bridgeLAN protocol=tcp to-addresses=192.168.1.254 to-ports=\
        81
  2. kiểm tra
    • Kiểm tra kết quả trong bảng NAT
cấu hình NAT thành công các rules
  • Kiểm tra port
port NAT thành công
  • Kiểm tra kết nối
Kết nối thành công

Để lại một bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *