1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Question Block access from the TOR network to my domains

Discussion in 'Plesk 12.x for Linux' started by Tize, Feb 12, 2017.

  1. Tize

    Tize Basic Pleskian

    11
    85%
    Joined:
    Sep 8, 2015
    Messages:
    69
    Likes Received:
    2
    Hello everyone, I would like to know if anyone.
    How to block access to the domains hosted in Plesk of the TOR network?
    I currently have CSF installed since it is a bit more advanced than iptables.

    SO: CentOS 6.5 (Final)‬
    Versión de Plesk: 12.5.30 Actualización #59, última actualización 31/Ene/2017 03:44

    Thank you very much.
     
  2. serverpoint

    serverpoint Basic Pleskian

    8
    60%
    Joined:
    Jan 5, 2017
    Messages:
    58
    Likes Received:
    6
    Location:
    US
    Hi,

    You can get the list with IPs of all the exit nodes that can access your service from this link

    https://check.torproject.org/cgi-bin/TorBulkExitList.py

    Then you can add the IP's to :
    vi /etc/csf/csf.deny

    Restart CSF.

    Also If you need to whitelist or block a range of IP addresses using CSF, it can be done, but you need to use the CIDR format.

    For example, to block 192.168.0.0 to 192.168.0.255 you would add 192.168.0.0/24 to the blocked list.

    You can use the following tool: http://ip2cidr.com/

    and use the following command

    csf -d IP/Range

    Thanks,
     
    Tize likes this.
  3. Tize

    Tize Basic Pleskian

    11
    85%
    Joined:
    Sep 8, 2015
    Messages:
    69
    Likes Received:
    2


    Hello, thank you very much for your help and for your time.
    I have been looking at what you mention but I think there must be another way to do it without having to block iP addresses.
    Because by blocking the addresses as you tell me by ranges that are thousands of the TOR network.

    It would take a long time.

    If you are so kind to enter here from TOR www.tdbank.com you can check what I mean, directly block TOR DNS or something else, and now many banks and prestigious websites use this same technology.

    I hope you can help me, and thank you very much for your time.


    Captura de pantalla 2017-02-17 a las 9.50.23.png
     
Loading...