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

    Problem with IPSec routing

    Scheduled Pinned Locked Moved IPsec
    17 Posts 3 Posters 1.4k 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.
    • D
      djair @Eduard_Spera
      last edited by

      @Eduard_Spera
      Experimenta coloca uma regra em que quando a origem for a LAN e o destino for a rede do IPSEC passe pelo gateway do IPSEC.

      1 Reply Last reply Reply Quote 0
      • E
        Eduard_Spera
        last edited by Eduard_Spera

        ok, let's start again with new system and new adresses
        SiteA - 192.168.100.1 and network 192.168.100.0/24 (PfSense)
        SiteB - 10.250.50.1 and network 10.250.50.0/24 (PaloAlto)
        VPN tunnel works correctly. I can ping from gateway siteA to siteB and from siteB to gateway in SiteA.
        I can't ping from my computer behind gateway siteA to siteB.
        My settings:
        Static Routes:
        static_routes.PNG

        NAT:
        NAT.PNG

        States:
        states.PNG

        I have no idea what is wrong, please help.

        1 Reply Last reply Reply Quote 0
        • N
          no_jah
          last edited by

          What does the Firewall log say?
          And do you have any rule on IPSec to allow incomming traffic from the other sites network?

          1 Reply Last reply Reply Quote 0
          • E
            Eduard_Spera
            last edited by

            My firewall settings for WAN, LAN and IPSec:
            wan.PNG
            lan.PNG
            ipsec_rule.PNG

            and logs from firewall:
            log_firewall.PNG

            1 Reply Last reply Reply Quote 0
            • N
              no_jah
              last edited by no_jah

              Ok, I think that looks fine, I guess it's a local firewall software that is blocking then, try to teporarily disable it and see if it works then.

              E 1 Reply Last reply Reply Quote 0
              • E
                Eduard_Spera @no_jah
                last edited by

                @no_jah what local firewall you are talking about?

                1 Reply Last reply Reply Quote 0
                • N
                  no_jah
                  last edited by

                  For instance Windows firewall.

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    Eduard_Spera @no_jah
                    last edited by

                    @no_jah but why this Windows reply for ping from gateway SiteA?
                    This is states with ping from gateway siteA and host behind gateway:
                    (green is ok, red is bad)
                    states.PNG

                    1 Reply Last reply Reply Quote 0
                    • N
                      no_jah
                      last edited by

                      I see you got a static route?
                      Normally you don't need a static route for a site to site IPSec, it's handled in the IPSec phase 2, how does your IPSec tunnel setup looks like?

                      1 Reply Last reply Reply Quote 0
                      • E
                        Eduard_Spera
                        last edited by

                        Yes, i have static route, without this entry i can't ping from gateway.

                        PHASE 1
                        phase1.PNG

                        PHASE 2
                        phase2.PNG

                        1 Reply Last reply Reply Quote 0
                        • N
                          no_jah
                          last edited by no_jah

                          First off I think you should use WAN interface at phase 1 instead of your current LAN, and then you could probably skip the static route too.

                          1 Reply Last reply Reply Quote 0
                          • E
                            Eduard_Spera
                            last edited by

                            I change to WAN, established tunel and nothing change, without static route can't ping from gateway and from host too.

                            1 Reply Last reply Reply Quote 0
                            • N
                              no_jah
                              last edited by no_jah

                              Strange I use basically the same settings for a couple of my IPSec tunnels, but I use dynamic DNS named instead of IP-adresses, that shouldn't make any differens.

                              This is how a tunnel between my main pfSense and my virtual test pfSense looks like:

                              Phase 1
                              alt text

                              Phase 2
                              alt text

                              1 Reply Last reply Reply Quote 0
                              • E
                                Eduard_Spera
                                last edited by

                                Hmm, i think that is problem with palo alto.
                                I established different tunnel, with my second pfsense, and all works properly.
                                I will continue working tomorrow
                                @no_jah thank You very much

                                N 1 Reply Last reply Reply Quote 0
                                • N
                                  no_jah @Eduard_Spera
                                  last edited by no_jah

                                  @Eduard_Spera

                                  You're welcome, and btw. to be able to ping from pfSense interface to the PA router without static route you need to select LAN "Source address" at Diagnostics / Ping.

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    Eduard_Spera
                                    last edited by

                                    yes, it's work ;)
                                    and ping with -S flag work too without static route

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