Solved

Blocking outbound DNS requests.

Posted on 2004-04-09
2
309 Views
Last Modified: 2010-03-18
Good Afternoon Everyone,

I was made aware of a new IRCD bot that has keylogging facilities. Have you guys seen this yet? Kinda scarey.

http://securecomputing.stanford.edu/alerts/multiple-unix-6apr2004.html

In anycase, I was wanting to block all dns requests to a certain domain/ip and was curious to know what would be
the best way to do this without breaking anything. I am running a local DNS server and want to block all outbound
traffic to a certain domain/ip that is requested by my client stations. I would also like to add logging capabilities as
well but am uncertain on how to accomplish this. Just exactly how do I do this in my firewall rule set?

Thanks
0
Comment
Question by:martinmorales
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 10794177
Using iptables you'd want to specifically deny FORWARD to that IP/network, something like:

iptables -N firewalled
iptables -A firewalled -j LOG --log-prefix Firewalled:
iptables -A firewalled -j drop

iptables -A FORWARD -p tcp -d 1.2.3.4 -j firewalled
iptables -A FORWARD -p udp -d 1.2.3.4 -j firewalled
0
 

Author Comment

by:martinmorales
ID: 10794986
This worked great! Thank you very much.
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question