SlackwareThis Forum is for the discussion of Slackware Linux.
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 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 ?
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.