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

    having issues setting up Remote VPN to my network

    Scheduled Pinned Locked Moved OpenVPN
    29 Posts 3 Posters 5.0k Views 3 Watching
    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.
    • C Offline
      comet424
      last edited by

      ah ok ill re try that again..
      and where i ment bug
      if you click User Manager
      click create a user

      when you check off "certificate click to create a user certificate

      it asks your Description
      Certificate authority.

      i found if you leave description blank as why would you care to write a description it messes up the export

      so when i did descritiption "safasdfasdf"
      then the client export worked

      but i wanna rename it and now i come to have another issue lol

      1 Reply Last reply Reply Quote 0
      • C Offline
        comet424
        last edited by

        it seems it creates it from the username
        which is annoying because
        i have user name mike on sisters pfsense and mine
        so its the same damn file in the config location
        i had to rename the user name to mitchshouse and then i still gotta re login
        here i figured just rename the config location filenames but not so simple

        as i wanted it to say mikes house..... sisters house as the 2 options in OpenVPN client

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

          Are you just exporting the ovpn file? You can rename the file to whatever you want.ovpn

          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 25.07.1 | Lab VMs 2.8, 25.07.1

          1 Reply Last reply Reply Quote 0
          • C Offline
            comet424
            last edited by

            i export all 3 files and rename all 3

            1 Reply Last reply Reply Quote 0
            • C Offline
              comet424
              last edited by

              personal information file
              opnvpn file
              resigration entry file
              as they all the same name so i rename all 3 to mitchshouse or mikeshouse

              1 Reply Last reply Reply Quote 0
              • C Offline
                comet424
                last edited by

                when i just rename the OpenVPN file
                and then try to connect with client

                error i still get is
                connecting to management interface faild
                view log file c:users\mike\openvpn\mitchshouse.log
                Wed Jul 18 16:35:38 2018 WARNING: cannot stat file 'pfSense-UDP4-1196-mike.p12': No such file or directory (errno=2)
                Options error: --pkcs12 fails with 'pfSense-UDP4-1196-mike.p12'
                Wed Jul 18 16:35:38 2018 WARNING: cannot stat file 'pfSense-UDP4-1196-mike-tls.key': No such file or directory (errno=2)
                Options error: --tls-auth fails with 'pfSense-UDP4-1196-mike-tls.key': No such file or directory (errno=2)
                Options error: Please correct these errors.
                Use --help for more information.

                or when i try again and rename all 3 files to mitchshouse and mitchshouse-tls

                i get same error.. its like you cant rename the files so its better labeled
                and that i have to make a user account saying sistershouse not mike on my sistershouse… to distinguish between 2 user accounts mike on my sisters pfsense and my pfsese…
                guess i have no simple answers i fix one issue then seem to get myself into a 2nd issue lol

                i appreciate the help so far

                1 Reply Last reply Reply Quote 0
                • C Offline
                  comet424
                  last edited by

                  gonna uninstall the client software and re try the pfsenses uninstall and re install both as i setting up both pfsenses at my house and then take the one for her to her house..
                  maybe working on 2 at same time just glitching

                  but fingers crossed uninstall delete the config location and what not fix's it.. least i getting experience setting this thing up (: lol

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    comet424
                    last edited by

                    so update
                    both computers one called mitchsserver other called mikeserver
                    with user name mike... but my sisters server has like mitchsCA and mitchsclient and for mine is mikesCA and mikesclient and server name
                    using same port 1196

                    i found they both create the same damn 3 files
                    pfSense-UDP4-1196-mike config
                    pfSense-UDP4-1196-mike
                    pfSense-UDP4-1196-mike-tls

                    the config file has the location of those 2 other files but the opnvpn file is write protected and i cant seem to bypass it

                    so my only way i can seem to do it is
                    i make a different user name on my sisters pfsens

                    like mitchserver as the username

                    this seems to solve the issue of over written files
                    as what i had ended up with is this
                    mikeshouse (opnvpn file)
                    mitchshouse (opnvpn file)
                    pfSense-UDP4-1196-mike
                    pfSense-UDP4-1196-mike-tls

                    due it it making same damn files it over writes the last 2 so id directs to a different comp not the renamed opnvpn one..
                    would be nice to edit the opnvpn file so i could rename the other 2 files but what can ya do.. guess it wasn't really ment to have 1 computer connecting to multiple pfsense accounts

                    least i figured out its not so simple lol

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

                      I have no idea what your trying to do mate...But I can tell you this - it is simple! ;)

                      Why are you grabbing 3 files? Just grab the inline ovpn file.. Load it in your remote client.

                      What exactly are you trying to accomplish. You have a road warrior connecting to pfsense?? Or you wanting to do a site to site between mitchshouse and yours? Does mitch have pfsense as well?

                      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 25.07.1 | Lab VMs 2.8, 25.07.1

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        comet424
                        last edited by

                        ok so I have 1 laptop

                        I have 2 pfsense houses.... my house and my sisters house
                        I set up exact copies of pfsense… except
                        the certs..
                        my pfsense MikeshouseCA.. mikesServer(certificate)… mikes client(certificate)
                        sis pfsense MitchshouseCA, mitchsServer(Certificate).. mikes client(certificate)

                        like I mentioned toe get the option to export when I create a New user "mike" as the login you have to write something in "description" to work

                        now when you click the Vista install button
                        and installs... it creates 3 Files
                        pfSense-UDP4-1196-mike.opnvpn config file
                        pfSense-UDP4-1196-mike. personal info file
                        pfSense-UDP4-1196-mike-tls resitration file

                        now even though I created different certs on the 2 computers because I use "mike" as a login for both pfsense boxes.. these still create the same files above.. and the opn config file points to the personal info and registration file names and windows wont let me edit the opnvpn file to edit the names
                        so If I rename
                        pfSense-UDP4-1196-mike.opnvpn config file to mike.opnvpn config file now I have
                        mike.opnvpn
                        pfSense-UDP4-1196-mike personal info
                        pfSense-UDP4-1196-mike-tls

                        now when I run the Vista Install button on my laptop of my sisters pfsense button and it installs the 3 files I now have this

                        mikes.opnvpn config
                        pfSense-UDP4-1196-mike opnvpn config
                        pfSense-UDP4-1196-mike personal info
                        pfSense-UDP4-1196-mike-tls registration

                        and you can not just have the opnvpn config file.. I deleted the other 2 files

                        as I tried renaming the files so id have 6 files

                        so it be

                        mikeshouse opnvpn config
                        mikeshouse personal info file
                        mikeshouse-tls registration file
                        mitchshouse opnvpn config
                        mitchshouse personal info file
                        mitchshouse-tls registration file

                        or does it even matter or does it.. since I could have a different setting for "mike" on mitchsserver then "mike" on mikes server

                        as both config files point to the same file names that I trying to rename as there is a conflict
                        I have diselexia so comes out fine for me maybe not for you I tried to explain it better

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          comet424
                          last edited by

                          here you see image 1.. my sisters pfsense
                          0_1531998644765_pfsense issue.JPG
                          now I renamed config file to mitchshouse and ran my pfsense install
                          0_1531998683538_pfsense issue 1.JPG

                          now I renamed my config to mikeshouse
                          0_1531998717418_pfsense issue 2.JPG

                          and here is the conflict.
                          mitchshouse and mikeshouse both point to mikes house registration file and personal information file
                          so that means when I connect to mitchshouse its actually connecting to Mikeshouse pfsense.. I do not want this

                          as mitchshouse config is
                          dev tun
                          persist-tun
                          persist-key
                          cipher AES-256-CBC
                          auth SHA1
                          tls-client
                          client
                          resolv-retry infinite
                          remote sistersdyns 1196 udp
                          verify-x509-name "mitchshouseserver" name
                          auth-user-pass
                          pkcs12 pfSense-UDP4-1196-mike.p12
                          tls-auth pfSense-UDP4-1196-mike-tls.key 1
                          remote-cert-tls server

                          mikeshouse pfsense
                          dev tun
                          persist-tun
                          persist-key
                          cipher AES-256-CBC
                          auth SHA1
                          tls-client
                          client
                          resolv-retry infinite
                          remote myhousesdyns 1196 udp
                          verify-x509-name "mikeshouseserver" name
                          auth-user-pass

                          so that's why I get confused I should have 6 files those 2 files are specific to each server isn't it the TLS key and u they both don't have the same key
                          pkcs12 pfSense-UDP4-1196-mike.p12
                          tls-auth pfSense-UDP4-1196-mike-tls.key 1
                          remote-cert-tls server

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

                            So you want to be able to access either your sisters house or your house from your laptop? That is running windows I take it?

                            Or do you want your sisters house and your hose to be always connected via site to site vpn? You could setup site to site between your houses and then setup so you could access either house from either vpn server.

                            The only thing you need to download if your running windows client on your laptop is the inline ovpn file. It will have everything you need.

                            I would setup sistershouse and your house vpn server. From your laptop gui client you just need to pick the one you want..

                            Just rename the ovpn files to whatever you want before you place them in your config dir of your openvpn client.

                            Here I grabbed the opvn files from 2 of my servers. Placed them in the config directly after I renamed them to sisters and mikes.

                            0_1532004675912_2vpnconnections.png

                            It is that simple..

                            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 25.07.1 | Lab VMs 2.8, 25.07.1

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              comet424
                              last edited by

                              not at home to test but
                              ya laptop is running windows 10...
                              and when I click the export I click the windows vista or later button that is the EXE file and when installs creates the 3 files..

                              to get the tls and the registration file in the config file.. is that the bundled button to hit in the export or I read inline..

                              Ill try that when I get home

                              thanks for the help so far

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                comet424
                                last edited by

                                as for the site to site I want that too..

                                so I want when my unraid box syncs with my sisters unraid box.. that pfsense would do site to site. then when unraid is done it would disconnect the site to site session

                                but on the laptop I want to be say I at friends house or a starbucks that I can access either network via laptop

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  comet424
                                  last edited by

                                  so what im doing currently is the remote access vpn setting it up on 1 laptop both pfsenses.. and I get the 3 files generated twice but over writes the TLS key file since they both basically the same setup

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    comet424
                                    last edited by

                                    so

                                    mitchsserver mikesserver

                                    mitchsCA mikesCA
                                    mitchsserver Cert mikesserver Cert
                                    user name mike user name mike

                                    when I create user cert then I get "sdafas" because i found whatever the description and you have to give one under "user" when you create a cert has to be something or it doesn't create a user cert... so both have a user cert called "asdf" something like that as i didn't wanna give a description

                                    then all said and done i went down to opnvpn and client export
                                    and i click Vista or later button downloads the exe file it installs 3 files
                                    but since both servers give the same files it over writes the key file and the personal file after i rename the open config file to either mikeshouse config or mitchshouse config

                                    hope i summed it better

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      comet424
                                      last edited by

                                      ugh the spacing didn't show up properly and i underlined mitchsserver and mikes server and it bolded it frig not what i wanted.. you need to add spaces between them below it

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

                                        you don't need the EXE!!! Just install the client from openvpn site... Then export your inline ovpn..

                                        That is suppose to make it easy to give out the exe to someone so they don't have to do anything but run an exe and it will be already for them to connect to 1 specific server.

                                        Lets get your roadwarrior setup working before we work on a site to site. Why does it have to go down? Just easier to set it up and leave it up - then your unraids can sync whenever they want/need to.

                                        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 25.07.1 | Lab VMs 2.8, 25.07.1

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          comet424
                                          last edited by

                                          well I wouldn't know i chose vista install exe because it says windows... and the inline says for android or apple.. is it not ill check it shortly i be home

                                          but ill take a lot guess there is 3rd option then for windows
                                          but as for to turn it down.. how much data does it use to keep open vpn connected?

                                          my internet is a 5mpbs download and a 400-500kilobites upload if it doesn't use much data to slow my internet down more then what i have then ill just leave it connected all the time then for that site to site as i trying to setup also NordVpn for a secure web browsing for pfsense trying there 3 day trial and having issues with it but that's another topic lol

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

                                            See the one that says most clients, that will work just fine on windows..

                                            0_1532012521112_vpnovpn.png

                                            With such a connection I don't see how your going to be syncing any sort of data.. Be like watching paint dry ;)

                                            How much data do you plan on syncing? But just the vpn open doesn't use much of anything..

                                            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 25.07.1 | Lab VMs 2.8, 25.07.1

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