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

    [risolto] OpenVpn site to site

    Scheduled Pinned Locked Moved Italiano
    25 Posts 3 Posters 2.2k 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.
    • M
      muttley
      last edited by muttley

      Grazie.

      Il ping riesco a farlo da pfsense SEDE A ad un client SEDE B e viceversa, ma se provo da client sede A a client sede B e viceversa non va.

      Riesco da client a pingare gli ip del tunnel e l'ip pubblico della sede remota.

      I firewall dei client (win10) sono disabilitati.

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        ok hai messo un regola che permetta il traffico da LAN a OpenVPN? hai niente nel log del firewall quando provi a pingare?

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        1 Reply Last reply Reply Quote 0
        • M
          muttley
          last edited by

          ho questa configurazione:
          Immagine.png

          1 Reply Last reply Reply Quote 0
          • kiokomanK
            kiokoman LAYER 8
            last edited by kiokoman

            Openvpn ha la stessa regola? ripeto sul log del firewall hai niente di utile? l'interfaccia OPT1 che indirizzi ip usa sicuro che i client non siano collegati li? se riesci a pingare da pfsense il tunnel e i client dall'altra parte ormai ci sei la configurazione di openvpn è apposto ci deve essere qualcos'altro che blocca i client che sia firewall o un altro router in mezzo. tra l'altro gli stati di quelle regole sono 0/0 quindi non sono mai state applicate/non è mai passato traffico se non sulla porta 80 che è l'anti-lockout per configurare pfsense

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

            1 Reply Last reply Reply Quote 0
            • M
              muttley
              last edited by

              Openvpn rule, tutto permesso. IPv 4 * * * * *

              log del firewall non vedo nulla facendo il ping.

              OPT1 172.17.0.1

              Si ci sono degli switch layer 3, ma sono con la configurazione di default.

              C'è un pò di traffico, quando era 0/0 l'avevo riavviato.

              1 Reply Last reply Reply Quote 0
              • kiokomanK
                kiokoman LAYER 8
                last edited by kiokoman

                e hai messo come tunnel 172.17 la stessa net che usi per OPT1 ? o hai attivato l'interfaccia ovpns1 ? quella non va ne attivata ne assegnata
                deve rimanere li
                Immagine.jpg

                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                Please do not use chat/PM to ask for help
                we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                1 Reply Last reply Reply Quote 0
                • M
                  muttley
                  last edited by

                  ho tolto OPT1, ma con o senza il risultato non cambia. Avevo abilitato la porta perchè era stata creata con OpenVpn è pensavo che potesse essere lì il problema ma effettivamente non ho trovato documentazione in merito.

                  sulla sede A ho un server su 192.168.0.254, facendo il ping da pfsense sede B riesco a raggiungerlo, se provo da un client sede B non riesco.

                  Considera che il firewall della sede B è il gateway della 192.168.1.0/24, quindi quando il destinario è 192.168.0.0/24 da 192.168.1.0/24 che non sia il firewall, no va.

                  1 Reply Last reply Reply Quote 0
                  • kiokomanK
                    kiokoman LAYER 8
                    last edited by

                    @johnpoz
                    site A 192.168.0.0
                    site B 192.168.1.0

                    pfsense inside Site B can ping 192.168.0.254 where there is a server, can ping tunnel 172.17
                    client connected to Site B can't ping anything inside 192.168.0.0/24

                    default 88.xxx.xxx.153 UGS 7189 1500 re1
                    88.xxx.xxx.152/29 link#2 U 156956 1500 re1
                    88.xxx.xxx.155 link#2 UHS 0 16384 lo0
                    89.xxx.xxx.59 88.xxx.xxx.153 UGHS 15344 1500 re1
                    127.0.0.1 link#4 UH 144 16384 lo0
                    172.17.0.1 link#7 UHS 0 16384 lo0
                    172.17.0.2 link#7 UH 1012 1500 ovpns1
                    192.168.0.0/24 172.17.0.2 UGS 0 1500 ovpns1
                    192.168.1.0/24 link#1 U 3950953 1500 re0
                    192.168.1.254 link#1 UHS 3 16384 lo0

                    can you give him some advice?

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    Please do not use chat/PM to ask for help
                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                      Does the server he is pinging allow pings from that source network - more then likely its firewall would prevent that. Out of the box for example windows doesn't allow pings from other networks.

                      What are the rules on the vpn interfaces.. you have this

                      you have this.

                      A 192.168.0/24 --- pfsenseA --- 172.17.0/30 (tunnel) ---- pfsenseB ---- 192.168.1/24 B

                      When you ping B from A, B has to allow A network to ping it.. What are the server firewall settings?

                      What about the routes on the other side. Pfsense A has to know how to get to B, and pfsense B has to know how to get to A

                      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
                      • kiokomanK
                        kiokoman LAYER 8
                        last edited by

                        qundi @muttley devi verificare le regole del firewall sia su sede A che su sede B
                        le interfacce LAN -Openvpn-Openvpn-LAN devono poter comunicare tra loro

                        la regola che mi hai mostrato prima permette tutto su quella interfaccia ma non hai mostrato cosa hai su OpenVPN poi abiliti il traffico anche sull'altra sede

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                        1 Reply Last reply Reply Quote 0
                        • M
                          muttley
                          last edited by

                          ti posto openvpn, è lo stesso su entrambi i firewall
                          openvpn.png

                          1 Reply Last reply Reply Quote 0
                          • M
                            muttley
                            last edited by

                            grazie @kiokoman , finalmente ho risolto.

                            La configurazione era corretta, il problema era lo switch layer3 della sede A.
                            Aveva come IP di management la stessa subnet della LAN, l'ho sostituito con un altro tanto per rimediare velocemente.
                            Adesso devo cercare di inoltrare le richieste al server DNS interno, ma questa è un'altra storia....

                            1 Reply Last reply Reply Quote 0
                            • kiokomanK
                              kiokoman LAYER 8
                              last edited by

                              ohh felice che hai risolto, ottimo ! per il dns se hai bisogno chiedi pure !

                              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                              Please do not use chat/PM to ask for help
                              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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