K
K
kirawa2015-05-29 16:10:29
FreeBSD
kirawa, 2015-05-29 16:10:29

How to close access to "vk" in Freebsd?

It is necessary to close access to the contact by certain ip on the network.
for example:
add deny "IP address_that_should_close_social networks" from "ipSocial Networks" something
like this

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-05-29
@bk0011m

Next time, specify what kind of firewall you have.
In IPFW, something like this
. Only you have to maintain an up-to-date database of IP addresses. If you resolve, then IPFW takes only the first IP from the list, and the user does not always follow the first one.

A
athacker, 2015-05-29
@athacker

Set up a proxy, drive everyone to the Internet through a proxy, and check at the requested URL. There is vk.vom in the URL or whatever they have there, then block it.

A
Alexander, 2015-06-05
@Tilk

If for some reason a proxy is not used, then here is a great layout for you:
1) create a table in a file describing the Contact's IP addresses.
2) write a script that processes the command "nslookup -ls -d vk.com ns1.vkontakte.ru"
- read the file with addresses into a hash;
- Run the command 100 times and enter the resulting IPs into the hash.
- write the ips from the hash to a file.
3) Run the script by cron and load the firewall rules once a day.
The very next day, the contacts will break off and the problem will begin to disappear exponentially.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question