Koozali.org: home of the SME Server

Can not access Server Manager (maybe compromised?)

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« on: November 16, 2004, 01:22:52 AM »
I can not access the server manager from Internet Explorer, or the console.
===================================
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /server-manager.

Reason: Could not connect to remote machine: Connection refused
===================================
This is all on a server that has worked great for 2 years.
Any tips on what to start with?

jsk

Can not access Server Manager (maybe compromised?)
« Reply #1 on: November 16, 2004, 08:39:24 AM »
Try to reboot your server.

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #2 on: November 16, 2004, 02:36:03 PM »
Thanks,
That was the first thing we tried.
No success.
Dan

cc_skavenger

Can not access Server Manager (maybe compromised?)
« Reply #3 on: November 16, 2004, 03:44:10 PM »
what version of sme / e-smith?

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #4 on: November 16, 2004, 07:56:26 PM »
5.6 all updates.
I know, upgrade to 6.x.
But it has worked perfect for the last 2years

RavenIV

Can not access Server Manager (maybe compromised?)
« Reply #5 on: November 18, 2004, 03:35:28 AM »
can you ping your SME?
what about ssh?
does the httpd (apache) run?

check this and tell the results.

cheers

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #6 on: November 18, 2004, 05:08:05 AM »
can you ping your SME? YES, internally and externally.
what about ssh? Yes
does the httpd (apache) run? Yes,
Like I said all is working I just can not get in on the server-manager as per theerror listed in initial post.
Dan

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #7 on: November 19, 2004, 03:41:37 AM »
When I use console to access the server manager and enter the password it just goes immediately back to the console.
I exit the console, and scroll back and see the following:

[root@nebula7653 root]# su admin
Looking up  'localhost' first

Looking up localhost first
Looking up localhost:980
localhost:980
Making HTTP connection to localhost:980
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost:980/common/noframes
[root@nebula7653 root]#

Offline marsa_matruh

  • *****
  • 250
  • +0/-0
Can not access Server Manager (maybe compromised?)
« Reply #8 on: November 19, 2004, 10:05:32 AM »
Are you sure your hard disk is not full?

Try in console :
df -h

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #9 on: November 19, 2004, 05:04:35 PM »
Lots of room left.

[root@nebula7653 root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6              36G  7.4G   26G  22% /
/dev/hda1              15M  2.6M   11M  18% /boot
[root@nebula7653 root]#

guest22

Can not access Server Manager (maybe compromised?)
« Reply #10 on: November 19, 2004, 05:37:05 PM »
Any chance you updated/upgraded samba ?

RequestedDeletion

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #11 on: November 19, 2004, 06:04:59 PM »
I have changed nothing.
I have installed and updated RKHUNTER, no issues, full scan etc no issues.
Dan

Offline smeghead

  • *
  • 563
  • +0/-0
Can not access Server Manager (maybe compromised?)
« Reply #12 on: November 19, 2004, 06:24:44 PM »
.. post a copy of the contents of your squid.conf file as I have seen similar beaviour when squid fails to load or freezes.

Also try running:

service squid status

and post the response.
..................

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #13 on: November 19, 2004, 06:34:19 PM »
squid.conf
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localsrc src 127.0.0.1 192.168.55.0/255.255.255.0
acl localdst dst 127.0.0.1 192.168.55.0/255.255.255.0
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535 980
acl CONNECT method CONNECT
acl webdav method PROPFIND TRACE PURGE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK

#-----------------------------------
# Force Direct Connection for Domains
# ACL Statements
#-----------------------------------

append_domain .willcraft.com
cache_mgr admin@willcraft.com
ftp_user nobody@willcraft.com
http_access allow manager localsrc
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localsrc
http_access deny all

httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
icp_access allow all
miss_access allow all

store_avg_object_size 3 KB
always_direct allow webdav

#-----------------------------------
# Force Direct Connection for Domains
# Always Direct Statements
#-----------------------------------
always_direct allow all_direct

always_direct allow all

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
service squid status
« Reply #14 on: November 19, 2004, 06:35:28 PM »
[root@nebula7653 squid]# service squid status
squid (pid 5038 5035) is running...
2004/11/19 10:36:51| squid.conf line 49: always_direct allow all_direct
2004/11/19 10:36:51| aclParseAccessLine: ACL name 'all_direct' not found.
2004/11/19 10:36:51| squid.conf line 49: always_direct allow all_direct
2004/11/19 10:36:51| aclParseAccessLine: Access line contains no ACL's, skipping
[root@nebula7653 squid]#

Offline smeghead

  • *
  • 563
  • +0/-0
Can not access Server Manager (maybe compromised?)
« Reply #15 on: November 19, 2004, 06:57:18 PM »
Hmm, this is mine (from V6.0 heavily patched):

redirect_program /etc/squid/redirect/redir.pl
redirect_children 3
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localsrc src 127.0.0.1 192.168.0.0/255.255.255.0 172.16.17.0/255.255.255.0 192.168.0.0/255.255.255.0
acl localdst dst 127.0.0.1 192.168.0.0/255.255.255.0 172.16.17.0/255.255.255.0 192.168.0.0/255.255.255.0
acl SSL_ports port 443 563
acl Safe_ports port 21 70 80 81 119 210 443 563 980 1024-65535
acl CONNECT method CONNECT
acl webdav method PROPFIND TRACE PURGE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK
append_domain .?????.com.au
cache_mgr admin@?????.com.au
ftp_user nobody@?????.com.au
http_access allow manager localsrc
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localsrc
http_access deny all

httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
icp_access allow all
miss_access allow all

store_avg_object_size 3 KB

cache_mem 96 MB
cache_dir ufs /var/spool/squid 500 16 256
maximum_object_size 65535 KB
minimum_object_size 0 KB

always_direct allow webdav
always_direct allow all

The only significant diff I can see (except for those based on extra contribs I have running) is related to those always_direct errors you got from the squid status command.

Rem these commands out of the squid.conf file and restart squid as a test - if it works we can change the template to male it permanent.

HTH
..................

Offline gregswallow

  • *
  • 651
  • +1/-0
Can not access Server Manager (maybe compromised?)
« Reply #16 on: November 19, 2004, 07:01:57 PM »
try this:

Code: [Select]
service httpd-admin restart

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #17 on: November 19, 2004, 07:03:42 PM »
[root@nebula7653 squid]# service restart httpd-admin
restart: unrecognized service
[root@nebula7653 squid]#

Quote from: "gregswallow"
try this:

Code: [Select]
service restart httpd-admin

Offline gregswallow

  • *
  • 651
  • +1/-0
Can not access Server Manager (maybe compromised?)
« Reply #18 on: November 19, 2004, 07:04:27 PM »
:P  you are too fast  -I didn't have time to fix my typo - i edited my previous message

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #19 on: November 19, 2004, 07:05:30 PM »
Remmed them out restarted squid same problem.
Dan
The only significant diff I can see (except for those based on extra contribs I have running) is related to those always_direct errors you got from the squid status command.

Rem these commands out of the squid.conf file and restart squid as a test - if it works we can change the template to male it permanent.

HTH[/quote]

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #20 on: November 19, 2004, 07:09:24 PM »
[root@nebula7653 squid]# service httpd-admin restart
Shutting down http-admin:                                  [ FAILED ]
Starting httpd-admin:                                      [   OK   ]
[root@nebula7653 squid]#

Quote from: "gregswallow"
:P  you are too fast  -I didn't have time to fix my typo - i edited my previous message

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #21 on: November 19, 2004, 07:10:54 PM »
This is crazy,
I will reformat this rig tonight.
I was hoping to wait for the lycoris release.
Dan

Offline gregswallow

  • *
  • 651
  • +1/-0
Can not access Server Manager (maybe compromised?)
« Reply #22 on: November 19, 2004, 07:12:08 PM »
That didn't work?  When you try to access server-manager now what error does it give?

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #23 on: November 19, 2004, 07:23:09 PM »
From web browser I still get:
++++++++++++++++++++++++++++++
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /server-manager.

Reason: Could not connect to remote machine: Connection refused
++++++++++++++++++++++++++++++

From Console, log in as root / su admin to get server console, access server manager / say yes to text mode browser / enter administrator password  / quickly flashes and goes back to server console (yes I am entering the password right)
Exit from the server console, and scroll back and nothing there.
Dan

Quote from: "gregswallow"
That didn't work?  When you try to access server-manager now what error does it give?

Offline gregswallow

  • *
  • 651
  • +1/-0
Can not access Server Manager (maybe compromised?)
« Reply #24 on: November 19, 2004, 07:48:48 PM »
Hmmm...Well maybe search for "invalid response from an upstream server" on contribs.org - there are lots of forum posts like yours.  Restarting httpd-admin fixed the same problem (same error message at least - it happened for me after installing a SSL certificate) for me, but I guess yours is caused by something else.

If you can't find a cure, one last time try this maybe:
Code: [Select]
sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd restart
service httpd-admin restart

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #25 on: November 19, 2004, 07:51:57 PM »
It bombed on the first command,
I am in a  wreck here aren't I.
[root@nebula7653 errors]# sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
bash: sbin/e-smith/expand-template: No such file or directory
[root@nebula7653 errors]#

If you can't find a cure, one last time try this maybe:
Code: [Select]
sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd restart
service httpd-admin restart
[/quote]

Offline gregswallow

  • *
  • 651
  • +1/-0
Can not access Server Manager (maybe compromised?)
« Reply #26 on: November 19, 2004, 08:08:32 PM »
No, you are just a victim of my bad typos once again :-P  I missed a "/" before sbin

Code: [Select]
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd restart
service httpd-admin restart


And maybe this - can't hurt
Code: [Select]
/etc/rc.d/init.d/httpd-e-smith restart

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #27 on: November 19, 2004, 08:31:10 PM »
[root@nebula7653 root]# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
[root@nebula7653 root]# service httpd restart
Stopping httpd:                                            [   OK   ]
Starting httpd:                                            [   OK   ]
[root@nebula7653 root]# service httpd-admin restart
Shutting down http-admin:                                  [ FAILED ]
Starting httpd-admin:                                      [   OK   ]
[root@nebula7653 root]#

[root@nebula7653 root]# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
[root@nebula7653 root]# service httpd restart
Stopping httpd:                                            [   OK   ]
Starting httpd:                                            [   OK   ]
[root@nebula7653 root]# service httpd-admin restart
Shutting down http-admin:                                  [ FAILED ]
Starting httpd-admin:                                      [   OK   ]
[root@nebula7653 root]# clear
[root@nebula7653 root]# /etc/rc.d/init.d/httpd-e-smith restart
Shutting down http:                                        [   OK   ]
Starting httpd:                                            [   OK   ]
[root@nebula7653 root]#

Tried to log in again, same issues.

Offline gregswallow

  • *
  • 651
  • +1/-0
Can not access Server Manager (maybe compromised?)
« Reply #28 on: November 19, 2004, 09:36:54 PM »
Hmmm...it shouldn't keep saying "failed" shutting down httpd-admin.

Maybe /var/log/httpd/admin_error_log.??? will give a clue as to what's happening.

Or maybe try:
Code: [Select]
/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
...and then restart httpd-admin again

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Can not access Server Manager (maybe compromised?)
« Reply #29 on: November 19, 2004, 10:21:38 PM »
I thank you for your persistence.
I entered
/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf
and then service httpd-admin restart
And it returned:
# service httpd-admin restart
Shutting down http-admin: [ FAILED ]
Starting httpd-admin: [ OK ]
#
So I did httpd-admin restart again and this time it worked
# service httpd-admin restart
Shutting down http-admin: [ OK ]
Starting httpd-admin: [ OK ]
#

I rebooted and it is still working.
(oh lucky day!)

Here is one more for you, I have moved my entire /primary directory to an alternate spot on the server because my ISP said my server is sending out a phishing page.

I have scanned the crap out of these files etc, and there is nothing showing, he says ot is a redirect somewhere, I whave looked hi and low in the html / pho files and find nothing, again, rkhunter finds nothing.

Anyway, I sincerely thank you for all of your help, you saved me a lot of work!
Dan