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

    2.0 Site to site, routing issue?

    Scheduled Pinned Locked Moved OpenVPN
    20 Posts 3 Posters 7.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.
    • S
      skorge
      last edited by

      With the route command in just the client config it actually didn't got added at all. Added the push route thing again and it works as before.

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

        Ah sorry i didn't read right.
        You have a SSL/TLS site-to-site and not a PSK.

        Could you show a screenshot of the rules you created?

        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
        • S
          skorge
          last edited by

          Sure,

          This is from the client. Server looks the same but with 1194 UDP on WAN as well.

          screen-capture-9.png
          screen-capture-9.png_thumb
          screen-capture-10.png
          screen-capture-10.png_thumb

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Check your setup against this:

            http://doc.pfsense.org/index.php/OpenVPN_Site-to-Site_PKI_%28SSL%29

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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

              Thanks jimp,

              I've been going through that guide around 150 times by now and I believe I have configured it exactly the same. Feels like there is no routing between LAN and OpenVPN interfaces..?

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Using multi-wan or other policy routing by chance?

                If so, the traffic is probably hitting a rule with a gateway and getting shoved out a WAN instead of following the firewall's routing table.

                Add a rule at the top of the list with a destination of the VPN network(s) that has no gateway set.

                EDIT: I didn't see your attachment there earlier, so I see you aren't. Though checking the system's routing table on both sites is a good idea.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

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

                  Thanks,

                  I think the routing tables looks fine. The attached is from the client, and the server looks the same (but reverse of course :) )

                  screen-capture-11.png
                  screen-capture-11.png_thumb
                  screen-capture-12.png
                  screen-capture-12.png_thumb

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

                    Could this be related to iroutes?

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      If you don't have iroutes setup (or setup properly) then yes it can be related to iroutes.

                      Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

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

                        i do have an iroute on the server with just the CN of the client and the following line:

                        iroute 192.168.10.0 255.255.255.0;

                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          You might be hitting this:

                          http://redmine.pfsense.org/issues/1417

                          Try adding this to your custom options:

                          client-config-dir /var/etc/openvpn-csc;
                          

                          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

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

                            Yes, that was probably it. Thanks!

                            I think I have some other problems with my configuration but it looks much better now!

                            Thanks a lot for your help.

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

                              Packet captures tells me everything works fine on the server side, but remote side doesn't route between openvpn and lan interface if source is from behind serverโ€ฆ

                              Do I need iroutes on the client side as well?

                              1 Reply Last reply Reply Quote 0
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by

                                No, iroutes only go on the server side. Clients just have route statements. Servers need both route and iroute. Check the doc wiki, search for iroute, there is a troubleshooting doc.

                                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

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

                                  Thats what i thought.

                                  Checked the docs and I have it set up exacly like described. Acts just like the iroute problem on the server though.

                                  I had to set mode server; could that cause these types of problems?

                                  1 Reply Last reply Reply Quote 0
                                  • jimpJ
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by

                                    I think I've got this sorted for sure, it works for me in a Peer-to-Peer (SSL/TLS) setup with iroutes between two VM networks.

                                    https://rcs.pfsense.org/projects/pfsense/repos/mainline/commits/0cc5ab42269a5aa1588ac2f862b0201917569ada

                                    Either try that change or wait for the next new snapshot and then try it again.

                                    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

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

                                      Had to wait a while to be able to upgrade the remote side, but I am happy to say that it is working just fine after updating to the latest snapshot on both sides.

                                      Thanks for your help jimp!

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