OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: rasitha on April 20, 2024, 07:19:40 PM

Title: SOLVED. firewall block rule help
Post by: rasitha on April 20, 2024, 07:19:40 PM
my dns server is 192.168.151.6
i want to block any other dns request
Title: Re: firewall block rule help
Post by: Saarbremer on April 21, 2024, 02:08:09 PM
Alias:
192.168.151.6 = DNS_SERVER

Floating rule:
Source: *, Destination: !DNS_SERVER, Protocol: TCP/UDP, Dest. Port: 53, block, Logging on
-> Check log if successful
-> Logging off

Solution provided as is. No liability for data loss, system outage or any other unwanted situations.

Title: Re: firewall block rule help
Post by: chemlud on April 21, 2024, 04:45:04 PM
hmmm, how about port 853? Not to mention DOH... ;-)

Your Google devices might go crazy.
Title: Re: firewall block rule help
Post by: Saarbremer on April 22, 2024, 08:46:40 AM
He was talking 'bout DNS ☝️
Title: Re: firewall block rule help
Post by: rasitha on April 23, 2024, 12:24:47 PM
Quote from: Saarbremer on April 21, 2024, 02:08:09 PM
Alias:
192.168.151.6 = DNS_SERVER

Floating rule:
Source: *, Destination: !DNS_SERVER, Protocol: TCP/UDP, Dest. Port: 53, block, Logging on
-> Check log if successful
-> Logging off

Solution provided as is. No liability for data loss, system outage or any other unwanted situations.


Tx