Community discussions

MikroTik App
 
Rabid3east
just joined
Topic Author
Posts: 8
Joined: Mon Oct 25, 2021 10:21 pm

Home Server Not Connecting

Thu Jan 20, 2022 3:33 pm

I've tried many things within the IP>DNS to allow my home server running proxmox to connect. Searched many forums and blogs for information for my problem, which I'm sure is rather simple but I'm pretty new with all this stuff. I've got Mikrotik internet working fine as well as caps doing there job. When I ran the server as Ubuntu server it had no issues. But I realized I will need to run VM's so went with proxmox. I was told to use a DNS Resolver, but haven't found any sort of setting for that in Mikrotik.

Please help me connect my server properly to Mikrotik. Thanks!

------------
On proxmox forums I posted:
"Possible Network Router Preventing Updates

I'm on a fresh install of Proxmox on baremetal. Able to log on and do some things and was tinkering in shell. Early on I noticed that I was getting things like "Temporary failure resolving 'ftp.us.debian.org' or 'Failed to fetch http: ....etc" when typing in apt-get update. Trying to ping google.com comes up with "temporary failure in name resolution"

cat /etc/resolve.conf
"nameserver 127.0.0.1"
When I ping the nameserver it works.

Resolvectl
" Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found."

I've searched a lot of forums and websites to fix this issue and even adding my own repository URL's to no avail. I believe this could be related to my Mikrotik router blocking something? IF not, I'm out of options. What would be the proper way to allow proxmox access through the router?

Thanks in advanced!"
Source: https://forum.proxmox.com/threads/possi ... ost-445214
-----------
Last edited by Rabid3east on Thu Jan 20, 2022 5:57 pm, edited 1 time in total.
 
User avatar
own3r1138
Long time Member
Long time Member
Posts: 689
Joined: Sun Feb 14, 2021 12:33 am
Location: Pleiades
Contact:

Re: Home Server Not Connecting

Thu Jan 20, 2022 3:50 pm

Hello,
Could you send a network diagram/topology?
 
Rabid3east
just joined
Topic Author
Posts: 8
Joined: Mon Oct 25, 2021 10:21 pm

Re: Home Server Not Connecting

Thu Jan 20, 2022 5:53 pm

I have quite a simple setup but don't know much about DNS or if that's the issue? Others suspect it is, but previously I had Ubuntu Server OS running on baremetal and it was able to run updates.
NetworkDiagram.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19323
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Home Server Not Connecting

Thu Jan 20, 2022 5:53 pm

As noted a clear network diagram is a must.
also please post your mt config
/export hide-sensitive file=anynameyouwish

PS I know of 7.1.1 stable but not 7.0.8 ????
In terms of port forwarding please read this.

viewtopic.php?t=179343
 
Rabid3east
just joined
Topic Author
Posts: 8
Joined: Mon Oct 25, 2021 10:21 pm

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:02 pm

Here is the attachment. Also, I was given 7.0.8 when I kept having issues with settings resetting after reboot, that version fixed it and it has already been a few months.
anynameyouwish.rsc
You do not have the required permissions to view the files attached to this post.
 
User avatar
own3r1138
Long time Member
Long time Member
Posts: 689
Joined: Sun Feb 14, 2021 12:33 am
Location: Pleiades
Contact:

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:13 pm

/ip dns
set allow-remote-requests=yes servers=127.0.0.1
/ip dns static

I think thats your problem should be external DNS server
it can resolve its own DNS as a DNS server
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11595
Joined: Thu Mar 03, 2016 10:23 pm

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:15 pm

cat /etc/resolve.conf
"nameserver 127.0.0.1"
When I ping the nameserver it works.

Resolvectl
" Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found."

Address 127.0.0.1 is a loopback address and /etc/resolv.conf indicates, that your proxmox server is supposed to run its own DNS server. So you need to look into configuration of whatever server is running and set some public external servers as upstream servers (a.k.a. forwarders).

Another possibility (but not exactly in the spirit of proxmox it seems) is to replace line "nameserver 127.0.0.1" with e.g. "nameserver 1.1.1.1" and optionally add line "nameserver 8.8.8.8". Which will bypass the local magic and instruct resolver library to work directly with configured external servers.

Yet another possibility (perhaps the preferred one, I can't check router configuration from attachment, my android tablet doesn't like .rsc files) is to fix DHCP network configuration by adding dns-server property.
 
User avatar
own3r1138
Long time Member
Long time Member
Posts: 689
Joined: Sun Feb 14, 2021 12:33 am
Location: Pleiades
Contact:

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:20 pm

as you cant open it.
I post this here too
/ip dhcp-server network
add address=24.42.251.0/24 gateway=24.42.251.50
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=192.168.88.1
 
Rabid3east
just joined
Topic Author
Posts: 8
Joined: Mon Oct 25, 2021 10:21 pm

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:31 pm

/ip dns
set allow-remote-requests=yes servers=127.0.0.1
/ip dns static

I think thats your problem should be external DNS server
it can resolve its own DNS as a DNS server
How do I make it external to give it a test?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11595
Joined: Thu Mar 03, 2016 10:23 pm

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:35 pm

Since MT's implementation of DNS server is nothing to praise, I'd bypass it:
/ip dns
set allow-remote-requests=no servers=8.8.8.8,1.1.1.1
/ip dhcp-server network
add address=192.168.88.0/24 dns-server=8.8.8.8,1.1.1.1 gateway=192.168.88.1
 
User avatar
own3r1138
Long time Member
Long time Member
Posts: 689
Joined: Sun Feb 14, 2021 12:33 am
Location: Pleiades
Contact:

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:38 pm

Yes, set up pi-hole as VM or container and let it be the main DNS server.
or
https://github.com/0xERR0R/blocky
 
Rabid3east
just joined
Topic Author
Posts: 8
Joined: Mon Oct 25, 2021 10:21 pm

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:40 pm

Thanks everyone for assisting in this issue. I changed the nameserver on /etc/resolve.conf to 1.1.1.1 and it's working as expected. If I were to use PI hole (heard much about it), would I need to change anything else at this point on the Mikrotik router?
 
User avatar
own3r1138
Long time Member
Long time Member
Posts: 689
Joined: Sun Feb 14, 2021 12:33 am
Location: Pleiades
Contact:

Re: Home Server Not Connecting

Thu Jan 20, 2022 6:46 pm

right now you don't have any local DNS server so. If you want to do it correctly and have a local DNS server for the fast queries respond. you have to set Pi-hole or whatever that you decide is the best for you cuz they are too many of them and all of them have some leverage over others.
you need to set the pi-hole as the main DNS server with some outside network server like Cloudflare DNSSEC or something that you want. then set your /ip DNS server to your pi-hole
then you can configure your DHCP DNS server as a pi-hole address or even your own MT address if you set it to allow remote DNS... to yes.
the difference is the log that you will see in the pi-hole if you set your DHCP directly to pi-hole then you can see in the log what src address requested that DNS but if you set your MT as a DNS for DHCP then all the requests to pi-hole will come from the MT src address.

Who is online

Users browsing this forum: Builithe85 and 53 guests