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

    VPN Clients accessing LAN with different gateway

    OpenVPN
    2
    6
    667
    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.
    • K
      kaloyaniliev
      last edited by

      Hello! I'm new user of pfSense.
      I installed OpenVPN server 192.168.20.0
      My pfSense is set as gateway 192.168.1.1. (with DHCP).
      I aslo have another gateway on the network that is 192.168.1.4 (without DHCP).

      I connect to the OpenVPN server normally. And i can connect all the LAN clients that use pfSense as gateway. But i can't connect the other gateway 192.168.1.4 and the clients that use it.

      What is the solution for this prolem?

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @kaloyaniliev
        last edited by

        @kaloyaniliev Source nat your vpn clients so they look like pfsense ip on the lan..

        This is an outbound nat on your lan interface..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        K 1 Reply Last reply Reply Quote 1
        • K
          kaloyaniliev @johnpoz
          last edited by

          @johnpoz Thank you for your kind reply. Unfortinetly i will need more explanation. Is this what i need to do?Image1.jpg

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @kaloyaniliev
            last edited by

            @kaloyaniliev Not sure I would use any any, prob use your vpn tunnel network as the source, and destination sure could be your lan net. Or just the specific devices that are not using pfsense as their gateway.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            K 2 Replies Last reply Reply Quote 1
            • K
              kaloyaniliev @johnpoz
              last edited by kaloyaniliev

              @johnpoz I tried that but no luck :( still can't access the devices with other gateway.... :( any other ideas? Image2.jpg

              On DD WRT i use "masquerade" command, but here i don't know how to.

              1 Reply Last reply Reply Quote 0
              • K
                kaloyaniliev @johnpoz
                last edited by

                @johnpoz I found my very stupid mistake! I did not ebabled the rule that i created! :) So now everything works like charm! Thank you very much, John! Image3.jpg

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