Enabling UFW makes my VMs unable to resolve DNS

kaleid

New Member
Joined
Oct 3, 2023
Messages
3
Reaction score
0
Credits
27
Hi all,
I have an Ubuntu 22.04 server, running few VMs in kvm. I noticed that when I turn my firewall on (on my server) I can't update any of the machines. I checked everything I could think of, on the host and on the guests, it took me days before I turned the firewall off to see what would happen. All of a sudden I was able to ping a domain, and able to update the VM. I enabled the firewall, and DNS was blocked yet again.
What do I need to do to have both, the UFW enabled on the host, and to be able to resolve on the hosts. I already tried allowing port 53 on the server, didn't work.
Any help appreciated. Thanks
 


OP
K

kaleid

New Member
Joined
Oct 3, 2023
Messages
3
Reaction score
0
Credits
27
Just to add, with the UFW enabled I am able to ping an IP, but unable to ping any domain.
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
2,111
Reaction score
1,725
Credits
15,271
It looks like this is a couple of weeks old. Did you allow both TCP and UDP on port 53?
 
OP
K

kaleid

New Member
Joined
Oct 3, 2023
Messages
3
Reaction score
0
Credits
27
Thanks for your reply. Yes, both were opened. I turned the firewall off for now, otherwise my VMs can't update.
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
2,111
Reaction score
1,725
Credits
15,271
If you enable the firewall, what is the output of...

sudo ufw status
 

Staff online

Members online


Top