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

    Wan't to route specific LAN host out of different gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    7 Posts 3 Posters 3.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.
    • B Offline
      BKKCH
      last edited by

      I wan't one specific LAN host, to be routed out through another gateway (an OpenVPN client).
      I currently have a Wireless SSID using this OpenVPN client gateway, and it works.
      I was under the empression that it was enough to make a FIREWALL RULE on the LAN, but it doesn't work.

      Could somebody verify for me what the correct setup for this is?

      Thanks.

      The rule i made is:
      Action: PASS
      Interface: LAN
      Source: SINGLE HOST (the address of the pc)
      Gateway: (the VPN client gateway)

      1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        That looks good. Clear states and test again.

        That rule must also be above any other rule that matches the same traffic to be effective.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • B Offline
          BKKCH
          last edited by

          Yes, the rule is the top-most. Just before the "default gateway rule" the rest of the LAN uses.

          1 Reply Last reply Reply Quote 0
          • DerelictD Offline
            Derelict LAYER 8 Netgate
            last edited by

            Then it should be working. Post your rules.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • johnpozJ Offline
              johnpoz LAYER 8 Global Moderator
              last edited by

              And do you have way for pfsense to nat that source IP to that vpn connection IP?

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 25.07.1 | Lab VMs 2.8, 25.07.1

              1 Reply Last reply Reply Quote 0
              • B Offline
                BKKCH
                last edited by

                Attached are FW LAN rules, and NAT.

                I have added log on the .201 rule, but nothing in the log!

                FW-LAN.jpg
                FW-LAN.jpg_thumb
                NAT.jpg
                NAT.jpg_thumb

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BKKCH
                  last edited by

                  I finally solved it. I mixed up two gateways. My mistake.

                  Thanks for your help and interest. I really appreciate it.

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