LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-09-2002, 06:49 AM   #1
habo
LQ Newbie
 
Registered: Dec 2002
Distribution: RH 6.2, 7.0, 7.2, 8.0
Posts: 4

Rep: Reputation: 0
firewall + smb + iptables


I am trying to set up a firewall using iptables on RH 8.0.
I want to ACCEPT connections from WinXP using smb (and some other stuff) and REJECT everything else. If I do not REJECT anything the thing works a OK.
I think my only problem left is that I do not know what port to ACCEPT. I have read that nt 4.0 use 139 and nt 5.0 use 445. I have tried all and it does not work. I have tried ACCEPT -ing port 80 and it worked OK. What am I doing wrong?
 
Old 12-09-2002, 07:11 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
nmb uses ports 137 & 138 udp & 139 tcp.
You will also need dns 53...

Best bet is to LOG the packets coming in and out and see what is being sent and dropped and then make rules to suit...

Have a look at this tutorial for extra help.

The port allocations are in the file /etc/services
 
  


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
Iptables with iptables-firewall.conf arno's matt3333 Slackware 16 06-28-2007 07:20 AM
Uunable to get SMB service through firewall Hockeyfan SUSE / openSUSE 6 02-03-2005 02:38 AM
SMB blocked by iptables swmok Linux - Networking 0 01-06-2005 11:41 PM
(FC3) smb and the firewall yanik Fedora 10 12-09-2004 04:16 AM
SMB and firewall Anjo Linux - Networking 1 01-03-2003 06:22 PM

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

All times are GMT -5. The time now is 02:28 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