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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2009, 09:39 PM   #1
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Rep: Reputation: 15
Guarddog Dropping Samba Connections


I could use some help from an iptables guru on this.

I have a home network with 2 desktops and a laptop. One desktop is running Slackware 12.2 and I have a couple of shares and printer set up with Samba. The other desktop is running XP and the laptop is running Slackware 12.1. I have Guarddog set up on both Slack boxes. The Slack 12.2 desktop is connected via eth0 to a Linksys wireless router. I have Guarddog on both Slack boxes set up with a subnet of 192.168.1.0/24 and have permitted Samba, ftp, netbios, and printer spooling between the "Local" and "Subnet" zones on Guarddog. File sharing and printing work fine for awhile. After a period of time (an hour or more; maybe less), file sharing and printing via Samba cease to work. I get time out errors on the clients. Bringing up Guarddog on both Slack boxes and clicking on "Apply" (without changing the firewall config) fixes it for another short period of time. I'm going to guess that it works temporarily because iptables is restarted each time I re-apply the firewall. I'm also going to guess I need to hand modify 1 or more rules in the /etc/rc.firewall script. Any ideas on what exactly I need to look for and/or rewrite ?

Thanks
 
Old 02-02-2009, 10:57 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Right after you start the firewall do
Code:
iptables -L -n >/tmp/start.txt
Then once you run into problems

Code:
iptables -L -n >/tmp/problem.txt
Then do a diff of the two files and see what rules are being modified by guarddog.
 
Old 02-03-2009, 09:00 AM   #3
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Here it is. The "f2to1" chain allows traffic from my subnet to local. I'm wondering if adding a ",Established" to the f2to1 netbios, smb, and ftp chain entries in rc.firewall might solve the problem ?
Attached Files
File Type: txt diff4.txt (1.8 KB, 13 views)
 
Old 02-05-2009, 09:06 AM   #4
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Folks, I gave some misinfo in my 1st post. The problem is only associated with the laptop and not my Slack desktop. And, reapplying the Guarddog firewall on the laptop fixes everything until next boot.
Now, it occurs to me that maybe whats going on here is that iptables is started via rc.firewall before my wlan0 wireless interface is started via wicd. I wonder if starting wlan0 at boot via rc.inet1 would solve the problem ? The problem with that is I've never been able to get it to work. I can configure the interface with ifconfig, iwconfig, and dhcpcd; but, when I set it up in rc.inet1.conf, it has some kind of problem with getting an assigned address. I get some messages about "polling for dhcp server" and "no carrier detected on wlan0". Setting it up in rc.inet1.conf with a static ip address makes no difference. And I've got wireless security (WPA, WEP) disabled on the router.
 
  


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
linux router keeps dropping connections. exodist Linux - Networking 1 04-24-2008 11:29 PM
SuSE 9.3 Firewall Dropping Connections mephitic Linux - Networking 4 10-02-2005 03:52 PM
FTP Dropping connections Seventh Linux - Software 1 06-05-2005 02:11 PM
Linux Servers dropping connections Charles Daniel Linux - Security 7 10-25-2004 08:10 AM
dhcp dropping connections jmmirabal Linux - Newbie 1 03-24-2003 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:06 PM.

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