K
K
kudlenkov3032022-04-04 12:23:19
linux
kudlenkov303, 2022-04-04 12:23:19

How to deny access to sites on a VPN server through nginx?

I have a special stub on my VPN server (WireGuard) that runs on Apache2. Apache opens by internal private ip address on port 88, since port 80 is occupied by Pi-Hole. How can I make it so that for example: when you go to the site "google.com" not the site itself opens, but a stub? How can this be done through nginx or what other way can this be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TheAndrey7, 2022-04-04
@TheAndrey7

How can I make it so that for example: when you go to the site "google.com" not the site itself opens, but a stub?
But no way. You need a valid certificate that no one will give you. When the provider blocks the site, he also cannot show you the stub, but he wants to.

A
AlexVWill, 2022-04-04
@AlexVWill

This can be done in PiHole, set up a blocking rule there and rewrite the DNS request to the address of your stub.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question