I have 2 PC (the second is a clone of first) running centos 7.
From one is not possible to send mail.
I did some tests and the result is this:
[root#PC2]# telnet smtps.aruba.it 465
Trying 62.149.156.218...
Connected to smtps.aruba.it.
Escape character is '^]'.
[root#PC1]# telnet smtps.aruba.it 465
Trying 62.149.128.218...
telnet: connect to address 62.149.128.218: No route to host
Trying 62.149.156.218...
telnet: connect to address 62.149.156.218: No route to host
PC1 returns "no route to host" but on the (global network) firewall I log packets that exit from PC1 to host.
All network configurations are the same in the subnet. What else can be the problem?
And more, if I try to connect to port 25 (that i know is NOT allowed) I receive allways double message:
[root#PC1]# telnet smtps.aruba.it 25
Trying 62.149.156.218...
telnet: connect to address 62.149.156.218: Connection refused
Trying 62.149.128.218...
telnet: connect to address 62.149.128.218: No route to host
while on other pc I have the right behavior
[root#PC2]# telnet smtps.aruba.it 25
Trying 62.149.156.218...
telnet: connect to address 62.149.156.218: Connection refused
Trying 62.149.128.218...
telnet: connect to address 62.149.128.218: Connection refused
This may be due to firewall settings.
You can configure it or completely disable (Please, don't do that)
Here you can find the setup manual
Related
I am curious why I can connect to the localhost server by specifying the loopback IP address (127.0.0.1) but not using the name 'localhost', when no internet connection is present in mongoDB compass? When I try to connect with the domain name I get the following error:
getaddrinfo ENOTFOUND localhost localhost:27017
I'm guessing the domain name lookup process is requiring the internet in order to convert localhost to 127.0.0.1. Not sure if I'm on the right track or not.
When you are connected to the internet the DNS service of your device handles the resolution of localhost. When you are not connected to the device the only way for your machine to know about the name localhost is the /etc/hosts file (or C:\Windows\System32\drivers\etc\hosts if you're running windows, latest versions of windows although might resolve localhost without using the hosts file).
I've a Centos 6.5 - Apache server. This server is in a private LAN (it has a private IP 10.x.x.x) and is linked to a domain name. If I test port 443 from webtools with the domain name, it seems that it's blocked, but I want to understand if it's blocked from a firewall outside the server or if it depends from the server configuration. Is there anyway I can check if the port is open for the server?
iptables firewall is empty.
You could simply try to telnet from the server to itself.
So if you'd want to check if port 443 is responding, run:
telnet localhost 443
if the response is
telnet: Unable to connect to remote host: Connection refused
then there's probably nothing listening on that port.
I try to copy file from remote server to my local machin but it gives following error
ssh: connect to host 103.241.144.137 port 22: Connection refused.
command : scp root#111.111.111:/home/msecondo/public_html/jsp/afterLogin/sachin/PHR/ /localpth/.
"Connection refused" means that there was no process accepting connections at the IP address and port that your client tried to connect to. In this case, it probably means that there is no SSH server running at 103.241.144.137 port 22. Alternately, if the SSH server is running, it may not be listening on the IP address or port that you tried to connect to.
StackOverflow isn't the right site for troubleshooting SSH server configuration. If you have administrator privileges on the remote server, then you should look into how the SSH server is configured and whether it's running. If you're not an administrator on the remote server, you should report this to the administrators so that it can be investigated.
I am currently troubleshooting an email problem with my server (IIS 7,5 , Windows server 2008 R2). When I run the "Telnet" command, I get the "Connecting to 127.0.0.1... Could not open the connection to the host, on port 25".
I've been running the commands:
"telnet 127.0.0.1 25"
"telnet 127.0.0.1 26"
"telnet localhost 25"
"telnet localhost 26"
All of these return the same message. If I run at port 80, I get a response.
I tried to turn off my firewall, which made no changes to the behavior (still could not open...).
Is this the usual behavior? Should sending emails still work, or are there something wrong?
Port 25 is for an MTA (message transfer agent) which passes email along as it goes from sender to recipient. If you don't have one installed and running locally then there is nothing listening on that local port. That sounds like the case.
Sending email is an outgoing connection (using some random local port) that can be done by connecting to an MTA on any machine accessible via the network; it doesn't have to use one on the local machine.
Well guys, I'm trying to get that MongoDB feature working for hours:
http://www.mongodb.org/display/DOCS/Http+Interface
I start mongod with external configuration file on Mac OS X platform. Almost all the settings in the config file is default. I've turned of the authentication and make sure http interface is on :
nohttpinterface = false
MongoDB starts successfully and does it's job. And just to make sure that it listens on port 27017, I do following:
(web)Roy-MacBook:/ roy$ curl localhost:27017
You are trying to access MongoDB on the native driver port. For http diagnostic access, add 1000 to the port number
which is fine. And I try to check the same thing for the port 28017:
(web)Roy-MacBook:/ roy$ curl localhost:28017
curl: (7) couldn't connect to host
Even though with telnet:
(web)Roy-MacBook:/ roy$ telnet localhost 28017
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying fe80::1...
telnet: connect to address fe80::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
I don't know if I have to tell that I've tried with a browser. I don't run any custom web or any other server that blocks the port 28017. I could only find one bug here:
https://jira.mongodb.org/browse/SERVER-2917
but it is related with --auth command that I don't use nor I have any user show out of "db.system.users.find()".
One strange thing is when I turn on mms-name, mms-token or mms-interval in configuration as shown as their config reference here (www.mongodb.org/display/DOCS/File+Based+Configuration), mongod gives following error:
error command line: unknown option mms-name
use --help for help
I though that might be the relative problem.. Any opinion will be appreciated, thanks.
This looks like a bug in the config parser. Take this line OUT of your config file:
nohttpinterface = false
When I added that line it turned the HTTP interface off on my Mac even though it's set to false.