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

    Howto set upp "lan to lan"?

    Scheduled Pinned Locked Moved IPsec
    13 Posts 3 Posters 4.9k 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.
    • ?
      Guest
      last edited by

      I´m not quite sure what it´s called and having a hard time finding info about it.

      what i wanna do is get a remote location(other isp) onto our internal network, with dhcp from our internal net and so on.

      is that possible..and if so..how?

      regards /Fredrik

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

        setup with OpenVPN a VPN connection between your two networks.
        you can setup the pfSense on your other networks as a DHCP-proxy to the DHCP server in your local network.

        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
        • ?
          Guest
          last edited by

          @GruensFroeschli:

          setup with OpenVPN a VPN connection between your two networks.
          you can setup the pfSense on your other networks as a DHCP-proxy to the DHCP server in your local network.

          Thank for the answer, however a bit unclear to me still ;).

          How do i setup DHCP-proxy on the other side?

          I was unable to get the vpn link up´n running, not sure what i´m missing, hence the question for a step by step instruction.

          EDIT: i´ll try to explain a bit more.
          what i wanna achive is the ability to just install a box at a remote location and after being able to connect to the office without having to make specific configurations on site(ie ip,mask,gw and so on)

          what i cant figure out is what settings i need on office side and remote side

          regards /F

          1 Reply Last reply Reply Quote 0
          • jahonixJ
            jahonix
            last edited by

            First get your VPN up 'n running.
            Lots of threads exist in this forum and there are detailed HowTos in the Wiki.

            After you're done with that go to the remote pfSense and at  Services | DHCP relay  specify the IP of the master network's DHCP server. But usually you don't need that with a properly configured pfSense with local DHCP et al. Routing and ruleset should be done by the gateway and not at the clients individually.

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by

              @jahonix:

              First get your VPN up 'n running.
              Lots of threads exist in this forum and there are detailed HowTos in the Wiki.

              After you're done with that go to the remote pfSense and at  Services | DHCP relay  specify the IP of the master network's DHCP server. But usually you don't need that with a properly configured pfSense with local DHCP et al. Routing and ruleset should be done by the gateway and not at the clients individually.

              I just cant find a howto that helps me in the wiki, this is what i found and it doesent seem to be what i want
              http://doc.pfsense.org/index.php/VPN_Capability_IPSec

              whooohoo..got tunnel running( ya i know it´s been done before me)

              just trying to get a ip from interna dhcp server, not doing good atm

              UPDATE1: I´m only getting a ip from external net on the remote machine when i´m using bridged mode, i tried the DHCP relay but no good, any pointers?

              /F

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by

                Ok, tunnel is up´n running, but i dont get correct ip on the remote location inside(office ip)
                all i been able to get is eather 192.168.x.x(same subnet interal nic have) or a ip from remote location isp(same net as the external nic have)
                or a ip from remote location isp

                Hard to explain, hope this makes any sense to you gurus ;)

                this is what i wanna accomplish
                office location
                internal ip = trunk or access vlan from what i gather?
                external ip = ip on offices dmz´a

                remote location       
                internal ip = same as at the office
                external ip = what the "unknown" isp gives it

                any ideas or want me to explain more?

                regards /Fredde

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by

                  This is starting to bug me..i´m sure it´s a simple thing i´ve missed, but i cant figure out what

                  i reinstalled boxes with 1.0.1

                  got tunnel up´n running
                  running one with static and one with dhcp

                  i can get from remote vpn internal net to static vpn external ip.

                  problem is that i dont get any traffic past the static(main box) vpn machine

                  and if i add say www.google.com(64.233.183.0/24) to "remote subnet" i´m not able to access that eather

                  ideas plz

                  regards /F

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

                    you need to add an advanced outbound NAT rule on your main machine that NAT's traffic from your remote subnet out to the internet.

                    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
                    • ?
                      Guest
                      last edited by

                      @GruensFroeschli:

                      you need to add an advanced outbound NAT rule on your main machine that NAT's traffic from your remote subnet out to the internet.

                      awsome, that worked like a charm.

                      Now to the final task for me..how do i go about if i want to recive ipadresses from the office dhcp server to the remote vpn box.

                      tried the dhcp relay without success, i´m sure it´s something to do with eather rules(cant find anything in logs) or nat.

                      EDIT1: here is a guy at m0n0wall forum wanting the same thing as me.
                      http://forum.m0n0.ch/index.php/topic,12.0.html

                      regards /F

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

                        How did you setup the DHCP-relay?
                        You have to specify an address on which actually a DHCP-server is running.

                        but why do you want to have the DHCP in a different location?
                        if the link goes down your remote clients wont be able to get an IP.
                        couldnt you just setup a DHCP on your remote pfSense?

                        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
                        • ?
                          Guest
                          last edited by

                          @GruensFroeschli:

                          How did you setup the DHCP-relay?
                          You have to specify an address on which actually a DHCP-server is running.

                          but why do you want to have the DHCP in a different location?
                          if the link goes down your remote clients wont be able to get an IP.
                          couldnt you just setup a DHCP on your remote pfSense?

                          well the answer is that we dont want the remote boxes to handle the dhcp because then we would tie up several ip´s on remote boxes ie we want to make better use of ip´s when we have several remote vpn´s, it is also required that we run all their traffic trough the vpn hence controlling what they are surfing at and so on.

                          hope this answers your question.

                          what settings would i have on the remote / main machine to make that setup work?
                          i get it with the dhcp relay but then what?

                          /F

                          1 Reply Last reply Reply Quote 0
                          • ?
                            Guest
                            last edited by

                            i also want the possiblity to have a cisco switch at the remote end(with trunk and sharing of ip´s from internal net)

                            is that possible?

                            /F

                            1 Reply Last reply Reply Quote 0
                            • ?
                              Guest
                              last edited by

                              I´m not sure what i´m doing wrong here, but i dont get the dhcp-relay working of ipsec, is that possible in the first place?

                              Also Trying to trunk 2 vlans from a cisco without success, i have setup the vlan and correct tagging(as they come from the cisco), but i cant get the inside(remote vpn) cisco working, cant even see info with cdp.

                              How should i set up the trunkport?.
                              Should the lan interface be bridged with the native vlan from the cisco and then the second vlan bridged with lan?

                              I´d be one happy pfsense user if i could get any of those to scenarios working ;)

                              regards /F

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