• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 May 8, 2019, 5:36 PM May 8, 2019, 4:35 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by May 8, 2019, 4:39 PM

      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 May 8, 2019, 4:51 PM

        This is what I see

        alt text
        alt text

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by May 8, 2019, 4:54 PM

          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 May 8, 2019, 5:10 PM

            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
            • S
              stephenw10 Netgate Administrator
              last edited by May 8, 2019, 5:13 PM

              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 May 8, 2019, 5:36 PM

                @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
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received