Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to have an Apache webserver only send web traffic over a VPN?

I've got a webserver (latest Debian) running at Linode that I use for an internal website at my office. For security reasons, I need more than a username and password to ensure no one externally is viewing the site. For now, I am using IP filtering, but my our IP addresses are many and they sometimes change. The other issue is that if an employee is at home and connected to our VPN, their IP address is still blocked because of how our VPN is configured.

I'd rather connect my Linode to our VPN, and make sure the only web requests that it serves are over this VPN.

Has anyone done this before?

Thanks!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Make it listen only on the private IP of the VPN instead of Listen *:80 use Listen privateIP:80

If you want you can also have sites listening on the public IP and sites on the VPN depending on the settings you use in the virtualhost.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.