nginx restricting IP access problem
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:24:44
0
2
440
allow 192.168.1.0/24;
deny all;

According to the search, I wrote the above two items in a site setting of vhost,
But the results are all 403, and no access to the intranet is allowed.

=======================
The background is this. I set up pptp on a server A, and then accessed server A locally through pptp, but the displayed source is still the original external network address, and I have checked all traffic to be processed by pptp.

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
Ty80

Are you accessing using an intranet IP? Do you have this kind of structure, or something else? 本地->pptp->nginx->A服务器内容

给我你的怀抱

If the topology diagram is like this,
Then the external IP of the personal computer facing the server should be the address of the PPTP server,
Instead of the address configured in PPTP such as 192.168.0.1. .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!