Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have curl installed on Linux VM1: 129.146.22.160. I have nginx installed on linux VM2: 129.146.34.164. I am able to SSH from VM1 to VM2. I am able to ping from VM1 to VM2. I have CURL installed on VM1. When I try "curl -verbose 129.146.34.164", I get connection timeout. Below is the console output:
_____
[opc@vm04 ansible]$ curl -verbose 129.146.34.164
* About to connect() to 129.146.34.164 port 80 (#0)
* Trying 129.146.34.164...
* Connection timed out
* Failed connect to 129.146.34.164:80; Connection timed out
* Closing connection 0
curl: (7) Failed connect to 129.146.34.164:80; Connection timed out
[opc@vm04 ansible]$
_____
I am expecting to see the nginx welcome home page when I run curl from VM1.
I see the nginx homepage when I run "curl localhost" on VM2.
Starting Nmap 6.40 ( http://nmap.org ) at 2017-04-28 20:16 GMT
Nmap scan report for 129.146.34.164
Host is up (0.00034s latency).
PORT STATE SERVICE
80/tcp filtered http
Nmap done: 1 IP address (1 host up) scanned in 0.33 seconds
How can I open port 80 on VM2, so that VM1 can see it?
This guy here - http://stackoverflow.com/questions/3...nd-curl-doesnt - resolved a similar problem by disabling selinux and iptable_filter. It seems a bit over the top, but you could do that and then work backwards to see what is actually preventing the communication.
Given that you're using Red Hat, I assume that you have a licence with them - have you contacted them about this problem?
selinux seems to be related to security of Linux. Is there any other impact if I turn this off? though this is a test instance, I am trying to be cautious, please suggest.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.