LinuxQuestions.org
Review your favorite Linux distribution.
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 08-31-2012, 10:01 AM   #1
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 111

Rep: Reputation: 8
HTTPS on custom port


Hi!

I'm not sure if this should go in this subforum, but I think it is network related problem.

I connect to svn server with custom https port and it is working on almost any machine, but on one I get:

Code:
svn: OPTIONS of 'https://IP:5442/svn/apps/trunk': could not connect to server (https://IP:5442)
I thought that it is some svn related problem, but I couldn't connect to that address with browser either. I used links to check that.

Machine I'm having problem with is a server and another server with same version of CentOS, subverstion and neon (ra_neon is module for http and https scheme) doesn't have that problem. svn and links don't have a problem with that https link on it.

One of developers that worked here earlier sad that this problem was on second server as well, but sysadmin that was working at that time resolved the issue. Don't know what he did.

I checked firewall and it's properly set up. SELinux is off.

What else could be a problem? What else to check?

Any idea?
 
Old 08-31-2012, 10:33 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Can you ping the IP address? Traceroute to it? Try clearing arp cache?
 
Old 08-31-2012, 10:50 AM   #3
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 111

Original Poster
Rep: Reputation: 8
I can ping it, but traceroute don't work because of firewall on server.

Problematic address doesn't show up in "arp -n".
 
Old 08-31-2012, 10:54 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Is iptables enabled on this machine and correct?

Can you tcpdump from the destination machine to see if traffic is getting there while testing?

And,.. can you connect to it like this:

Code:
openssl s_client -connect IP:PORT
 
Old 08-31-2012, 11:12 AM   #5
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 111

Original Poster
Rep: Reputation: 8
Yes, iptables is on and correct.

I don't have access to the svn server machine, so I can't use tcpdump there.

openssl doesn't work.

I tried svn and openssl with strace.

This is part I think is relevant:

openssl
Code:
connect(3, {sa_family=AF_INET, sin_port=htons(5442), sin_addr=inet_addr("x.x.x.x")}, 16) = ? ERESTARTSYS (To be restarted
svn
Code:
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(5442), sin_addr=inet_addr("x.x.x.x")}, 16) = ? ERESTARTSYS (To be restarted)
--- SIGINT (Interrupt) @ 0 (0) ---
On other server that is working (svn):
Code:
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(5442), sin_addr=inet_addr("x.x.x.x")}, 16) = 0
open("/dev/urandom", O_RDONLY|O_NOCTTY|O_NONBLOCK) = 4
.
.
.
and so on. It continues further.
 
Old 08-31-2012, 11:33 AM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
For a double-check, if it is a safe non-production environment, I would temporarily disable iptables and test with openssl again.

Is there anything between these computers? Firewalls, VLAN settings, filtering?
 
Old 08-31-2012, 05:17 PM   #7
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 111

Original Poster
Rep: Reputation: 8
It is a production environment, so I would like to avoid turning firewall off, but this it the relevant part from iptables:
Code:
65016   39M ACCEPT     all  --  !lo    *       x.x.x.x         0.0.0.0/0           
59923   30M ACCEPT     all  --  *      !lo     0.0.0.0/0            x.x.x.x
x.x.x.x. being, of course, svn server.

svn server is accessible from other machines, so I don't think there is something on that side that is blocking connection and client side is dedicated server at some data center. Not likely that they are blocking something.

You can see from iptables that packets are coming that way.

Also, I see from strace that ssl certificate is checked.

There is no problem when I test openssl command on some other server with ssl on 443 port.
 
  


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
HTTP to HTTPS on the same port vzxen Linux - Server 15 03-25-2011 12:14 AM
Port on HTTPS Paris Heng Linux - Security 3 02-11-2009 11:56 AM
Howto do Secured ssh from port https or port80(standard) to ssh d listening port 22 ? Xeratul Linux - General 4 11-23-2006 06:09 AM
turn off http port 80, keep https port 443 lothario Linux - Networking 6 02-11-2005 04:06 AM

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

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