T
T
ttywizard2020-04-29 15:56:22
linux
ttywizard, 2020-04-29 15:56:22

Blocking sites on OpenVPN?

There is a VPS on which OpenVPN is raised, as well as a number of devices that connect to this VPN. There is a need to block certain sites (by domain or IP) when connecting via VPN, i.e. so that connected devices cannot access these sites. I searched the net for information, but could not find a clear answer to my question. Blocking through prescribing lines like 127.0.0.1 foo.bar in /etc/hosts does not help, neither does iptables. Does anyone have any experience? I do not know where to dig further.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-04-29
@ttywizard

iptables - show what you did, let's see why it didn't work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question