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

    One IP route through VPN

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

      Hello

      I'd like to know if it is possible to route one IP from the lan through a VPN and only this IP adress ?

      Thanks for help

      1 Reply Last reply Reply Quote 0
      • J
        jasonlitka
        last edited by

        What kind of VPN tunnel?

        I can break anything.

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

          PPTP or IPSEC

          tinc could be a way ?

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            If you assign an interface to the VPN then you can use the VPN gateway in policy-routing rules. So you can put a rule on LAN to pass a particular source IP and send it to the VPN gateway.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

              God
              How do you do that ????

              Thanks

              1 Reply Last reply Reply Quote 0
              • P
                phil.davis
                last edited by

                Interfaces->Assign "+" button and select the OpenVPN from the dropdown.
                Then it appears as an Interface in the Interface dropdown menu. Enable it, but leave the "Configuration Type" as "none" - OpenVPN will sort out the IP address and gateway underneath.
                Now you can make a rule on LAN, source "My special IP address", destination any, and in the Advanced, Gateway section pick the OpenVPN gateway that should now appear in the drop down.

                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

                  Thank you very much

                  I nailed it by myself … and IT WORKS

                  Now
                  Thingies connected to a certain wifi are going through an open vpn without doing anything on the device

                  Thanks again

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