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
Solved

Blocking outbound DNS requests.

Posted on 2004-04-09
2
307 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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