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

    strange wget error behind pfsense

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 882 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
      mr.pine
      last edited by

      hi,
      I have a debian 11 vm behind pfense(last version). when try to use wget it sometimes return error. at the same time a have no problem on chrome/opera/firefox clients!

      wget http://yahoo.com
      --2023-01-23 04:32:28--  http://yahoo.com/
      Resolving yahoo.com (yahoo.com)... 98.137.11.164, 74.6.143.25, 98.137.11.163, ...
      Connecting to yahoo.com (yahoo.com)|98.137.11.164|:80... connected.
      HTTP request sent, awaiting response... 503 Service Unavailable
      2023-01-23 04:32:28 ERROR 503: Service Unavailable.
      

      access to most sites are ok:

      wget http://google.com
      --2023-01-24 09:19:25--  http://google.com/
      Resolving google.com (google.com)... 216.239.38.120, 2001:4860:4802:32::78
      Connecting to google.com (google.com)|216.239.38.120|:80... connected.
      HTTP request sent, awaiting response... 301 Moved Permanently
      Location: http://www.google.com/ [following]
      --2023-01-24 09:19:25--  http://www.google.com/
      Resolving www.google.com (www.google.com)... 216.239.38.120, 2001:4860:4802:32::78
      Reusing existing connection to google.com:80.
      HTTP request sent, awaiting response... 200 OK
      Length: unspecified [text/html]
      Saving to: 'index.html'
      
      index.html                             [ <=>                                                           ]  13.69K  --.-KB/s    in 0s      
      
      2023-01-24 09:19:26 (138 MB/s) - 'index.html' saved [14014]
      
      

      traffic capture ...

      e8171c0a-60d5-46ee-8645-444ba37aefaf-image.png

      any idea?!

      stephenw10S 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator @mr.pine
        last edited by

        The remote server is sending a 503 error. That's nothing pfSense can do anything with.

        Does it fail with https? It works fine every time for me here but it's automgically switching to https on this system:

        steve@steve-NUC9i9QNX:~$ wget -O /dev/null http://yahoo.com
        URL transformed to HTTPS due to an HSTS policy
        --2023-01-24 13:52:44--  https://yahoo.com/
        Resolving yahoo.com (yahoo.com)... 98.137.11.163, 74.6.231.20, 74.6.143.26, ...
        Connecting to yahoo.com (yahoo.com)|98.137.11.163|:443... connected.
        HTTP request sent, awaiting response... 301 Moved Permanently
        Location: https://www.yahoo.com/ [following]
        --2023-01-24 13:52:45--  https://www.yahoo.com/
        Resolving www.yahoo.com (www.yahoo.com)... 87.248.100.215, 87.248.100.216, 2a00:1288:110:c305::1:8000, ...
        Connecting to www.yahoo.com (www.yahoo.com)|87.248.100.215|:443... connected.
        HTTP request sent, awaiting response... 200 OK
        Length: unspecified [text/html]
        Saving to: ‘/dev/null’
        
        /dev/null                                                     [  <=>                                                                                                                               ] 678.42K  1.78MB/s    in 0.4s    
        
        2023-01-24 13:52:45 (1.78 MB/s) - ‘/dev/null’ saved [694706]
        

        Steve

        1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire
          last edited by

          @mr-pine Are you behind a VPN? I have had problems in the past connecting to the Yahoo! fantasy football site from a Hurricane Electric IPv6 address. Unfortunately I do not recall the error message. But if you're using a VPN they may be blocking it only one some of their servers...? As noted the response means the web server saw your request and returned the error code/message, so it's not a communication problem.

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

          M 1 Reply Last reply Reply Quote 0
          • M
            mr.pine @SteveITS
            last edited by

            @steveits TNX for reply ,
            No, I have a small LAN. some Opera/Windows/Linux clients. Only wget got this error !!! I AIso change browser agent id in wget but ...

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

              Did you try https?

              M 1 Reply Last reply Reply Quote 0
              • M
                mr.pine @stephenw10
                last edited by

                @stephenw10
                Https Works! it seems that http redirect has a problem.!

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

                  And / or your test client is not respecting the HSTS policy maybe?

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