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

    remote OpenVPN-client LAN not reachable

    Scheduled Pinned Locked Moved OpenVPN
    23 Posts 4 Posters 3.6k 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.
    • S
      sgw
      last edited by

      Same site, new problems:
      we went /24 now and get a valid OpenVPN tunnel up.

      The OpenVPN server on the pfsense is configured like

      <openvpn-server>
      		<vpnid>3</vpnid>
      		<mode>p2p_tls</mode>
      		<protocol>UDP4</protocol>
      		<dev_mode>tun</dev_mode>
      		<interface>wan</interface>
      		<ipaddr></ipaddr>
      		<local_port>1196</local_port>
      		<description><![CDATA[ABA_123]]></description>
      		<custom_options></custom_options>
      		<caref>5c34a4c959dfe</caref>
      		<crlref></crlref>
      		<certref>5c34a59505750</certref>
      		<dh_length>1024</dh_length>
      		<crypto>AES-256-CBC</crypto>
      		<digest>SHA1</digest>
      		<tunnel_network>10.1.160.0/24</tunnel_network>
      		<remote_network>172.16.160.0/24</remote_network>
      		<remote_networkv6></remote_networkv6>
      		<local_network>192.168.160.0/24</local_network>
      		<compression>lzo</compression>
      		<compression_push></compression_push>
      		<topology>subnet</topology>
      		<create_gw>v4only</create_gw>
      		<verbosity_level>6</verbosity_level>
      		<ncp-ciphers>AES-128-GCM</ncp-ciphers>
      		<ncp_enable>enabled</ncp_enable>
      	</openvpn-server>
      

      I get a route to server-client-LAN 172.160.0/24 on the pfsense.

      The remote appliance (Westermo MRD-405 ...) can ping a PC in my local VLAN 192.168.160.0/24.

      PC 192.168.160.1 can ping the remote tunnel endpoint 10.1.160.2 ... but NOT the Westermos LAN-net or -IP 172.16.160.30/24

      I am lost over looking thru configs and log.

      Did a packet trace on the OpenVPN-interface ... I see ping requests go out but no replies in.
      We pushed a route and removed it, set it statically there ... etc

      I opened fw-rules ...

      next test will be to setup a router here at my office to "simulate" that LAN with a normal openvpn-client binary only.

      Where do I go wrong?
      Is my config able tor give me access to the openvpn-clients LAN at all? I understand yes, but ...

      thanks, Stefan

      1 Reply Last reply Reply Quote 0
      • S
        sgw
        last edited by

        I edited the topic now because things develop somehow.

        I talked to the support for the Westermo LTE-router, he told me to switch to TAP-mode. OK.
        Tunnel is up, ping still "asymmetric".

        Maybe I misunderstand which Firewall Rules to set:

        there is an assignment of ovpns3 (the openvpn-tap-server ...) to an Interface named like "Ovpn_remote" (example name ...).

        the VLAN to reach behind the pfsense for sure also has an Interface like VLAN160.

        And I see an interface "OpenVPN" as well!

        What to edit to allow VLAN160 access the Remote LAN behind the OpenVPN client (if that is configured correctly)?

        I am lost in allow-allow-any-any for getting things to work ;-)

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

          @sgw said in remote OpenVPN-client LAN not reachable:

          switch to TAP-mode.

          WHAT??

          Now you wanting to bridge vs route? I'm done if you can not follow the simple instructions given in the link - have fun!

          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

          S 2 Replies Last reply Reply Quote 0
          • S
            sgw @johnpoz
            last edited by

            @johnpoz said in remote OpenVPN-client LAN not reachable:

            @sgw said in remote OpenVPN-client LAN not reachable:

            switch to TAP-mode.

            WHAT??

            Now you wanting to bridge vs route? I'm done if you can not follow the simple instructions given in the link - have fun!

            I tried, believe me! Right now I am in telco with a technician from the router-support and connection works after adding a static route. It isn't really elegant right now, I agree ...

            1 Reply Last reply Reply Quote 0
            • S
              sgw
              last edited by

              We will reattack on monday with your HOWTO ... 6 eyes see more than 4 ...

              1 Reply Last reply Reply Quote 0
              • S
                sgw @johnpoz
                last edited by

                @johnpoz said in remote OpenVPN-client LAN not reachable:

                @sgw said in remote OpenVPN-client LAN not reachable:

                switch to TAP-mode.

                WHAT??

                Now you wanting to bridge vs route? I'm done if you can not follow the simple instructions given in the link - have fun!

                Solved now, I had missed the "Client Specific Overrides" part .. my mistake, sure.
                Now that was a big circle walked .... sigh
                Thanks again.

                Now to cleaning up my FW-rules, and documentation ... next sites are coming.

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

                  Your still in TAP mode? That is NOT what you want!!!

                  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

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sgw @johnpoz
                    last edited by

                    @johnpoz said in remote OpenVPN-client LAN not reachable:

                    Your still in TAP mode? That is NOT what you want!!!

                    no no! TUN as in the linked howto!

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

                      Ok great - now I would suggest you turn off compression, looks like you have it set on? And your using sha1 vs 256, those are not defaults?? And don't see them mentioned anywhere in the link - so why would you have changed them? Are you using an older version of pfsense?

                      Google VORACLE for info for the compression info.

                      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

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sgw @johnpoz
                        last edited by

                        @johnpoz said in remote OpenVPN-client LAN not reachable:

                        Ok great - now I would suggest you turn off compression, looks like you have it set on? And your using sha1 vs 256, those are not defaults?? And don't see them mentioned anywhere in the link - so why would you have changed them? Are you using an older version of pfsense?

                        Google VORACLE for info for the compression info.

                        The remote site seems to enable LZO comp even when we set it to "disabled" there, so I enabled it as well.
                        SHA1 is the only choice he has, we now run AES-256-CBC (different from above config from yesterday).

                        I browsed the logs for OpenVPN on pfsense (2.4.4p2 btw) and changed settings which triggered warnings.

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

                          Well have to live with the limitations of the other end - replace it with pfsense ;)

                          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

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            sgw @johnpoz
                            last edited by

                            @johnpoz said in remote OpenVPN-client LAN not reachable:

                            Well have to live with the limitations of the other end - replace it with pfsense ;)

                            I disabled comp (chose 1st entry "Disable Compression"), he disabled. I push compress options there now and I get a ping and these logs:

                            SENT CONTROL [aba_n_ka]: 'PUSH_REPLY,route 192.168.160.0 255.255.255.0,compress ,route-gateway 10.1.160.1,topology subnet,ping 10,ping-restart 60,redirect-gateway def1,ifconfig 10.1.160.3 255.255.255.0,peer-id 1,cipher AES-128-GCM' (status=1)
                            

                            Otherwise it seems rather safe to me. The clients are only allowed to one separate VLAN behind pfsense etc etc

                            The guy understands all the fuzzing around, but I assume he mistrusts me and pfsense a bit now ;-)

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

                              @sgw said in remote OpenVPN-client LAN not reachable:

                              redirect-gateway def1

                              Why are you redirecting gateway? That is normally not done in a site to site setup.

                              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

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                sgw @johnpoz
                                last edited by

                                @johnpoz said in remote OpenVPN-client LAN not reachable:

                                @sgw said in remote OpenVPN-client LAN not reachable:

                                redirect-gateway def1

                                Why are you redirecting gateway? That is normally not done in a site to site setup.

                                A leftover from my desparate debugging. Thanks for spotting, disabled it now (was in the CSO).

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