Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I upgraded to RH9 a few months back and have had a lot of trouble getting my dialup connection up and running again, I've managed to solve all of the problems except one which is related to my firewall. I can't access/ping any websites by name, only by numerical address, which sounds like a DNS problem. If I either turn off my firewall completely, or issue an "ipchains --flush" as root, then everything works fine.
disabling my firewall to get on the net sounds like asking for trouble to me. There must be a way to allow DNS packets through but keep the rest of the stuff out. I've tried bringing the firewall security level down to medium and allowing incoming DHCP, but that didn't help. Does anyone know how I can fix this?
I would greatly appreciate any suggestions you might have. Many thanks in advance.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
ipchains is deprecated. If you're using a 2.4.x kernel you want to use iptables. iptables should be doing stateful inspection so you shouldn't have to modify the firewall at all. In fact, your problem is pretty bizarre because if you can get all traffic except DNS, there shouldn't be any reason why DNS specifically is blocked.
In any case, you need to allow outbound connections to 53/TCP & UDP. If your firewall is not behaving statefully (really weird) then you need to allow return responses from 53/TCP & UDP to ports (TCP and UDP) over 1023. Again, if you have a stateful firewall, you won't need to do any of this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.