LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-03-2015, 10:15 PM   #1
anuN
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Rep: Reputation: Disabled
unable to load login page over public ip on internet


Hi..I have a page to load as https://218.251.240.118:8080/login ... but I am getting ssl connection error. Below are the configuration file details :

apache httpd.conf file (since the file was big I am posting only uncommented lines)

`
`ServerRoot "/usr/local/apache22-publisher"
Listen 80
User apache
Group apache
</IfModule>
</IfModule>
ServerAdmin you@example.com
ServerName pro-pcrawler101d:80
DocumentRoot "/usr/local/apache22-publisher/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>


<Directory "/data/publisher_files">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory>

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

Alias /icons/ "/data/icons/"

<Directory "/data/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ "/data/cgi-bin/"
<Directory "/data/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

Alias /error/ "/data/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
<Directory "/data/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory>

DirectoryIndex index.html index.html.var

ServerSignature Off
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
Alias /publisher /data/publisher_files
Alias /rcr /data/publisher_files
Include conf/extra/httpd-ssl.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
========================================================================

httpd-ssl.conf file (since the file was big I am posting only uncommented lines):

Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/usr/local/apache22-publisher/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLMutex "file:/usr/local/apache22-publisher/logs/ssl_mutex"
<VirtualHost _default_:443>
DocumentRoot "/data/publisher_files"

ServerName pro-pcrawler101zd:443
ServerAdmin you@example.com
ErrorLog "/usr/local/apache22-publisher/logs/error_log"
TransferLog "/usr/local/apache22-publisher/logs/access_log"

SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "/usr/local/apache22-publisher/conf/server.crt"
SSLCertificateKeyFile "/usr/local/apache22-publisher/conf/server.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/local/apache22-publisher/cgi-bin">
SSLOptions +StdEnvVars
</Directory>


BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "/usr/local/apache22-publisher/logs/ssl_request_log" \
"t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r" %b"

ProxyPass /rcr ajp://127.0.0.1:8009/rcr
ProxyPassReverse /rcr ajp://127.0.0.1:8009/rcr

</VirtualHost>

Tried restarting tomcat and httpd service, no changes.tomcat and httpd are running and listening on respective ports.Any help would be greatly appreciated.Thanks.

Last edited by anuN; 12-03-2015 at 10:22 PM.
 
Old 12-03-2015, 11:03 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Exactly what msgs are you getting?
Is this supposed to be a public facing system? If I ping the IP I get no response.
Which distro+version is this?
Which version of Apache?
Have you checked your firewall (eg iptables -nvL ) ?
 
Old 12-03-2015, 11:39 PM   #3
anuN
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi chrism01...
this is a public facing system whose public ip is what was mentioned and we are connecting to it through internal private ip.
The error I am getting is SSL connection error ERR_SSL_PROTOCOL_ERROR while connecting through chrome.

Even if I do a wget o internal ip on the server like https://10.40.5.32/login I get

[ ~]$ wget https://10.40.5.32:8080/login
--2015-12-04 14:34:33-- https://10.40.5.32:8080/login
Connecting to 10.40.5.32:8080... connected.
Unable to establish SSL connection.

[ ~]$ curl https://10.40.5.32:8080/login
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

[ ~]# iptables -nvL
Chain INPUT (policy ACCEPT 55 packets, 3390 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 47 packets, 4264 bytes)
pkts bytes target prot opt in out source destination


This is centos5.6,apache version 2.2,tomcat version 6

We are using fusion cloud servers.

Last edited by anuN; 12-03-2015 at 11:41 PM.
 
Old 12-03-2015, 11:53 PM   #4
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
can you do a nmap and netstat -ntpl of the IP address
 
Old 12-03-2015, 11:59 PM   #5
anuN
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi jheengut,

which port do you want to confirm is open? I can tell you.Really cant give you nmap details.

Hi jheengut,

which port do you want to confirm is open? I can tell you.Really cant give you nmap details.

Only information I can give you is this.This is the output of nmap from the server which I accessed through its internal ip and I am checking nmap on its public ip:

[ ~]# nmap -P0 218.251.240.118

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2015-12-04 14:57 JST
All 1680 scanned ports on ip-218-251-240-118.fvm.i1.fusioncom.jp (218.251.240.118) are filtered

Nmap finished: 1 IP address (1 host up) scanned in 337.177 seconds

Last edited by anuN; 12-04-2015 at 12:28 AM.
 
Old 12-04-2015, 12:23 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
What about my last qn

Have you checked your firewall (eg iptables -nvL ) ?
 
Old 12-04-2015, 12:29 AM   #7
anuN
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi Chrism01,

[ ~]# iptables -nvL
Chain INPUT (policy ACCEPT 55 packets, 3390 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 47 packets, 4264 bytes)
pkts bytes target prot opt in out source destination
 
Old 12-04-2015, 05:14 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
nmap 218.251.240.118 -p 80,8080,443

Starting Nmap 6.40 ( http://nmap.org ) at 2015-12-04 06:13 EST
Nmap scan report for ip-218-251-240-118.fvm.i1.fusioncom.jp (218.251.240.118)
Host is up.
PORT     STATE    SERVICE    VERSION
80/tcp   filtered http
443/tcp  filtered https
8080/tcp filtered http-proxy
is what I get from here.
 
Old 12-06-2015, 08:18 PM   #9
anuN
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi Habitual,

There are no iptables rules as I have posted earlier.How do I fix it from here?
 
Old 12-06-2015, 08:23 PM   #10
anuN
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
and if the ports are bocked why is it throwing a SSL connection error?

[##]# openssl verify /etc/pki/tls/cert.pem
/etc/pki/tls/cert.pem: /C=US/O=RSA Data Security, Inc./OU=Secure Server Certification Authority
error 10 at 0 depth lookup:certificate has expired
OK

Could this be the issue?

Last edited by anuN; 12-06-2015 at 10:17 PM.
 
Old 12-07-2015, 02:07 AM   #11
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I'd say the expired certificate is the problem.

If you connect with a browser (I see you used curl and wget), the browser will probably offer you the option to connect anyway.
 
Old 12-07-2015, 08:17 AM   #12
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 703

Rep: Reputation: 111Reputation: 111
In the apache configuration I see nothing that would listen to port 8080; which service is listening to port 8080 and where does it (re)direct to? Is it even an SSL thing? Trying to do https over http will throw an ssl error as well.
 
  


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
public wifi with login web page SaintDanBert Linux - General 6 03-27-2013 11:17 AM
[SOLVED] Unable to load Public Key (OpenSSL RSA, Debian Squeeze) gacanepa Linux - Newbie 1 11-29-2012 12:17 PM
kdm gui does not load beyond login page tizak Linux - Newbie 7 04-26-2009 03:05 PM
kdm gui does not load beyond login page tizak Debian 1 04-26-2009 05:25 AM
Unable to load any home page gellb Slackware 9 01-06-2009 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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