What's new

Enabled firewall but DNS still is filtered

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Turgut Kalfaoglu

Regular Contributor
Hi. I added an exception rule to the firewall, to allow BOTH TCP and UDP to port 53, from/to all, because I run a DNS server. I enabled 'log dropped packages' and disabled DOS protection. Despite these, I get entries in the logs saying that the destination port 53 has been dropped.

May 26 14:32:32 ns2 kern.warn kernel: DROP IN=eth0 OUT= MAC=a8:5e:45:97:75:c8:08:62:66:d0:bf:c8:08:00 SRC=46.229.168.129 DST=192.168.2.2 LEN=74 TOS=0x00 PREC=0x00 TTL=52 ID=45303 PROTO=UDP SPT=18972 DPT=53 LEN=54
May 26 14:32:32 ns2 kern.warn kernel: DROP IN=eth0 OUT= MAC=a8:5e:45:97:75:c8:08:62:66:d0:bf:c8:08:00 SRC=46.229.168.129 DST=192.168.2.2 LEN=74 TOS=0x00 PREC=0x00 TTL=51 ID=45339 PROTO=UDP SPT=57318 DPT=53 LEN=54​

What do you suggest I do?

Many thanks, -t
 
Btw, I checked the iptables -L -n , and indeed when I insert an exception to the server list, it is NOT reflected to the iptables.

So I just manually added a few entries into /jfss/scripts/services-start like:

/usr/sbin/iptables -I INPUT -p tcp --destination-port 53 -j ACCEPT
/usr/sbin/iptables -I INPUT -p udp --destination-port 53 -j ACCEPT​

But this must be a bug since the GUI changes are not reflected here.
 
Btw, I checked the iptables -L -n , and indeed when I insert an exception to the server list, it is NOT reflected to the iptables.
It won't show up with that command because Virtual Server / Port Forwarding creates entries in the nat table not the filter table.

Where is the DNS server running, on the router or on a server on the LAN?
 
It won't show up with that command because Virtual Server / Port Forwarding creates entries in the nat table not the filter table.

Where is the DNS server running, on the router or on a server on the LAN?

Many thanks for the feedback.. DNS bind is running on the router actually.
-t
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top