- Developing a Facebook App
- Developing an OAuth authentication
- Make a quick showcase for your client
Problem is, you probably want it to be your machine because you have all your development tools and IDEs, it is fast and you know it by heart. You could mount a folder using sshfs, but it is only part of the job and it may get very slow for some file editors.
The solution I came up with is to tunnel through a VPN to a public machine and let it proxy the requests back.
You will need
- A public Linux box with root access
- A domain name where you can setup a wildcard
Instructions, tested on Ubuntu 12.04
- Install apache or nginx and pptpd (you can follow this tutorial for the VPN or this one if you are using ufw)
- In you /etc/ppp/chap-secrets file, be sure to specify a fixed address for yourself (4th column)
- It must fit the IP range specified in /etc/pptpd.conf
- Create a DNS wildcard pointing to your server
- Ex: CNAME *.dev.lavoie.sl => server.lavoie.sl
- Create an Apache or Ngnix proxy to match a server wildcard and redirect it to the VPN IP decided before
- Create the same wildcard on your machine to answer correctly.
Security considerations
If you have unprotected data like phpMyAdmin or other websites you are developing, they could be at risk, consider protecting them via a password or an IP restriction.
No comments:
Post a Comment