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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.