LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-17-2012, 12:37 PM   #1
DutchGeek
Member
 
Registered: Sep 2006
Distribution: SuSE, Slackware
Posts: 55

Rep: Reputation: 10
trouble setting up firewall on slackware


Hi Guys,

I am having a strange problem with setting up fw-jay, an ncurses-based tool for setting up iptables. The thing is i had the exact same configuration before, but now on a new installation of the same system it is having issues.

The problem seems with DNS, when I do DHCP negotiation, i get some nameservers written in /etc/resolv.conf.

the problem is when i start fw-jay with my rules set, i can no longer
resolve hostnames, although i can connect to google.com using the IP address. I have tried very different combination of rules (DNS and DHCP connections are allowed).

I used wireshark, to see the hostname resolution process, and all nameservers in /etc/resolv.conf are contacted, and a successful reply is sent, but ping google.com doesn't resolve.

I also tried to see if the reason could be dropped DNS response packets, so i enabled logging of dropped packets in /var/log/messages, but nothing shows there...

What I did was i just overwrote /etc/resolv.conf with 8.8.8.8 (google's DNS) and it works while the firewall is running!

Maybe I am missing something somewhere?

Any ideas are appreciated,

Thanks
 
Old 09-17-2012, 01:50 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I suggest you start with running 'iptables-save > /tmp/ipables.rules' and then attach "/tmp/ipables.rules" as plain text file. Easier when one can look at the actual rule set IMHO.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Firewall trouble in CentOs Jan-Ivar Linux - Newbie 8 07-13-2011 11:07 AM
[SOLVED] Trouble setting up wlan in Slackware 13.0 Gault LaRue Slackware 13 11-27-2009 09:37 PM
setting the firewall one_ro SUSE / openSUSE 2 02-17-2005 05:10 PM
slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup win32sux Debian 1 03-06-2004 09:15 PM
Trouble with Linux Firewall Bubba Linux - Networking 2 03-22-2001 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration