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

[RESOLVED]No internet on ubuntu when disable dhcp

Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
49 Posts 4 Posters 8.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.
  • F
    Farisse
    last edited by Farisse Jul 12, 2020, 10:29 PM Jul 10, 2020, 3:18 PM

    Hi there,

    I do not understand why it is not working.

    I actually have a few networks on pfsense. The thing is, I have on my DMZ network a few machines.
    My windows machines where I configured a static ip can access to the internet.
    But I can't access to the internet with my ubuntu machines. Even if I configured a static ip.

    Does someone have any idea why it doesn't work?

    If I activate the DHCP server and have a static ip on my ubuntu machine it works (can access internet) but when I disable the DHCP I get no internet anymore only on my Ubuntu machine.

    If someone could help me find out where the problem is please ?

    Thank you very much !

    (And sorry for my bad English)

    Farisse

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Jul 10, 2020, 3:34 PM

      Your ubuntu is configured wrong.. dhcp running or not running on pfsense has zero to do with internet access..

      Common problem users forget when they set static on something is dns.. You ubuntu will have no internet if doesn't point to dns.

      Make sure your ubuntu can ping pfsense IP, and it can resolve dns..

      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.7.2, 24.11

      1 Reply Last reply Reply Quote 1
      • K
        kiokoman LAYER 8
        last edited by Jul 10, 2020, 3:39 PM

        yeah, my bet is your /etc/resolv.conf is missing -> nameserver 1.2.3.4

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        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.

        F 1 Reply Last reply Jul 10, 2020, 3:54 PM Reply Quote 1
        • F
          Farisse
          last edited by Jul 10, 2020, 3:47 PM

          Thank you for your anwser, I actually did it. Everything is well configured for the ubuntu side. I copied everything from my windows configuration where I can access to internet. So normally I should have the same configuration . Dns, mask, route... however I can not ping my pfSense Ip?
          pfSense & ubunto on dmz:
          33946532-212e-48b8-9ede-6d3f1e66cb26-image.png
          Windows on dmz :
          e390deb7-62cc-4bad-9203-46fa61373685-image.png

          I actually tried with and without the dns but got the same result

          1 Reply Last reply Reply Quote 0
          • F
            Farisse @kiokoman
            last edited by Jul 10, 2020, 3:54 PM

            @kiokoman thank you for your answer :)
            de4fab48-606e-4828-9b94-86cecb337869-image.png
            So this should be the problem of getting internet on my ubuntu machine ?

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz Jul 10, 2020, 4:17 PM Jul 10, 2020, 4:13 PM

              Why are you trying to ping 192.168.0.50 ?

              Pfsense IP would be 192.168.1.1 from what your showing. (gateway on your windows machine interface)

              Why are you looking at Hyper-V interfaces? Is pfsense running as VM? Is your windows machine or unbound VM?

              Where is 192.168.0.1 coming from for your user? logged into pfsense?

              Your going to have to explain how you have this all setup and connected if you want help... Looks like you have Hyper-V involved and prob doing some nat since your showing 192.168.0 and 192.168.1 networks??

              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.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • F
                Farisse
                last edited by Farisse Jul 10, 2020, 4:35 PM Jul 10, 2020, 4:31 PM

                Haha Yup indeed, I will try to explain it clearly.

                Pfsense is running as vm on Hyper-V, and actyally all my machines are in vms.

                I'm working on a lab in the network of my school so the actual external ip I could have is an private ip witch is 10.3.17.4.

                As I said I have a few networks created with hyper-v switches in hyper v.

                The ip address I gave to my pfsense machine is 192.168.0.50 internal and 10.3.17.4 external.

                my networks are :
                LAN 192.168.0.0/24
                DMZ 192.168.1.0/24
                GUEST 192.168.3.0/24

                I installed on my lan with pfsense - Squid Proxy - :
                AD server 192.168.0.10
                2 clients (dont remember ip they are off)
                On my dmz :
                webserver (ubuntu) 192.168.1.3
                windows client 192.168.1.5
                on my Guest - captive portal - proxy - FreeRADIUS :
                client dhcp

                So I guess this is what I did and have.

                I don't know if it answers to your questions ? If not do not hesitate to let me know 🤞🏼

                1 Reply Last reply Reply Quote 0
                • K
                  kiokoman LAYER 8
                  last edited by kiokoman Jul 10, 2020, 4:43 PM Jul 10, 2020, 4:37 PM

                  that "Route setting" does not make any sense to me
                  Immagine.jpg

                  i don't have any window manager on my ubuntu maybe your window manager does not use resolv.conf idk, but that 127.0.0.53 is the address of the local caching stub resolver maybe it's forwarding to 192.168.1.1 or maybe not

                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                  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.

                  F 1 Reply Last reply Jul 10, 2020, 4:43 PM Reply Quote 1
                  • F
                    Farisse @kiokoman
                    last edited by Jul 10, 2020, 4:43 PM

                    @kiokoman tbh i dont understand ubuntu anymore, i didn't use it for years now. otherwise i was using debian Jessie ... and i never had so many problems with ubuntu or debian. Since they changed that thing of netplan and resolveconf etc. i became lost in the configuration of networks :/
                    To respond to wht you said, when the dhcp is activated and i try to get ip details i see the this gateway this is why i add it to the network configuration. but event without it wont work >.< i literally tried every possibility but it didn't work.

                    1 Reply Last reply Reply Quote 0
                    • K
                      kiokoman LAYER 8
                      last edited by kiokoman Jul 10, 2020, 4:46 PM Jul 10, 2020, 4:45 PM

                      yeah i have ubuntu but the first thing i have done was to uninstall / disable netplan and restore the old behavior like debian
                      i'm still using /etc/network/interface to set my static ip and resolvconf

                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                      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.

                      F 1 Reply Last reply Jul 10, 2020, 4:53 PM Reply Quote 1
                      • F
                        Farisse @kiokoman
                        last edited by Jul 10, 2020, 4:53 PM

                        @kiokoman Idk if i still can do it, because i'm bored of trying things that doesn't work like "usual" before.
                        idk if this can help to visualise my problem :
                        https://streamable.com/397ueq

                        1 Reply Last reply Reply Quote 0
                        • K
                          kiokoman LAYER 8
                          last edited by Jul 10, 2020, 5:26 PM

                          that is a ubuntu problem for sure, idk you should ask ubuntu forum or https://askubuntu.com/questions/1031709/ubuntu-18-04-switch-back-to-etc-network-interfaces
                          or use dhcp static mapping

                          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                          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.

                          F 1 Reply Last reply Jul 10, 2020, 5:42 PM Reply Quote 1
                          • F
                            Farisse @kiokoman
                            last edited by Jul 10, 2020, 5:42 PM

                            @kiokoman Thank you i will take a look at the post :)

                            1 Reply Last reply Reply Quote 0
                            • F
                              Farisse
                              last edited by Jul 11, 2020, 12:37 PM

                              Update !

                              So i reinstalled my ubuntu machine and deactivated netplan and ... It didn't work.

                              The simple reason is, i am working on a private network they have their own DNS servers.

                              So when i am using the DHCP server there is apparently an automatic DNS forwarding to my machine. The DNS of my school but its hidden in the ubuntu settings. (ofc)

                              So now when i tried to put the dns of my school in my /etc/systemd/resolved.conf document. It worked.

                              Now i'm wondering if you may help me to understand how i could make it work without adding the dns of my school in the /resolved.conf ?

                              I thought about dns forwarding, but not sure about the working.

                              If someone can help it would be great. If not, moderator can close the subject and mark it as solved.

                              Thank you for your help ! :)

                              Farisse

                              B 1 Reply Last reply Jul 11, 2020, 1:26 PM Reply Quote 0
                              • B
                                bmeeks @Farisse
                                last edited by bmeeks Jul 11, 2020, 1:28 PM Jul 11, 2020, 1:26 PM

                                @Farisse said in No internet on ubuntu when disable dhcp:

                                Update !

                                So i reinstalled my ubuntu machine and deactivated netplan and ... It didn't work.

                                The simple reason is, i am working on a private network they have their own DNS servers.

                                So when i am using the DHCP server there is apparently an automatic DNS forwarding to my machine. The DNS of my school but its hidden in the ubuntu settings. (ofc)

                                So now when i tried to put the dns of my school in my /etc/systemd/resolved.conf document. It worked.

                                Now i'm wondering if you may help me to understand how i could make it work without adding the dns of my school in the /resolved.conf ?

                                I thought about dns forwarding, but not sure about the working.

                                If someone can help it would be great. If not, moderator can close the subject and mark it as solved.

                                Thank you for your help ! :)

                                Farisse

                                It is a fairly common practice for schools to intercept DNS requests and redirect/force them to a school-maintained DNS server. The school's DHCP server is giving all machines on the network the proper DNS server to use. This is done to monitor for and/or prevent access to inappropriate content. It also allows the school to have DNS entries they maintain for local servers and services. If your school network is doing this, then you won't be able to use another DNS server unless you perhaps can get something running over a VPN.

                                F 1 Reply Last reply Jul 11, 2020, 3:06 PM Reply Quote 1
                                • F
                                  Farisse @bmeeks
                                  last edited by Jul 11, 2020, 3:06 PM

                                  @bmeeks
                                  Thank you for your answer
                                  Indeed, i have to use the dns of the school. But what i don't understand is, i don't put anything on my windows machine except the static ip, gateway that's all and it works. But on my ubuntu machine it doesn't work. So i don't understand how it works in pfsense to let my windows machine use the dns i entered in pfsense and not my ubuntu machine. It's not logic for me :/

                                  B 1 Reply Last reply Jul 11, 2020, 3:19 PM Reply Quote 0
                                  • B
                                    bmeeks @Farisse
                                    last edited by Jul 11, 2020, 3:19 PM

                                    @Farisse said in No internet on ubuntu when disable dhcp:

                                    @bmeeks
                                    Thank you for your answer
                                    Indeed, i have to use the dns of the school. But what i don't understand is, i don't put anything on my windows machine except the static ip, gateway that's all and it works. But on my ubuntu machine it doesn't work. So i don't understand how it works in pfsense to let my windows machine use the dns i entered in pfsense and not my ubuntu machine. It's not logic for me :/

                                    Is your Windows machine a member of an AD domain? If so, the AD domain controller is the DNS server, and it probably forwards to the school's DNS server (or it may actually be the school's DNS server).

                                    F 1 Reply Last reply Jul 11, 2020, 4:00 PM Reply Quote 0
                                    • F
                                      Farisse @bmeeks
                                      last edited by Jul 11, 2020, 4:00 PM

                                      @bmeeks Nope its not :(
                                      I just tried but my windows machine is not member of AD domain.
                                      here is a little video : https://streamable.com/6mznjo
                                      even with the schools dns it doesn't work anymore. Really strange things are happening here :/

                                      B 1 Reply Last reply Jul 11, 2020, 4:04 PM Reply Quote 0
                                      • B
                                        bmeeks @Farisse
                                        last edited by Jul 11, 2020, 4:04 PM

                                        @Farisse said in No internet on ubuntu when disable dhcp:

                                        @bmeeks Nope its not :(
                                        I just tried but my windows machine is not member of AD domain.
                                        here is a little video : https://streamable.com/6mznjo
                                        even with the schools dns it doesn't work anymore. Really strange things are happening here :/

                                        I am not a user of Hyper-V. I am an ESXi user. One place I would concentrate my research is within the networking configuration of Hyper-V.

                                        Are you running Hyper-V on hardware by itself, or are you running Hyper-V on say a Windows desktop? There will be substantial changes to some of the networking in one installation versus the other.

                                        F 1 Reply Last reply Jul 11, 2020, 4:14 PM Reply Quote 0
                                        • F
                                          Farisse @bmeeks
                                          last edited by Jul 11, 2020, 4:14 PM

                                          @bmeeks
                                          I don't think the problem should come from the hyper v configuration. I think this because all the other machines are working, and its only ubuntu machines that doesn't work. (Maybe i should go to an ubuntu forum sorry for that). I work on a windows desktop.
                                          So i have a VPN connection to the windows machine where is installed windows server and hyper-v manager.
                                          I think the problem should be something like resolving he dns between the ubuntu machine and pfsense but idk where to search :/

                                          1 Reply Last reply Reply Quote 0
                                          10 out of 49
                                          • First post
                                            10/49
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received