- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- SAMBA and IPTABLES...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2001 02:54 PM
12-03-2001 02:54 PM
/etc/services:
...
...
netbios-ns 137/tcp
netbios-ns 137/udp
netbios-dgm 138/tcp
netbios-dgm 138/udp
netbios-ssn 139/tcp
netbios-ssn 139/udp
...
...
Any clue?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2001 03:06 PM
12-03-2001 03:06 PM
Re: SAMBA and IPTABLES...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2001 05:00 PM
12-03-2001 05:00 PM
Re: SAMBA and IPTABLES...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2001 08:34 PM
12-03-2001 08:34 PM
Re: SAMBA and IPTABLES...
If you use iptables, you can use the 'state' modules to track the connection status for you. In that case, allow:
- any port -> udp or tcp 137, 138 and 139, connect status NEW,ESTABLISHED,RELATED
Hope it helps,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-05-2001 01:51 PM
12-05-2001 01:51 PM
Re: SAMBA and IPTABLES...
Leandro.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-06-2001 07:39 AM
12-06-2001 07:39 AM
Re: SAMBA and IPTABLES...
Looks like you've got everything you need to let netbios traffic into your samba (linux) host.
I just wanted to mention that I would be very cautious with this type of configuration if this server is directly connected to the internet as the security aspects of the SMB protocol are a bit weak to say the least. I assume that this machine is behind some other type of firewall, be it hardware or software, if this is the case, then I wouldn't worry as much, however if you're allowing incoming smb connections from the internet, be sure to monitor it very closely.
-Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-06-2001 11:57 AM
12-06-2001 11:57 AM
Re: SAMBA and IPTABLES...
The server that I use SAMBA has two interfaces for for Internal and another for a external network (Internet). I will allow incoming connection just for the internal interface, Any problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-06-2001 06:33 PM
12-06-2001 06:33 PM
SolutionWhen I was getting my SAMBA setup going a few months back -- I found the book from O'Reilly very helpful, especially the troubleshooting section:
http://www.oreilly.com/catalog/samba/chapter/book/ch09_01.html
I expect that you have already tried most of these steps already, but are still having trouble.
Since you are limiting your smb connections to your internal network -- in order to ensure that the smb distribution itself is not to blame, try allowing all services on the internal network (temporarily) and then step through shutting down services that are not needed/desired. This'll at least help to identify whether the problems you are facing are being generated by your IPTABLES rules originate from elsewhere.
hth
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP