Skip to content

Instantly share code, notes, and snippets.

@ajin
Last active January 29, 2019 02:44
Show Gist options
  • Save ajin/38647319ae74d3f18b88127b11843d7f to your computer and use it in GitHub Desktop.
Save ajin/38647319ae74d3f18b88127b11843d7f to your computer and use it in GitHub Desktop.
yum install syslog-ng
systemctl enable syslog-ng
systemctl start syslog-ng
yum erase rsyslog
systemctl restart syslog-ng
netstat -antup | grep 514
firewall-cmd --permanent --zone=public --add-port=514/tcp
firewall-cmd --permanent --zone=public --add-port=514/udp
firewall-cmd --reload
# UBNT USG
## enable dns logging
configure
set service dns forwarding options 'log-queries'
set service dns forwarding options log-queries=extra
# delete service dns forwarding options log-queries=extra
commit
save
sudo service dnsmasq restart
https://nmaggioni.xyz/2018/02/17/Logging-DNS-queries-on-your-EdgeRouter/
https://community.ubnt.com/t5/EdgeRouter/Log-DNS-query-to-syslog/td-p/1215385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment