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

    can't update pfsense or install packages

    Scheduled Pinned Locked Moved General pfSense Questions
    148 Posts 9 Posters 27.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.
    • M
      mrrobot @jimp
      last edited by

      @jimp rules.txt

      1 Reply Last reply Reply Quote 0
      • M
        mrrobot @stephenw10
        last edited by

        @stephenw10 outbound NAT Mode is set to automatic

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Did you ever have rules using those aliases for the Netgate repo servers?

          Though you cant even open a state to 1.1.1.1.

          Did you ever have Snort/Suricata installed?

          M 1 Reply Last reply Reply Quote 0
          • M
            mrrobot @stephenw10
            last edited by

            @stephenw10 u mean aliases for netgate servers ? i don't remember
            and i have never installed any package

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Your config contains:

              # User Aliases\
              table <files01_netgate_com> \{   208.123.73.209/32  2610:160:11:18::209/128 \}\
              files01_netgate_com = "<files01_netgate_com>"\
              table <files00_netgate_com> \{   208.123.73.207/32  2610:160:11:18::207/128 \}\
              files00_netgate_com = "<files00_netgate_com>"\
              table <pkg01_atx_netgate_com> \{   208.123.73.209/32  2610:160:11:18::209/128 \}\
              pkg01_atx_netgate_com = "<pkg01_atx_netgate_com>"\
              table <pkg00_atx_netgate_com> \{   208.123.73.207/32  2610:160:11:18::207/128 \}\
              pkg00_atx_netgate_com = "<pkg00_atx_netgate_com>"\
              

              Those are user created but are not currently being used in the ruleset. If at any time they were used it's possible some old rule is somehow still loaded.

              Can we assume you have rebooted at some point? That would clear any old rules.

              M 1 Reply Last reply Reply Quote 0
              • M
                mrrobot @stephenw10
                last edited by

                @stephenw10 i just rebooted the router but nothing changes

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  So you have those aliases but never used them in a firewall rule?

                  Do you have an upstream proxy configured?

                  M 2 Replies Last reply Reply Quote 0
                  • M
                    mrrobot @stephenw10
                    last edited by

                    @stephenw10 said in can't update pfsense or install packages:

                    So you have those aliases but never used them in a firewall rule?

                    yes

                    1 Reply Last reply Reply Quote 0
                    • M
                      mrrobot @stephenw10
                      last edited by

                      @stephenw10 said in can't update pfsense or install packages:

                      Do you have an upstream proxy configured?

                      no

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Ok try this. At the CLI run:

                        pfctl -d
                        

                        That will disable the firewall entirely.
                        Then try to update again:

                        pkg-static -d update
                        

                        Re-enable the firewall again:

                        pfctl -e
                        
                        M 1 Reply Last reply Reply Quote 1
                        • M
                          mrrobot @stephenw10
                          last edited by

                          @stephenw10 i lost internet completely when i desabled the firewall

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            You would lose it from a client behind the firewall because it also disables NAT but does it allow the firewall to connect to the package servers?

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mrrobot @stephenw10
                              last edited by

                              @stephenw10 no the firewall update status keeps looking in the dashboard
                              tired the update from command prompt, no success
                              package manager is unable to connect to servers

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                Does it still show 'permission denied' though with the firewall disabled?

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  mrrobot @stephenw10
                                  last edited by

                                  @stephenw10 permission denied where ?

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    When you run pkg-static -d update.

                                    Previously you were seeing:

                                    DBG(1)[49613]> Fetch: fetching from: https://pkg00-atx.netgate.com/pfSense_v2_6_0_amd64-core/meta.txz with opts "i4"
                                    pkg-static: https://pkg00-atx.netgate.com/pfSense_v2_6_0_amd64-core/meta.txz: Permission denied
                                    

                                    And similarly in the netcat test:

                                    $nc -vz4 pkg00-atx.netgate.com 443
                                    	nc: connect to pkg00-atx.netgate.com port 443 (tcp) failed: Permission denied
                                    

                                    Since it can't create states locally it must be something on the firewall doing that.
                                    So if we disable pf and it still shows that error that means it must be something other than pf. Which in 2.6 could really only be ipfw.
                                    But that's only used in the Captive Portal and for Limiters.
                                    So since you're not using Captive Portal, do you have Limiters defined? I don't see any rules passing traffic into pipes if you do.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      mrrobot @stephenw10
                                      last edited by

                                      @stephenw10 said in can't update pfsense or install packages:

                                      nc -vz4 pkg00-atx.netgate.com 443

                                      after disabling pf i got this

                                      [2.6.0-RELEASE][admin@pfSense.xxx.local]/root: pkg-static -d update
                                      DBG(1)[55352]> pkg initialized
                                      Updating pfSense-core repository catalogue...
                                      DBG(1)[55352]> PkgRepo: verifying update for pfSense-core
                                      DBG(1)[55352]> PkgRepo: need forced update of pfSense-core
                                      DBG(1)[55352]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense-core.sqlite'
                                      DBG(1)[55352]> Request to fetch pkg+https://packages.netgate.com/pfSense_v2_6_0_amd64-core/meta.conf
                                      DBG(1)[55352]> opening libfetch fetcher
                                      DBG(1)[55352]> Fetch > libfetch: connecting
                                      DBG(1)[55352]> Fetch: fetching from: https://packages.netgate.com/pfSense_v2_6_0_amd64-core/meta.conf with opts "i"
                                      DBG(1)[55352]> Fetch: fetching from: https://packages.netgate.com/pfSense_v2_6_0_amd64-core/meta.conf with opts "i"
                                      DBG(1)[55352]> Fetch: fetching from: https://packages.netgate.com/pfSense_v2_6_0_amd64-core/meta.conf with opts "i"
                                      DBG(1)[55352]> Request to fetch pkg+https://packages.netgate.com/pfSense_v2_6_0_amd64-core/meta.txz
                                      DBG(1)[55352]> opening libfetch fetcher
                                      DBG(1)[55352]> Fetch > libfetch: connecting
                                      DBG(1)[55352]> Fetch: fetching from: https://packages.netgate.com/pfSense_v2_6_0_amd64-core/meta.txz with opts "i"
                                      DBG(1)[55352]> Fetch: fetching from: https://packages.netgate.com/pfSense_v2_6_0_amd64-core/meta.txz with opts "i"
                                      ^C
                                      
                                      2.6.0-RELEASE][admin@pfSense.xxx.local]/root: nc -vz4 pkg00-atx.netgate.com 443
                                      nc: getaddrinfo: Name does not resolve
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        Ok so a DNS issue. For v4 at least

                                        How is the sytem DNS configured in general setup?

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          mrrobot @stephenw10
                                          last edited by

                                          @stephenw10 im using a local pihole server, but i did try google & cloudflare dns servers with no luck
                                          do you want me to run some tests ?

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            Yes, some testing is needed in pfSense.

                                            But first confirm how pfSense is configured for DNS in General Setup. Is it using only the pihole?

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