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

    Unable to connect LAN over Pfsense using openvpn

    Scheduled Pinned Locked Moved OpenVPN
    15 Posts 4 Posters 5.5k 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.
    • D
      doktornotor Banned
      last edited by

      Considering your WAN and LAN are exactly the same… geeez. Try again, complete fail. (On that note, you have the rules there at least 4x more than required.)

      1 Reply Last reply Reply Quote 0
      • P
        preet.dhiman83
        last edited by

        How about doing a NAT on the WAN side and then using the port forwarding option to connect to open vpn.

        Current setup is

        Internet –-> Cisco Router --->LAN MACHINE running Virtual Machine.
        Public IP --->192.168.1.1  --->192.168.1.128 Nat to 10.0.2.15 on WAN interface on VM and alternate LAN card for LAN access.

        I have 2 physical LAN card on the actual Machine.
        I have checked I have internet access on the VM after doing NAT on WAN interface.

        I am new to pfsense, I really appreciate your responses....

        Regards....

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

          What?

          So you have 3 nats before you get to your "lan" of pfsense?  Yeah that is not how you should do it ;)

          Why do you need the cisco router?  What is make and model btw – if its a router, what does it connect into?  Quite possible you have even a 4th nat in this setup...

          Why are you natting to your VM in your vm software?

          Lets start from the beginning -- what are you trying to accomplish exactly?  Do you want your pfsense to be your gateway for just vms or for physical machines as well.  What hardware are you working with modem, router - model numbers.

          I run pfsense on a esxi host, and it is the only NAT between the public internet and my multiple physical networks.

          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.8, 24.11

          1 Reply Last reply Reply Quote 0
          • P
            preet.dhiman83
            last edited by

            I am using Cisco E900 Wireless + LAN router

            I have a dedicated 2mb Wan link with sticky IP connecting to my cisco router over RJ45. Its being NAT(1) to 192.168.1.0/24 and then its bridged with physical LAN to connect Virtual box from where I am getting 192.168.1.114 from Cisco DHCP which is again getting NAT(2) to 10.0.2.15.

            On Cisco I am using port forwarding to the Virtual box i.e 192.168.1.114 and the from Virtual-box its being port forwarded to Pfsense (10.0.2.15).

            My aim is to access the Home network over VPN for security reason otherwise its working fine. I am using this setup cause I don't want to disturb my existing network(Laptops and phones) and also don't want pfsense running all the time. It will be turned on only when I want to connect from outside over the internet.

            If this doesn't work I will put pfsense internet facing and then the Cisco router. I already procured a CPU for the same considering the future requirements.
            Thanks for your response, appreciated…..

            1 Reply Last reply Reply Quote 0
            • K
              kejianshi
              last edited by

              Take a look at your openvpn firewall rules, and WAN rules.  Lots of redundant rules that are exactly same.  Need to get them down to just 1 unique rule per.

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

                I don't understand the point of the virtual box nat?  And then where is the pfsense lan interface connected too?  How are you going to get access to your home lan in this setup?

                Your lan is 192.168.1.0/24 – so your pfsense lan interface is on this network?

                If what your trying to do is just openvpn into your network.. Why are you even running pfsense?  Just run the openvpn server on any box or even its appliance?

                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.8, 24.11

                1 Reply Last reply Reply Quote 0
                • P
                  preet.dhiman83
                  last edited by

                  Thanks for your replies guys , I have changes the configuration and my aim is just to access my home LAN using OPENVPN on PFSENSE.

                  Now I have a virtual Machine bridged on the physical network and I am able to connect over OPENVPN . WAN interface is disabled and connecting over the LAN interface only.

                  Firewall Rules also modified to any to any.(screenshots attached)

                  I am not receiving LAN routes from the VPN connection being established except the below routes.(screenshots)

                  OPENVPN cert setting screenshot is also attached.

                  LAN network 192.168.1.10/24
                  OPENVPN Network 192.168.2.0/24

                  Capture.PNG
                  Capture.PNG_thumb
                  Capture1.PNG
                  Capture1.PNG_thumb
                  Capture2.PNG
                  Capture2.PNG_thumb
                  Capture3.PNG
                  Capture3.PNG_thumb

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    What is the OS of the machine running the VPN client?

                    1 Reply Last reply Reply Quote 0
                    • P
                      preet.dhiman83
                      last edited by

                      Windows 7 64bit

                      1 Reply Last reply Reply Quote 0
                      • P
                        preet.dhiman83
                        last edited by

                        Got it working , issue was with the services running on the remote client

                        Referred to the below doc and bingo….. :)

                        http://www.vpntutorials.com/tutorials/openvpn-client-setup-tutorial-for-windows-8/

                        Thanks a lot guys for your help.... Really appreciated......

                        1 Reply Last reply Reply Quote 0
                        • K
                          kejianshi
                          last edited by

                          Yeah - Normally, thats more of a windows 8 issue.  Glad thats solved.

                          1 Reply Last reply Reply Quote 0
                          • P
                            preet.dhiman83
                            last edited by

                            Thanks a lot for your valuable replies, much appreciated….

                            1 Reply Last reply Reply Quote 0
                            • K
                              kejianshi
                              last edited by

                              There was another guy on another thread having same issue, so I posted your thread there.

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