Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    HAproxy

    Scheduled Pinned Locked Moved Russian
    7 Posts 3 Posters 2.0k 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
      voffka
      last edited by

      Помогите разобраться с HAproxy
      Данные:
      WAN 1.1.1.1
      WAN-DNS: eng.example.ru-1.1.1.1 example.ru-1.1.1.1 mail.example.ru-1.1.1.1

      Нужно опубликовать сайты из локалки по HTTP:
      LAN адреса: example.ru-192.168.0.248 eng.example.ru-192.168.0.248

      По HTTP/HTTPS: mail.example.ru-192.168.0.253

      И еще что бы при обращении к внешнему адресу на прямую (1.1.1.1) попадали на example.ru

      1 Reply Last reply
      Reply Quote 0
      • S
        Scodezan
        last edited by

        Начни с HTTP. Создай Backend-ы. При создании ставь Balance: source, галку Use Client-IP to connect to backend servers и выбирай фейс куда включены сервера. Там же на всякий случай Health check method: none.

        Затем создаёшь Frontend. Выбираем основной Backend, Type: http / https (offloading) и галка на Use 'forwardfor' option.

        Дальше разрешаем порт на фаерволе. Убираем, если есть конфликтующий портмаппинг. Запускаем НАproxy. Тестим.

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

          Спасибо за ответ, уже разобрался. Тему можно закрывать

          1 Reply Last reply
          Reply Quote 0
          • S
            Scodezan
            last edited by

            А у тебя нет желания сделать how-to?

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

              Даже не знаю, сам тока настроил чтобы все работало, сейчас буду с остальными настройками разбираться.

              1 Reply Last reply
              Reply Quote 0
              • P
                pigbrother
                last edited by

                @Scodezan:

                А у тебя нет желания сделать how-to?

                Присоединяюсь к пожеланию.

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

                  Есть видео на ютубе, правда не на русском, ну и настройку днс можно пропустить, а так все в принципе понятно
                  Youtube Video

                  1 Reply Last reply
                  Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy