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

    How do I set up this configuration for site-to-site?

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 2.6k 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.
    • G
      GoldServe
      last edited by

      I have two pfsense boxes.

      Box 1
      LAN = 192.168.1.1/24
      WLAN = 192.168.2.1/24

      Box 2
      LAN = 192.168.3.1/24
      WLAN = 192.168.4.1/24

      I want to create a vpn tunnel across these two boxes and have anyone on these interfaces be able to talk to each other as if there were connected via a wire.

      I currently have firewall rules to allow WLAN talking to LAN and vice versa on each of the boxes already! Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        this works pretty streight forward:
        Create key, put in config on openVPN page.
        If you want access to both Subnets on the other side from the tunnel (een from both sides) you will need an additional custom option.

        I assume you have put the LAN on both sides in the localnet / remotenet and you just need additional routes for the WLAN.

        on serverside (Box 1)
        push "route 192.168.2.0 255.255.255.0"
        route 192.168.4.0 255.255.255.0

        for more infos take a look at the MAN pages on http://openVPN.net

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • G
          GoldServe
          last edited by

          I will give this a try again. I followed the guide at the top of the forums for setting up site to site but was unable to get some pings going across. Everything was connected but i don't understand it completely. Thanks!

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