Suse Linux 10.3 Port configuration.

How to open port (ie 139 ) for specific software when you don’t use the Suse firewall and when nmap show that the port is not open ?

LINUX-SRV:~ # nmap -p 1-65535 127.0.0.1

Starting Nmap 4.20 ( Insecure.Org - Nmap Free Security Scanner, Tools & Hacking resources ) at 2008-07-18 19:43 CEST
Interesting ports on localhost (127.0.0.1):
Not shown: 65528 closed ports
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
631/tcp open ipp
901/tcp open samba-swat

Nmap finished: 1 IP address (1 host up) scanned in 6.014 seconds
LINUX-SRV:~ #

Can you try to following procedure to configure sambe server.
http://lifestory-eng.blogspot.com/2008/07/how-to-build-up-samba-server-for-linux.html

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yast: Security and Users: Firewall: Allowed Services: add whatever you
need: Next: Finish.

Good luck.

jcdole wrote:
| How to open port (ie 139 ) for specific software when you don’t use the
| Suse firewall and when nmap show that the port is not open ?
|
| LINUX-SRV:~ # nmap -p 1-65535 127.0.0.1
|
| Starting Nmap 4.20 ( ‘Insecure.Org - Nmap Free Security Scanner, Tools
| & Hacking resources’ (http://insecure.org) ) at 2008-07-18 19:43 CEST
| Interesting ports on localhost (127.0.0.1):
| Not shown: 65528 closed ports
| PORT STATE SERVICE
| 22/tcp open ssh
| 23/tcp open telnet
| 25/tcp open smtp
| 80/tcp open http
| 111/tcp open rpcbind
| 631/tcp open ipp
| 901/tcp open samba-swat
|
| Nmap finished: 1 IP address (1 host up) scanned in 6.014 seconds
| LINUX-SRV:~ #
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIgOCd3s42bA80+9kRAmv2AJ9eRZQyv6rrNaetrGD3eIIza/O3RwCfRt7A
xsw68J01TXmXkkHFANhzziY=
=bRHi
-----END PGP SIGNATURE-----

Hi.

The problem is not configuring samba.

The problem is why port are closed, and how to open them. I never had this problem before with suse 10.0 on x86 processor.
This time I use suse 10.3 on X64 processor.

I don’t want to use the firewall.

I have install an other small linux on a new partition on the same PC ( with no firewall, no SAMBA, nothing but the minimum ).
I am unable to telnet on any port.

I think that the problem is to open port when not using the firewall. Isn’t it ?

I need help please .

LINUX-SRV:~ # echo “hello” | telnet localhost 110
Trying 127.0.0.1…
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1…
LINUX-SRV:~ #

LINUX-SRV:~ # echo “hello” | telnet localhost
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connection closed by foreign host.
LINUX-SRV:~ #

LINUX-SRV:~ # echo “hello” | telnet localhost 139
Trying 127.0.0.1…
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1…
LINUX-SRV:~ #

LINUX-SRV:~ # echo “hello” | telnet localhost
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connection closed by foreign host.
LINUX-SRV:~ #
Reply With Quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There are better ways to get lists of open ports:

netstat -anp | grep ‘LISTEN’

Good luck.

jcdole wrote:
| Hi.
|
| The problem is not configuring samba.
|
| The problem is why port are closed, and how to open them. I never had
| this problem before with suse 10.0 on x86 processor.
| This time I use suse 10.3 on X64 processor.
|
| I don’t want to use the firewall.
|
| I have install an other small linux on a new partition on the same PC (
| with no firewall, no SAMBA, nothing but the minimum ).
| I am unable to telnet on any port.
|
| I think that the problem is to open port when not using the firewall.
| Isn’t it ?
|
| I need help please .
|
|
|
| LINUX-SRV:~ # echo “hello” | telnet localhost 110
| Trying 127.0.0.1…
| telnet: connect to address 127.0.0.1: Connection refused
| Trying ::1…
| LINUX-SRV:~ #
|
|
| LINUX-SRV:~ # echo “hello” | telnet localhost
| Trying 127.0.0.1…
| Connected to localhost.
| Escape character is ‘^]’.
| Connection closed by foreign host.
| LINUX-SRV:~ #
|
| LINUX-SRV:~ # echo “hello” | telnet localhost 139
| Trying 127.0.0.1…
| telnet: connect to address 127.0.0.1: Connection refused
| Trying ::1…
| LINUX-SRV:~ #
|
|
| LINUX-SRV:~ # echo “hello” | telnet localhost
| Trying 127.0.0.1…
| Connected to localhost.
| Escape character is ‘^]’.
| Connection closed by foreign host.
| LINUX-SRV:~ #
| Reply With Quote
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIgQY33s42bA80+9kRAkjpAJ9LZwcAfByBGFnTwQobyJ9c7Gs1+QCeNlcU
xXeSyuhpUL4lx3kInxSHv4Y=
=w5rP
-----END PGP SIGNATURE-----

Looks like you aren’t even running samba since 139 doesn’t even show up on a scan of localhost. BTW, it’s pointless to scan localhost to see what ports other hosts can see since some services only run on localhost and the scan gives a false impression that they are public. You should scan your own IP address (private or public, just not an address from the 127.x.x.x range).

hi.

I want just to test samba.

Following samba documentation, it is said to test it by netstat and telnet.
Netstat does not show port 137, 138, 139, 445.
And telnet show an error on port 139

LINUX-SRV:~ # echo “Bonjour” | telnet localhost 139
Trying 127.0.0.1…
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1…
LINUX-SRV:~ #

This the reason for posting.
( For detail, see on this forum : “Samba - Unable to connect - port 139 is not open” )

Yes but you don’t have samba running, apparently. So nothing is listening on the port. Get the samba service running first.

Hi.

Have removed samba, ldap.

Have install last version of samba and ldap.

Have remove all 32 bits softwares ( running an X64 processor )

Samba is running, and ports are in action :

LINUX-SRV:~ # netstat -tdlupn |egrep ‘(137|138|139|445)’
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 3278/smbd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 3278/smbd
udp 0 0 192.168.169.200:137 0.0.0.0:* 2668/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 2668/nmbd
udp 0 0 192.168.169.200:138 0.0.0.0:* 2668/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 2668/nmbd
LINUX-SRV:~ #

LINUX-SRV:~ # echo “bonjour” | telnet localhost 139
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connection closed by foreign host.
LINUX-SRV:~ #

Thank you for your help.

This thread should be closed.