How to secure a dev environment - nitrousio

I'm using PHP + LAMP container, and a Symfony2 app. I got my dev environment working but right now it has public access (anyone with the link). How can I secure the access to it? I was thinking maybe a ssh tunnel and allow access to the directory only through localhost, but I was wondering if there's a more simple way?
Thanks.

You can use the Nitrous desktop application to forward ports to your local computer, this is just like using a SSH tunnel but we are providing a useable GUI around it.
https://community.nitrous.io/docs/desktop-app-installation

Related

Deploy war file in apache-tomcat on google compute engine

I have created instance on google cloud platform (allowed http traffic). Used Ubuntu 14.04 OS. Installed oracle java8 and apache-tomcat.Placed war file in tomcat webapps and started server. Server started successfully.
Question is how to access my application, tried accessing external ip of instance from web browser but no response.
Can anyone tell me the process or missing things I have not done.
Thanks in advance.
I had the same issue and eventually solved it
In my case the solution was simple.Check the firewall rule is really tcp:8080 and not tcp:80 as created by default.
Changed this and finally saw my tomcat welcome page.
1)Added http port (8080) in firewall rules in Networking section
2)Refreshing VM instance by click refresh option before accessing with external ip followed by http server port(8080)
I hope after following first step, need to refresh VM instance to access web serve with external IP

How do I connect a desktop app to an hosted database

I am developing a desktop app and I want to store data in hosted database like MySQL/MongoDB. I know one solution is using webservice to manipulate db. I am wondering is there a way to connect desktop app with hosted db directly.
I am using OpenShift I know I can use port-forward to do this. But it's unpractical to open port forward every time for every PC. So is a way simply like this:
mongoose.connect('mongodb://user:pass#host:port/db');
I tried this but I got 'connect refused' or 'connect not found' errors. OpenShift doesn't allow external access to database directly because security issues, right? Then how could I do it without port-forward?
Also I read some articles about SSH, is it possible to use SSH to access db directly when desktop app is launched?
Thanks for any suggestion.
I don't think OpenShift is going to be a good fit for what you are trying to do, unless you decide to build a service layer between your desktop app and the database. It sounds like you are looking for a Database As A Service. You mentioned both MongoDB and MySQL. MongoLab is a good MongoDB DBaaS option. For other databases like MySQL, PostgreSQL and several others you could look at Amazon RDS.

Access google cloud windows server via web

Is there a way to remote desktop into a Windows VM on google cloud via the web without using RDP.
I am able to connect to the VM via RDP, but would like to connect via a web application or other means.
Any suggestions?
I haven't tested it personally but VNC should work. You'll have to review and open the necessary firewall ports.
Www.realvnc.com

Is there a way to enable Chrome (or Firefox) to read web pages via another server on local network?

My local machine is not connected to internet. However, I have a server on local network which I can connect via SSH. This server is directly connected to internet. I do not have the admin privileges on the server, so I cannot install a browser on it. However, I can download web pages on it using wget. I was wondering if there exists a way so that I can browse internet using a regular browser installed on my local machine.
If you have SSH access to the server you can try using it as a proxy.
ssh -D 8765 user#host
Then you need to set a SOCKS5 proxy on your browser pointing to 127.0.0.1:8765 and you'll be ready to browse the Internet as long as the SSH connection is alive.
The port 8765 is used just for example. You can use any port between 1025 and 65535.
If it's allowing you to get webpages with wget, you might want to see if the server is set up to be a proxy server.

How do I connect VS2010 to a MySQL database (locallay on another computer)?

I have a MySQL database on another windows computer (a server) that is setup locally using remote desktop connection for testing.
How can I connect to that local database to Visual Studio 2010 on "my computer"?
Server Computer(MySQL database setup local) --> My Computer(Visual Studio for test code..)
I am new to MySQL and any suggestions will help.
Thanks
PS: I have found this, but the "Server Name" for the database is 127.0.0.1 which I can't use because it is local on whatever computer you are on.
http://geekswithblogs.net/mbridge/archive/2010/12/13/visual-studio-2010-hosting--connect-to-mysql-database-from.aspx
You'll have to use the address of the computer that it is hosted on. It should be the same as the address you use to connect to the remote desktop session.
You might need to configure the firewall to accept the connection. You also might need to setup MySQL to allow remote connections with the user that you authenticate with.
I would recommend downloading MySQL workbench and install it on your local computer. Once you get the connection working with that, you should be able to use the connection with VS2010.
If you're not sure how to do the things listed above, you'll need to start out with a basic tutorial on setting up MySQL for remote connectivity.