On Mon, 2003-09-15 at 20:32, Ian L wrote: > Hey all, > > I'm trying to set up samba to work with a win2k3 server and a redhat 8 > server. I've got samba 2.x installed. It seems to be working, although i > havent finished setting up all the user permissions. When i turn iptables > off, i get a password prompt in windows when i click on the server. > > when i turn ip tables on, it just sits for 20 seconds and then tells me i > dont have permission to access this network resource.
Hi Ian. Hopefully I can offer a suggestion that will not only solve your problem, but show *you* how to do it. You know, the old "give a man a fish" theory. ;-) Install tcpdump, if you don't have it already. Determine what traffic (SSH, HTTP, DNS, etc.) you might see across the relevant network interface (eth1?) that Samba traffic should traverse. Now, run the following (with iptables enabled): "tcpdump -ni eth1 not port 22 and not port 80 and not port 53" (etc, etc.) Include a "and not port XX" for each known service you *don't* want to see. This should (hopefully) reveal which ports/protocols that Samba is using. Those will be the ones you'll want to add to your iptables ruleset to allow SMB traffic through. There's always a chance that you'll catch more traffic than you expect. It's a case of trial and error. You're generally looking for TCP/UDP traffic between ports 135-139 and possibly 445. Hope this helps! -- Jason Dixon, RHCE DixonGroup Consulting http://www.dixongroup.net -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list