Difference between revisions of "Force users to use specified DNS server"

From MikroTik Wiki
Jump to: navigation, search
(Created page with 'This is just simple firewall rule which will force all Your useres behind RB to use DNS server which You will define. In '''/ip firewall filter nat''' add chain=dstnat action…')
 
Line 9: Line 9:
  
 
This rule will force all users with custom defined DNS server to use 192.168.88.1 as their DNS server, this rule will simply redirect all request sent to '''ANY-IP:53''' to '''192.168.88.1:53'''
 
This rule will force all users with custom defined DNS server to use 192.168.88.1 as their DNS server, this rule will simply redirect all request sent to '''ANY-IP:53''' to '''192.168.88.1:53'''
 +
 +
  
 
--[[User:Marko|Marko]] 12:29, 6 July 2010 (UTC)
 
--[[User:Marko|Marko]] 12:29, 6 July 2010 (UTC)
  
 
[[Category:Firewall]]
 
[[Category:Firewall]]

Revision as of 15:29, 6 July 2010

This is just simple firewall rule which will force all Your useres behind RB to use DNS server which You will define.


In /ip firewall filter nat

add chain=dstnat action=dst-nat to-addresses=192.168.88.1 to-ports=53 protocol=tcp dst-port=53 
add chain=dstnat action=dst-nat to-addresses=192.168.88.1 to-ports=53 protocol=udp dst-port=53 

This rule will force all users with custom defined DNS server to use 192.168.88.1 as their DNS server, this rule will simply redirect all request sent to ANY-IP:53 to 192.168.88.1:53


--Marko 12:29, 6 July 2010 (UTC)