Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NAT subnet real ip для ex.ua

    Scheduled Pinned Locked Moved Russian
    3 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vovanchik
      last edited by

      Добрый день! Помогите пожалуйста с такой проблемой: Есть пул белых адресов. Есть много приватных подсетей каждая на своем влане. Необходимо сделать так чтобы каждый серый ip всегда натился на каком то одном белом адресе из пула, но при этом использовались все адреса из пула белых адресов.

      Пример:
      REAL ip subnet - 194.4.78.48 /28
      Private ip pool 1 - 172.16.0.0/12
      Private ip pool 2 - 192.168.0.0/16

      OPT1 интерфейс к вышестоящему провайдеру

      Создаем правила:

      Firewall: NAT: Outbound

      Interface Source     Source Port Destination Destination Port NAT Address NAT Port Static Port Description
        OPT1    172.16.0.0/12   *               *                   *         194.4.78.48 /28     *              NO
        OPT1    192.168.0.0/16   *               *                   *         194.4.78.48 /28        *              NO

      В настройке можно выбрать такие опции:

      Pool Options
      Only Round Robin types work with Host Aliases. Any type can be used with a Subnet.

      • Round Robin: Loops through the translation addresses.
      • Random: Selects an address from the translation address pool at random.
      • Source Hash: Uses a hash of the source address to determine the translation address, ensuring that the redirection address is always the same for a given source.
      • Bitmask: Applies the subnet mask and keeps the last portion identical; 10.0.1.50 -> x.x.x.50.
      • Sticky Address: The Sticky Address option can be used with the Random and Round Robin pool types to ensure that a particular source address is always mapped to the same translation address.

      Я выбрал Source Hash но не работает так как я хочу. Все равно выдает новый IP из пула белых на новые TCP коннекты.

      Вся проблема в том, что в недавнее время сайт ex.ua поменял алгоритм выдачи ссылок для закачки, теперь они у него все уникальные для каждого ip и как следствие при нажатии на кнопку скачать происходит ошибка на странице и просто страница обновляется.

      Подскажите, пожалуйста, как правильно настроить NAT. Спасибо!

      1 Reply Last reply Reply Quote 0
      • werterW
        werter
        last edited by

        Sticky Address: The Sticky Address option can be used with the Random and Round Robin pool types to ensure that a particular source address is always mapped to the same translation address.

        Этот алгоритм не пробовали ?

        1 Reply Last reply Reply Quote 0
        • V
          vovanchik
          last edited by

          Раньше ставил  - не хотело работать. Проблему решил включением дополнительных функций

          Load Balancing Use sticky connections
          Load Balancing Allow default gateway switching

          Проблемы больше нет. Спасибо

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.