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

    Open VPN and LAN connection

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 427 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.
    • N
      Norvik IT
      last edited by

      Hello, i am a little new in pfsense.
      i have setup openvpn on my pfsense and i am able to connect the client form outside network to the vpn tunnel, my challenge or what am not getting right is, i am able to ping pfsense which is 192.168.0.1, i am also able to get an IP (192.168.0.121) from my DHCP server whose IP is 192.168.0.7, but am not able to reach any other servers on the same network, like file server and even the DC which is a DHCP server which gives the vpn client a dhcp ip. what could i have missed that i can not ping the dhcp on which is giving me the IP?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Norvik IT
        last edited by Gertjan

        @norvik-it

        Good news : your question isn't related to pfSense.
        It's just that pfSense has also a OpenVPN server build in.
        You could also use the OpenVPN server on your NAS, for example.

        First things first : when you set up a OpenVPN server, you'll find a new interface on your pfSense, typically called "ovpns1". You have to assign it to an interface like :

        8ffb780f-faa4-4002-835c-ef9c54e33ff3-image.png

        Now, activate the 'go easy on yourself' mode, and add two rules :

        e5f7a486-093d-4bfc-9b5d-dfe08e6b65ee-image.png

        You can even combine these rules.
        Or use just IPv4 if you don't use IPv6 yet.

        Now, when your OpenVPN client connects to your your OpenVPN server, traffic will 'enter' this OPENVPN interface.

        Another thing : OpenVPN is giving IPv4 to your OpenVPN clients. The DHCP server for your LAN and other LAN type intefaces has nothing to do with OpenVPN clients.
        OpenVPN server is also doing what DHCP does : it also gives IPs to it's clients.

        So, when I have this on the OpenVPN server settings page :

        551ef7e7-ead9-4c25-af1f-3ea4999cca17-image.png

        I know that my tunnel IP network is
        192.168.3.0/24.
        OpenVPN server will use the dot 1
        My first openvpn client will have .2 etc - and again, it's not a DHCP server that gave this IP. You don't even set up a DHCP server that works for the 192.168.0/24 network !

        Btw : Your first line (see above) that you should consider not using some LAN based device DHCP server (the 192.168.0.7).
        Let pfSense handle DHCP for all your LAN networks, using the DHCP server. Make life easier on yourself.

        Btw : with the firewall rules shown above, you can access pfSense itself, LAN(s) devices, and whatever you can find on the Internet.

        edit :

        Use this 7,5 minutes video to set up a server : Configuring OpenVPN Remote Access in pfSense Software
        Only deviate from that setup up when one of these two conditions are met :

        1. You have a solid understanding of an OpenVPN server (and client) (sorry, will take time, openvpn is utterly complex).
        2. You want to try out things, and know how to get back to working setup when done messing around (because, why not, we all love to test/play/etc)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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