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

    Making Openvpn active everywhere but one IP

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 564 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.
    • N
      noob33
      last edited by

      Hi. I have successfully gotten OpenVPN to work with PFSense.  But the problem I face is I would like the default to be for OpenVPN to be used, but for one or two IPs, I would like to just go directly in and out of the WAN to those specific two IPs.    I'm drowning in trying different settings, getting nowhere fast.

      Lets assume I have a LAN, WAN and one called TGINTERFACE, which is my VPN tunnel.  On my Lan, I want all 192.168.1.* to contact the internet thru the tunnel, except for 192.168.1.200 and 192.168.1.201.  I've seen many situations where the default was the WAN and someone wants just a subset to go out via the tunnel, but my situation is the opposite.

      Any help will be appreciated.

      Noob33

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        put .200 & .201 in an alias

        rule1:

        • PASS / proto: any

        • src: myalias

        • dst: any

        • gw: WAN

        rule2:

        • PASS / proto: any

        • src: any

        • dst: any

        • gw: TGINTERFACE

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