LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-03-2014, 11:36 AM   #1
BrknShldr
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Wink Opening Port 3690 on Slackware 14.0 Firewall for `svnserve`


Hello, All!

I am having trouble getting port 3690 to open for connections to my Subversion server within my LAN. I've been searching around for a while on the internet and trying anything that I can find on this issue...so far, no dice.

When I run `nmap` against my server, I get the following output:

Code:
root@server:~# nmap localhost -p 3690

Starting Nmap 6.01 ( http://nmap.org ) at 2014-01-03 17:33 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00011s latency).
PORT     STATE  SERVICE
3690/tcp closed svn

Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds
root@server:~#
The output from `iptables --list` is:

Code:
root@server:~# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:svn
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:svn
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:3960

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
root@server:~#
The last entry in
Code:
Chain INPUT (policy ACCEPT)
is because of a post that I read that said when a fella set his IP tables to use port 3960, it solved his problem. He had stated that it must have been a typo in the book he was reading that said the port was 3690. So, I figured what the heck and tried that, but, obviously, it didn't work or I wouldn't be making this post.

Anyway, any help that you all can give me is greatly appreciated. I've searched LQ for posts on this issue and found one that I read and followed the advice in, but still cannot get my port opened. If you need any other info to assist me, please ask and I will provide it if I am able. Thank you very much in advance!

Sean

Last edited by BrknShldr; 01-03-2014 at 11:40 AM. Reason: Accidentally posted before I was done...
 
Old 01-03-2014, 04:28 PM   #2
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
Hi. According to the iptables information you provided, your firewall is wide open, meaning that anything should be able to connect to any port. If you wanted to be absolutely certain, you could disable iptables altogether. (Not sure how that is done in slack, but "/etc/init.d/iptables stop" does that in some distros.)

So, I think rather you want to investigate if your subversion server itself is configured correctly. Can you connect to it locally (i.e., while logged into the server itself?)
 
Old 01-04-2014, 03:18 AM   #3
BrknShldr
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
stateless,

Yes, I can connect locally on the server, however, not from my laptop where I'm doing the programming. I understand that IPTables says that port 3690 is wide open, but when I run `nmap` against it, it tells me that it's closed. I just thought of something while I was at work today that I'm going to try tomorrow and I'll post an update whether it works or not.
 
Old 01-04-2014, 03:51 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Is anything actually listening at port 3690? What does netstat -l -t show?
 
Old 01-04-2014, 09:19 AM   #5
BrknShldr
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
[solved]

OK...tried something that I thought of at work last night. I had been trying to have SVN run from inetd and I don't think this way is working for me because I just started SVN as a daemon process and now `nmap` shows:

Code:
root@server:~# svnserve -d
root@server:~# nmap localhost -p 3690

Starting Nmap 6.01 ( http://nmap.org ) at 2014-01-04 14:41 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000094s latency).
PORT     STATE SERVICE
3690/tcp open  svn

Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
root@server:~#
For Ser Olmy:

Output of `netstat -l -t` is as follows (now):

Code:
Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
root@server:~# netstat -l -t
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:5901                  *:*                     LISTEN     
tcp        0      0 *:sunrpc                *:*                     LISTEN     
tcp        0      0 *:auth                  *:*                     LISTEN     
tcp        0      0 *:6001                  *:*                     LISTEN     
tcp        0      0 *:ssh                   *:*                     LISTEN     
tcp        0      0 *:ipp                   *:*                     LISTEN     
tcp        0      0 *:smtp                  *:*                     LISTEN     
tcp        0      0 *:52733                 *:*                     LISTEN     
tcp        0      0 *:time                  *:*                     LISTEN     
tcp        0      0 *:5801                  *:*                     LISTEN     
tcp        0      0 *:svn                   *:*                     LISTEN     
tcp        0      0 *:submission            *:*                     LISTEN     
tcp6       0      0 [::]:http               [::]:*                  LISTEN     
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN     
tcp6       0      0 [::]:ipp                [::]:*                  LISTEN     
root@server:~#
As you can expect, prior to running `svnserve` as a daemon process on its own (instead of through inetd), this is the output:

Code:
root@server:~# netstat -l -t
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:5901                  *:*                     LISTEN     
tcp        0      0 *:sunrpc                *:*                     LISTEN     
tcp        0      0 *:auth                  *:*                     LISTEN     
tcp        0      0 *:6001                  *:*                     LISTEN     
tcp        0      0 *:ssh                   *:*                     LISTEN     
tcp        0      0 *:ipp                   *:*                     LISTEN     
tcp        0      0 *:smtp                  *:*                     LISTEN     
tcp        0      0 *:52733                 *:*                     LISTEN     
tcp        0      0 *:time                  *:*                     LISTEN     
tcp        0      0 *:5801                  *:*                     LISTEN     
tcp        0      0 *:submission            *:*                     LISTEN     
tcp6       0      0 [::]:http               [::]:*                  LISTEN     
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN     
tcp6       0      0 [::]:ipp                [::]:*                  LISTEN     
root@server:~#
Anyway, I'll just run svn as a daemon process so that the port will be open for my LAN. Thanks for input from each of you. I'm going to tag this thread as solved.
 
  


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
Ubuntu Server Firewall not opening port Wnt2bsleepin Linux - Networking 5 11-08-2013 01:55 AM
svnserve listening, but port not accessible from remote. menphix Linux - Server 4 07-17-2009 09:37 AM
Opening a port for a specific program using the Firewall (SUSE 9.3) Jongi SUSE / openSUSE 4 10-30-2005 04:18 AM
Opening a port on SuSe Firewall Hockeyfan Linux - Networking 2 10-29-2005 11:11 PM
opening a port in slackware berrance Linux - Software 4 11-20-2004 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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