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

    Site-to-site loop - How to stop the loop?

    Scheduled Pinned Locked Moved OpenVPN
    11 Posts 3 Posters 1.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      So you setup site to site vpn between A and B and C and B?  Or A an C are just road warriors into B?

      So you created a route that Tells A hey to get to C go to B?  Or your just default routing it out?

      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
      • F
        Fmslick
        last edited by

        @johnpoz:

        A an C are just road warriors into B?

        A an C are just road warriors into B

        Just default routing it out?

        Yep, I added the ip's of Home (A):192.168.3.x & Other (C):192.168.1.x into filed "IPv4 Remote network(s)" under the OpenVPN server tab on Colo (B) … Then did the same on A & C under the client tab but I left out the LAN or local network of that site and only added the remote networks. Should have I created a route??

        just to add some more info.

        2.3.4-RELEASE-p1 (i386)
        Colo (B) the firewall and server for openvpn on a Watchguard X550e

        Thanks for your reply johnpoz  :)

        Untitled.png
        Untitled.png_thumb

        We all start same where

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

          "Yep, I added the ip's of Home (A):192.168.3.x & Other (C):192.168.1.x into filed "IPv4 Remote network(s)" "

          Huh?  If your server is road warrior server, why would you setup any remote networks??  If your going to setup your server as s2s then the clients should be s2s as well, not remote access..

          You have pfsense at site A and B right?

          https://doc.pfsense.org/index.php/OpenVPN_Site_To_Site

          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
          • F
            Fmslick
            last edited by

            @johnpoz:

            "Yep, I added the ip's of Home (A):192.168.3.x & Other (C):192.168.1.x into filed "IPv4 Remote network(s)" "

            Huh?  If your server is road warrior server, why would you setup any remote networks??  If your going to setup your server as s2s then the clients should be s2s as well, not remote access..

            Sorry. I must have miss understood "road warrior" (Did have my coffee yep :o an just so I know im on the same page. road warrior=mobile? ), no the server and clients are not "road warrior"…
            So you setup site to site vpn between A and B and C and B?yes!? if I am reading this right this time… (look at pic in post up there^)

            You have pfsense at site A and B right?

            Yes

            https://doc.pfsense.org/index.php/OpenVPN_Site_To_Site

            I did follow this tutorial to get everything up and running, as it said to add remote networks..

            Server settings: "IPv4 Remote networks : Enter the remote (Client Side) LAN here. To access more than one network, add them all here separated by a comma (e.g. 10.10.10.0/24, 192.168.10.0/24)."

            Client Settings: "IPv4 Remote networks : Enter the remote (Server Side) LAN here. To access more than one network, add them all here separated by a comma (e.g. 10.10.9.0/24, 192.168.9.0/24)."

            –
            Screenshots of server settings and client settings.

            Screenshot_25 is the server side B
            Screenshot_26 is client side C

            Screenshot_25.png
            Screenshot_25.png_thumb
            Screenshot_26.png
            Screenshot_26.png_thumb

            We all start same where

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

              "I did follow this tutorial to get everything up and running, a"

              And did you see where the other site is also s2s and not road warrior..

              according to your drawing your C site is 192.168.1.. But you have on its client setting that 192.168.1 is remote!  That is not the case the networks that are remote from it or B and A, not itself.

              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
              • F
                Fmslick
                last edited by

                @johnpoz:

                And did you see where the other site is also s2s and not road warrior..

                Quote what you are talking about from the tut.. By road warrior do you mean client?

                according to your drawing your C site is 192.168.1.. But you have on its client setting that 192.168.1 is remote!  That is not the case the networks that are remote from it or B and A, not itself.

                That is a typo (C is 192.168.2.x) see Attachment.

                Untitled.png
                Untitled.png_thumb

                We all start same where

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

                  "Quote what you are talking about from the tut.. By road warrior do you mean client?"

                  Yes the CLIENT!!  You stated it was road warrior or remote access..  That is not how you do it..

                  @Fmslick:

                  [A an C are just road warriors into B
                  [/quote]

                  "That is a typo (C is 192.168.2.x) see Attachment."

                  Your new attachment shows 192.168.1 - dude can not help you without correct info…

                  s2s.png
                  s2s.png_thumb

                  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
                  • F
                    Fmslick
                    last edited by

                    Sorry, lets start over!

                    I have listed all of my setting on all the box's , if I have some wrong settings or just effed up just say so lol.

                    A: 192.168.3.x - Home network
                    B: 192.168.2.x - Openvpn servers
                    C: 192.168.1.x - Other network

                    A: 192.168.3.x - Home network
                    General Information
                    Client A
                    Server mode: p2p (Shared Key)
                    Device mode: tun
                    Interface: WAN
                    Local port: blank

                    Tunnel Settings
                    IPv4 Tunnel Network: 10.1.200.0/24
                    IPv6 Tunnel Network: blank
                    IPv4 Remote network(s): 192.168.1.0/24,192.168.2.0/24
                    Disable IPv6: yes
                    –--------------------------------------------------------------------------------------
                    B: 192.168.2.x - Openvpn servers
                    Server settings to (A)
                    Server mode: p2p (Shared Key)
                    Device mode: tun
                    Interface: WAN
                    Local port: blank

                    Tunnel Settings
                    IPv4 Tunnel Network: 10.1.200.0/24
                    IPv6 Tunnel Network: blank
                    IPv4 Remote network(s): 192.168.3.0/24,192.168.1.0/24
                    Disable IPv6: yes

                    General Information
                    Server to other (C)
                    Server mode: p2p (Shared Key)
                    Device mode: tun
                    Interface: WAN
                    Local port: blank

                    Tunnel Settings
                    IPv4 Tunnel Network: 10.0.100.0/24
                    IPv6 Tunnel Network: blank
                    IPv4 Remote network(s): 192.168.1.0/24,192.168.3.0/24
                    Disable IPv6: yes

                    [[b]Why did I use two OPENVPN servers you may ask? Well I tried to use one but could not get it to work so I googled and found this video https://youtu.be/8f13lfnEKY8 and it worked. is using two OPENVPN servers wrong? ]
                    –---------------------------------------------------------------------------------------
                    C: 192.168.1.x - Other network
                    General Information
                    Client C
                    Server mode: p2p (Shared Key)
                    Device mode: tun
                    Interface: WAN
                    Local port: blank

                    Tunnel Settings
                    IPv4 Tunnel Network: 10.0.100.0/24
                    IPv6 Tunnel Network: blank
                    IPv4 Remote network(s): 192.168.2.0/24,192.168.3.0/24
                    Disable IPv6: yes

                    Is there more info you need johnpoz?

                    Untitled-1.jpg
                    Untitled-1.jpg_thumb

                    We all start same where

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      Do this:

                      B: 192.168.2.x - Openvpn servers
                      Server settings to (A)
                      Server mode: p2p (Shared Key)
                      Device mode: tun
                      Interface: WAN
                      Local port: blank

                      Tunnel Settings
                      IPv4 Tunnel Network: 10.1.200.0/24
                      IPv6 Tunnel Network: blank
                      IPv4 Remote network(s): 192.168.3.0/24~~,192.168.1.0/24~~
                      Disable IPv6: yes

                      Server setting to(C)
                      General Information
                      Server to other (C)
                      Server mode: p2p (Shared Key)
                      Device mode: tun
                      Interface: WAN
                      Local port: blank

                      Tunnel Settings
                      IPv4 Tunnel Network: 10.0.100.0/24
                      IPv6 Tunnel Network: blank
                      IPv4 Remote network(s): 192.168.1.0/24~~,192.168.3.0/24~~
                      Disable IPv6: yes

                      You are attempting to create an OpenVPN route for both remote sites on both openvpn tunnels. You only need to define the remote networks that are actually remote on that connection.

                      You are probably seeing all kinds of strangeness because the OpenVPN process that starts first gets both routes and the other one fails to add the routes because they already exist.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • F
                        Fmslick
                        last edited by

                        @Derelict:

                        Do this:

                        B: 192.168.2.x - Openvpn servers
                        Server settings to (A)
                        Server mode: p2p (Shared Key)
                        Device mode: tun
                        Interface: WAN
                        Local port: blank

                        Tunnel Settings
                        IPv4 Tunnel Network: 10.1.200.0/24
                        IPv6 Tunnel Network: blank
                        IPv4 Remote network(s): 192.168.3.0/24~~,192.168.1.0/24~~
                        Disable IPv6: yes

                        Server setting to(C)
                        General Information
                        Server to other (C)
                        Server mode: p2p (Shared Key)
                        Device mode: tun
                        Interface: WAN
                        Local port: blank

                        Tunnel Settings
                        IPv4 Tunnel Network: 10.0.100.0/24
                        IPv6 Tunnel Network: blank
                        IPv4 Remote network(s): 192.168.1.0/24~~,192.168.3.0/24~~
                        Disable IPv6: yes

                        You are attempting to create an OpenVPN route for both remote sites on both openvpn tunnels. You only need to define the remote networks that are actually remote on that connection.

                        You are probably seeing all kinds of strangeness because the OpenVPN process that starts first gets both routes and the other one fails to add the routes because they already exist.

                        Hey thinks that worked, after removing ,192.168.3.0/24 & ,192.168.1.0/24 from C on the two servers ping and tracert is now working and not looping. So I see what I was doing wrong after you pointed it out, think you for this Derelict.

                        We all start same where

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