• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Oct 18, 2022, 11:25 AM

    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?

    J 1 Reply Last reply Oct 18, 2022, 11:50 AM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @kaloyaniliev
      last edited by Oct 18, 2022, 11:50 AM

      @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 Oct 18, 2022, 2:42 PM Reply Quote 1
      • K
        kaloyaniliev @johnpoz
        last edited by Oct 18, 2022, 2:42 PM

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

        J 1 Reply Last reply Oct 18, 2022, 2:52 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @kaloyaniliev
          last edited by Oct 18, 2022, 2:52 PM

          @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 Oct 18, 2022, 3:04 PM Reply Quote 1
          • K
            kaloyaniliev @johnpoz
            last edited by kaloyaniliev Oct 18, 2022, 3:07 PM Oct 18, 2022, 3:04 PM

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

            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 Oct 18, 2022, 4:12 PM

              @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! login-to-view

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