Minishift console is not displaying in browser
I have installed minishift on Azure VM. To access minishift console from browser, I have done port forwarding with following commands.
firewall-cmd --add-masquerade --permanent
firewall-cmd --permanent --add-forward-port=port=8443:proto=tcp:toport=8443:toaddr=192.168.42.90
firewall-cmd --reload
Azure VM machine address is :- 23.99.65.77
minishift VM address :- 192.168.42.90
If i am accessing it through curl command, I am getting response html page
curl -k https://23.99.65.77:8443/console/catalog
If I am accessing it from browser(Chrome), I am not getting minishift console and following error are coming
https://192.168.42.90:8443/oauth/authorize?client_id=openshift-web-console&response_type=code&state=eyJ0aGVuIjoiLyIsIm5vbmNlIjoiMTU2MDMzODcyMjUxNS0xODU5OTIzNjQyNDQ3OTczNjQ0MTExNzU0MDM4MDI2NzUxMjkyNDgxMTcxNzc2MTMxMzc5NDAwMzEwNDYwMTE2OTM1OTM5NzE5MTY5In0&redirect_uri=https%3A%2F%2F192.168.42.90%3A8443%2Fconsole%2Foauth
is unreachable. ERR_ADDRESS_UNREACHABLE
It seems some certificate issue with browser.
I exposed port 8443 from Azure portal. See below screen shot/enter image description here
Related
I have followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04 to setup my Django app on ec2 but it is not accessible. When I hit the url it says that site cannot be reached.
I did ssh to my ec2 instance and uses the curl command it shows me the html page but without it says connection cannot be established curl output:
Security Groups are also configured with port 80 and 443:
Also I set firewall to 'Nginx Full' - local firewall configuration:
When I run the command sudo systemctl status gunicorn.socket it shows:
The command sudo systemctl status gunicorn shows:
Also the command sudo systemctl status nginx shows:
I have set up a VM in azure with Redhat Linux OS, I have installed Httpd service and placed a static webpage to access.
I am not able to access my VM via browser with public IP set on my VM. Although, I am able to ssh into the machine.
Steps I have already tried:
Set an inbound rule on the network security group for port 80, 443, 22(ssh).
Attached this NSG to both VNET & NIC but no luck.
Tried the same in AWS EC2 instance it works like a charm. Not sure why Azure is not that straight forward.
Tried to find the solution online and documentation but no luck.
Please help if you have any idea how can I access my app via a browser.
Please check, if SELINUX is configured correctly
Redhat reference here: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/managing_confined_services/chap-managing_confined_services-the_apache_http_server
Thanks,
Manu
Thanks Manu for your suggestion. But I found that Linux firewall was blocking it. So here is what I did:
Since I am using RHEL 8, the inbuilt firewall is via Firewalld not iptables(which is there for RHEL 6 and before).
1- By default, only port 22 open in firewalld. "firewall-cmd --list-all" command will show the details.
2- Added HTTP port. By using below 2 commands
$ sudo firewall-cmd --zone=public --add-service=http --permanent
$ sudo firewall-cmd --reload
3- Verify the change by using any of the below commands:
$ sudo firewall-cmd --list-services
$ sudo firewall-cmd --list-services --permanent
Please refer this link for more details:
https://www.cyberciti.biz/faq/configure-set-up-a-firewall-using-firewalld-on-rhel-8/
I have a Centos 7 vm running on windows machine. In the vm I have started a docker container in which monit is running. The monit control file monitrc has the below http interface settings:
set httpd port 2812 and
use address 172.17.0.2
allow 172.17.0.2
The ipaddress 172.17.0.2 is the ipaddress of the container found by using docker inspect command. I have also tried using localhost instead of 172.17.0.2. The container is started with the option -p 2812:2812. I have setup ssh tunnel in putty for the vm with below setting:
Source Port - 2812
Destination - localhost:2812
When I am typing locahost:2812 in the browser I am not able able to access the monit admin page. Please help!!
I have got installed CentOS 7 under virtual envirment.
It has proper hostname so I can ping it and it has acccess to internet inside of it and I can ping by IP and host name outside of it. Also It has working Apache and its test page is fine that has been checked locally.
Now I would like to get access to this test page from the MS Windows but I cannot. (I can ping CentOS by IP and hostname.)
Has it something to do with Iptables or firewall?
And this link doesnt help as well https://serverfault.com/questions/459267/enabling-http-access-on-port-80-for-centos-6-3-from-console
I assume some settings should be changed under CentOS but I am not sure which of them.
My question is which steps I have to execute to allow all those things?
Either disable firewalld.service
systemctl disable firewalld.service
systemctl stop firewalld.service
Or allow access to port 80
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
Also disable SELINUX:
setenforce 0
sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
So the answer is a simple one.
I just used Firewall settings to allow http and httpd.
I've installed cloud 9 Ubuntu 14.04 (Desktop), and executed it by typing:
node [cloud9folder]/server.js -p 8080 -a :
I was able to connect to it by typing localhost:8080 (On the same computer that is running cloud 9) but when I went on another computer on the same network, I was unable to connect by typing [ip address of the computer running cloud9]:8080 into the browser. The browser returned: "Webpage not available (ERR_CONNECTION_REFUSED)."
I know the server computer is working, I was able to access it's apache2 website but for some reason it is unable to connect to cloud 9.
How do I fix this?
also add -l 0.0.0.0 by default server is listening on 127.0.0.1 which is not public