By afidzachmadn
Hello,
I have a project in my Univ. It’s a chat App (android). So in order to make the connection is anonymous(future work). I will try connect to my sever first (Digital Ocean) through port 80 then I would like to redirect all of incoming traffic from that(port 80) to URL ( in this case I use Firebase for make communication with my app).
So in my App codes, there is a script that have function to connect my app to Firebase: Firebase ref = new Firebase(“https://<YOUR-FIREBASE-APP>.firebaseio.com”);
I change it to http://iup2013.ddns.net . So it’s like my App connect to Firebase directly but actually through my server in Digital Ocean first.
Is there any chance about to redirect all of traffic from port 80 to Firebase Url with iptables ?
*why I must connect to my server (digital ocean) first? becasue in future work I will make all of outcoming traffic through Tor to enhancing the privacy.
hope you will help :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This guide walks you through using nginx as a web proxy on port 80. In this case it is for proxying connections to apache but you could set up the nginx portion of this configuration to point to your remote service.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.