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

    Routing traffic from one ip through openvpn interface

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 1.8k 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.
    • M
      Maksimka
      last edited by

      I have an openvpn connection set up and a single lan address routing through the VPN.  This all works fine until the openvpn goes down.  Then the address starts using the WAN interface instead when I'd rather it just be down until the VPN comes back.  Even after I put a block rule to my WAN  from the ip it still doesn't stop the address from going out WAN once the VPN drops. I'm not sure if i'm missing something or what.  Any advice would be greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • M
        Maksimka
        last edited by

        I created a new subnet for the machine and redid openvpn rules for the new address.  Works how I want it to now

        1 Reply Last reply Reply Quote 0
        • K
          kantlivelong
          last edited by

          @Maksimka:

          I created a new subnet for the machine and redid openvpn rules for the new address.  Works how I want it to now

          Can you elaborate on this? I am also seeing this problem.

          1 Reply Last reply Reply Quote 0
          • M
            Maksimka
            last edited by

            I ended up using an OPT interface in pfsense and giving it a seperate subnet from my lan.  Just setup a rule in opt interface firewall rules  to allow traffic from the opt subnet through the openvpn gateway.

            I should also add that i'm using two nics on the machine i'm routing through the vpn.  I also use forcebindip to force binding applications i want to to the nic connected to the opt interface.

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