Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Able to access through localhost:22 |
|
Author |
|
mohamedilyas
Joined: 03 Apr 2024 Posts: 8 Location: India
|
Posted: Tue 08 Oct '24 17:28 Post subject: Able to access through localhost:22 |
|
|
Hi Team,
We have received a new VA where the Apache url is able to access using locahost:22 port from any where by using below command .Kindly help to block the localhost and 22 port in apache level.
echo -e 'GET http://127.0.0.1:22/? HTTP/1.1\r\nHost: myserver.com\r\nUser-Agent: Mozilla\r\n\r\n' | openssl s_client -
connect myserver.com:443 -quiet 2> /dev/null
Please help me with the suggestion. |
|
Back to top |
|
mohamedilyas
Joined: 03 Apr 2024 Posts: 8 Location: India
|
Posted: Wed 09 Oct '24 7:59 Post subject: Re: Able to access through localhost:22 |
|
|
And we are able to access through all other protocols such as sftp.
Kindly help me how to block the protocols in apache. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7361 Location: Germany, Next to Hamburg
|
Posted: Wed 09 Oct '24 10:28 Post subject: |
|
|
Hello.
This is not a problem with Apache itself but with your SSH server. In your example, you see port 443 from the Apache server.
Make sure the Listen parameter is set only to 433 and 80. |
|
Back to top |
|
|
|
|
|
|