Answer the question
In order to leave comments, you need to log in
Why does DNS stop working?
Good day. There is a server on debian. It has qemu-kvm deployed.
A CHR microcomputer is deployed there.
After applying these rules in IPTABLES, DNS stops working from Mikrotik (and everything behind it, from any machines on KVM).
The gateway and the network work, it also enters by IP, but DNS does not resolve ...
Mikrotik works as a VPN server, well, it also forwards several ports for all sorts of needs
Answer the question
In order to leave comments, you need to log in
Apparently there is no DNS on 192.168.122.2? Then after the script do the following commands:
iptables -I FORWARD -i enp2s0 -s 192.168.122.2,188.242.0.0/16 -p udp --dport 53 -j ACCEPT
iptables -I FORWARD -i enp2s0 -s 192.168.122.2,188.242.0.0/16 -p tcp --dport 53 -j ACCEPT
Lacks
sysctl -w net.ipv4.ip_forward=1
iptables -A FORWARD -p gre -j ACCEPT
iptables -A FORWARD -i enp2s0 -p tcp --dport 1723 -j ACCEPT
iptables -A FORWARD -p udp --dport 53 -j ACCEPT
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question