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

    OpenVPN-Client as a Gateway

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 860 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
      saed
      last edited by

      Hello Friends,

      Apology if this is a repeated question. it took me a while to look up a similar approach and i got lost.

      So to make it simple I'm running on pfsense-2.3.2 and as you see below ..
      I'm trying to route traffic between my Local VLAN(s) "10.0.1.0/24 10.0.4.0/24" to/fro a remote OpenVPN-Client's LAN "192.168.1.0/24"

      OPVN Client's LAN        OVPN-Client              ||              OVPN-Server                  ||      LANs            ||

      [Client's LAN]–---------------[Rpi]–------------------|--------------[Pfsense]–----------------|----[VLANs]–-----

      192.168.1.0/24      192.168.1.2 (lan ip)            |          10.0.1.1 (gw for vlan1)        |  10.0.1.0/24
                                        10.10.10.2 (ovpn ip)            |          10.0.4.1 (gw for vlan4)        |  10.0.4.0/24
                                                                                        |          10.10.10.1 (gw for ovpn)    |

      I would appreciate any guidance here.

      Thank you for sharing the knowledge.

      1 Reply Last reply Reply Quote 0
      • L
        lordstag
        last edited by

        I would guess it would work if you create firewall rules in each vlan, source your network; destination theirs, and select advanced options in the rule and manually select the gateway interface. So long as you have it assigned to an interface.

        Though, admittedly, I am new to OpenVPN.

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