0

I am trying to block all incoming connection with IPTABLES and selectively allow ports and services. That is working fine, but when I do that, I can not perform outgoing DNS queries correctly. I have tried to allow incoming port 53 TCP and UDP for DNS but that didn't work either. Oh and all outgoing traffic is allowed.

This is the output of iptables -L -n -V http://pastebin.com/qNGJQq7J

  • 1
    That's bad. And what is your current ruleset? – mailq Oct 20 '11 at 15:06
  • 1
    As mailq says, please do an iptables -L -n -v and paste the output into your question. – MadHatter Oct 20 '11 at 15:08
  • This is what I get when I run that command: pastebin.com/qNGJQq7J – dennis linuz Oct 20 '11 at 18:00
  • 1
    All but one of your rules allow packets to get thru your firewall. The one that blocks is just to block all from one specific host. The DNS problem must be somewhere else. – ott-- Oct 20 '11 at 19:38
  • @ott--: You should make that an answer. – Iain Oct 23 '11 at 20:39
0

All but one of your rules allow packets to get thru your firewall. The one that blocks is just to block all from one specific host. The DNS problem must be somewhere else.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.