AdguardForAndroid icon indicating copy to clipboard operation
AdguardForAndroid copied to clipboard

block IP address range

Open Pantyhose-X opened this issue 4 years ago • 3 comments

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • [ .] I am running the latest version
  • [ .] I checked the documentation and found no answer
  • [ .] I checked to make sure that this issue has not already been filed

Problem Description

  • Block the IP address rang held by dangerous companies
  • Create an Access Control List to Block Countries or Continents

Proposed Solution

AdGuard Settings > Extensions address range Format

  • Apache .htaccess Deny
  • Apache .htaccess Allow
  • CIDR
  • Cisco ACL
  • Cisco bit bucket
  • Decimal/CIDR
  • IP Range
  • Inverse Netmask
  • Juniper Junos
  • Linux iptables
  • MicroTik
  • Netmask
  • Network-Object
  • Peerguardian2
  • web.config Deny
  • web.config allow
  • Custom CIDR
  • Custom Netmask

Pantyhose-X avatar Nov 26 '21 07:11 Pantyhose-X

Actually, you can block IP address ranges/Applications using the tools that have already been implemented.

For example, to block IP addresses, you can use DNS blocklists If you want to restrict network access to some applications - use the Firewall (Apps management tab).

Chinaski1 avatar Nov 26 '21 08:11 Chinaski1

Actually, you can block IP address ranges/Applications using the tools that have already been implemented.

For example, to block IP addresses, you can use DNS blocklists If you want to restrict network access to some applications - use the Firewall (Apps management tab).

Add ip range rules syntax " "

  • "0.0.0.0/24" -block access to ip range domains 0.0.0.0/24

Pantyhose-X avatar Dec 15 '21 05:12 Pantyhose-X

@Pantyhose-X You may try $network rules.

Here are some examples:

11.22.*$network
1.2.3.4:443$network
/1\.2\.3\.4:(80(80)?|443)/$network

https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#network-modifier

sfionov avatar Dec 15 '21 07:12 sfionov

I think we can close the task cause of answer is found.

artemiv4nov avatar Jan 17 '23 09:01 artemiv4nov