Establish remotely

This commit is contained in:
Pete Thomas 2023-01-12 09:22:39 +00:00 committed by You
parent 53fb271235
commit e2ba2e5f84

View File

@ -3,6 +3,7 @@
This page show you how to block CloudFlare websites with your firewall, preventing from connecting to them.
### With nftables
<details><summary> _click me_ </summary>
@ -15,8 +16,8 @@ define cf6 = { 2400:cb00::/32, 2405:8100::/32, 2405:b500::/32, 2606:4700::/32, 2
# add the following lines to
table inet filter {
chain output {
ip daddr { $dns_google, $dns_tdc, $dns_telenor } counter reject with icmp type admin-prohibited comment "Droped CF quires"
ip6 daddr { $ipv6_google_dns, $ipv6_tdc_dns } counter reject with icmpv6 type admin-prohibited comment "Droped CF quires"
ip daddr { $cf4 } counter reject with icmp type admin-prohibited comment "Dropped CF quires"
ip6 daddr { $cf6 } counter reject with icmpv6 type admin-prohibited comment "Dropped CF quires"
...
```
@ -115,3 +116,57 @@ New-NetFirewallRule -DisplayName "Block CF" -Direction Outbound LocalPort Any
```
</details>
### With COMODO Firewall
<details><summary> _click me_ </summary>
1. Export your configuration to file.
2. Open the file and search for `<BlockedAddresses>`
3. Copy & paste below text to between `<BlockedAddresses>` and `</BlockedAddresses>`.
4. Save the file and import it with new profile name.
5. Apply the profile.
```
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="103.21.244.0" AddrEnd="103.21.247.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="103.22.200.0" AddrEnd="103.22.203.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="103.31.4.0" AddrEnd="103.31.7.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="104.16.0.0" AddrEnd="104.23.255.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="104.24.0.0" AddrEnd="104.27.255.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="108.162.192.0" AddrEnd="108.162.255.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="131.0.72.0" AddrEnd="131.0.75.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="141.101.64.0" AddrEnd="141.101.127.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="162.158.0.0" AddrEnd="162.159.255.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="172.64.0.0" AddrEnd="172.71.255.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="173.245.48.0" AddrEnd="173.245.63.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="188.114.96.0" AddrEnd="188.114.111.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="190.93.240.0" AddrEnd="190.93.255.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="197.234.240.0" AddrEnd="197.234.243.255" /></Address></ArrayItem>
<ArrayItem Type="4" Name=""><Address Type="1"><IPV4 AddrType="2" AddrStart="198.41.128.0" AddrEnd="198.41.255.255" /></Address></ArrayItem>
```
</details>
### With PeerBlock
<details><summary> _click me_ </summary>
```
CloudFlare:103.21.244.0-103.21.247.255
CloudFlare:103.22.200.0-103.22.203.255
CloudFlare:103.31.4.0-103.31.7.255
CloudFlare:104.16.0.0-104.23.255.255
CloudFlare:104.24.0.0-104.27.255.255
CloudFlare:108.162.192.0-108.162.255.255
CloudFlare:131.0.72.0-131.0.75.255
CloudFlare:141.101.64.0-141.101.127.255
CloudFlare:162.158.0.0-162.159.255.255
CloudFlare:172.64.0.0-172.71.255.255
CloudFlare:173.245.48.0-173.245.63.255
CloudFlare:188.114.96.0-188.114.111.255
CloudFlare:190.93.240.0-190.93.255.255
CloudFlare:197.234.240.0-197.234.243.255
CloudFlare:198.41.128.0-198.41.255.255
```
</details>