Home  >  Q&A  >  body text

nginx restricting IP access problem

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梦2713 days ago446

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:26:44

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

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 17:26:44

    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. .

    reply
    0
  • Cancelreply