LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-23-2004, 03:15 PM   #1
hacinn
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Rep: Reputation: 0
Close ports 137 and 138 samba server?


Hi,

I have a linux box with samba server and two network interface. One
interface for internet and another for local network. I used the samba
commands:
bind interface only true
interfaces 192.168.10.1/24

And the samba stop to listen on internet interface on port 139, but it
continue listening on ports 137 and 138 on both interface. How to stop
listen on this ports on internet interface only?
I´m using iptables to filter this ports, but i´d like to close this
ports on interface.

Thanks in advance!
 
Old 06-23-2004, 04:49 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
afaik you can just specify the interface instead of the subnet, try "interface eth0" etc...
 
Old 06-24-2004, 06:58 AM   #3
hacinn
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks by help, but i tried to use interface = eth1, but don´t resolve the problem. The linux continue with ports 137 (udp) and 138 (udp) open on interface eth0.

Thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
possible to run samba on ports other than 137-139? Apostasy Linux - Software 0 12-21-2004 03:14 PM
Firestarter - lot's of activity on ports 138, 137 watchitman Linux - Security 1 08-13-2004 08:38 PM
Why does Samba send malformed UDP packets to 137 and 138? The Dartman Linux - Networking 2 04-12-2004 03:28 PM
Can't firewall udp ports 137 and 138 dbaker Linux - Security 4 06-29-2003 03:41 PM
Can/should I close NetBIOS ports 137, 138, 139 ? Q*Bert Linux - Security 24 03-28-2003 04:50 AM

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

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