Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to setup a server with L2TP and Apache. Some folders in the Apache config will only be accessible to those connected to the VPN.

I do know that I can use the allow and deny rules with the IP ranges, however it doesn't send the correct IP.

For example, my VPN has a local IP range from - In Apache I can set it to only allow IPs in 172.16.255., yet as soon as I try to access the page, it will show a 403 error along with a message in the error log with the IP of my home/office and access denied by server.

Do I need to make any changes in the VPN configuration or in dnsmasq?

Thanks a lot!

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.