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

    ***SOLVED*** Cant seem to get my apt-get working on VM

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 2.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
      sbwcws
      last edited by sbwcws

      I have few VM running, Ubuntu and Debian which is behind my pfsense, everything works fine but when it comes to running apt-get update or install it just say's connecting ....... and nothing happens.

      What do I do to fix , This - I did disable PFNG Blocker and still no luck, I dont have any proxy server just pfsense and PFNG blocker which in this case is disable.

      alt text
      alt text

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

        Are you actually seeing blocked traffic from those VMs?

        What is the error shown? Is it failing to resolve?

        Steve

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

          This is what I see

          alt text
          alt text

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

            Do you actually have IPv6 connectivity? If not you need to set those VMs to prefer v4, they are resolving a v6 IP and trying to reach it... and failing.

            Steve

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

              Thanks - That was the problem - I end up disabling Ipv6 in VM and everything went fine, here's what I did so it can help the others

              I went in
              /etc/sysctl.conf

              And added the following line
              net.ipv6.conf.all.disable_ipv6=1

              You can check by doing the following

              cat /proc/sys/net/ipv6/conf/all/disable_ipv6

              If it returns 1 that means IpV6 is disable and if it returns 0 that means it's enable.


              How and what can do I in pfsense so I dont have to individually go in each VM and do this.

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

                I imagine those VMs are doing that because they think they have a valid v6 connection. Disable IPv6 on the pfSense LAN. That will require disabling DHCPv6 if it's enabled.

                Steve

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

                  @stephenw10 said in Cant seem to get my apt-get working on VM:

                  Disable IPv6 on the pfSense LAN

                  Thanks - It's resolved - I've disable DHCP 6 server and uncheck in my LAN interface everything is perfect now.

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