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

    правила для маршрутизации без НАТ

    Scheduled Pinned Locked Moved Russian
    3 Posts 3 Posters 713 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.
    • L
      lamerrrr
      last edited by

      имеется pfsense в роли шлюза для сети с двумя vlan в локальной сети.

      vlan1 - через pf выходит в инет по средством НАТ
      vlan2 - должен через OpenVPN туннель (pf является openVPN клиентом) маршрутизируется в "некую сеть"

      вкладка OpenVPN
      –------------------------------------------------------------------------------------------
      States Protocol Source Port Destination Port Gateway Queue Schedule Description Actions
      0/0 B      IPv4 ICMP   *           *       *                   *     *           none    
      0/0 B    IPv4 TCP/UDP   *           *       *                  *     *           none    

      вкладка if_Vlan2

      States Protocol Source Port Destination Port Gateway Queue Schedule Description Actions
      0/0 B      IPv4 ICMP   *           *       *                   *     *           none    
      0/0 B    IPv4 TCP/UDP   *           *       *                  *     *           none    

      OpenVPN соединение поднимается. маршрут в "некую сеть" появляется в таблице маршрутизации.
      Vlan1 через НАТ выходит в инет.
      а вот из Vlan2 дальше pf ничего не ходит :(
      на что обратить внимание?

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

        Добавьте явное разр. правило на vlan2 , где в сурс будет vlan2 net , а дест - сеть за впн-сервером. В протоколах выбрать any.
        И поставьте его самым первым.

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

          @lamerrrr:

          а вот из Vlan2 дальше pf ничего не ходит :(

          А как вы определили, что все заканчивается на pfSense?
          Вполне возможно что pfSense отправляет трафик куда надо, но удаленная сторона его обрабатывает не так как вам хочется.

          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