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

    Force Specific Traffic Over VPN

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 1.9k 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.
    • W
      Wasca
      last edited by

      Hi Guys

      This is in relation to a thread I started and was resolved over here http://forum.pfsense.org/index.php/topic,58232.0.html

      I'm trying to port forward some traffic coming into my WAN out to OpenVPN clients connecting to my PFSense router. The only way I got this working was to force all traffic over the VPN. I was wondering if there is anyway to only force specific traffic to go back over the VPN?

      Wasca

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

        easiest way todo that would be to assign an interface to the openvpn-connection. (in the interface config set type to "none")
        after you assigned an interface you should duplicate the firewall rules from the openvpn connection to the new OPT interface.

        then restart the openvpn service.

        pfsense should automagically create a gateway for the new OPT interface; now you can set that gateway in your lan-firewall rule to direct certain traffic over the openvpn

        enjoy

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