AdguardTeam / AdguardTeam/AdguardForAndroid

More Network Stealth - ICMP, IGMP, Port Scanning Prevention, IPv6

未关闭
#3,727 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
Feature request Priority: P4 TechAudit Voting
主要语言
没有语言数据
星标
1.9k
派生
121
PR 合并指标
30 天内没有已合并 PR

描述

### Prerequisites

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

### Problem Description

Feature requests:
- More network-related stealth features with better IPTables rules
- Prevent AdGuard from overriding custom ADGUARD_INPUT/ADGUARD_OUTPUT chain rules when AdGuard is restarted/updated
- Disable IPv6 interface assignments entirely

Problems:
- Default AdGuard AdBlocker ADGUARD_INPUT and ADGUARD_OUTPUT IPTable chains allow for inbound ICMP, inbound IGMP, outbound ICMP, outbound IGMP packets, and don't drop packets netfilter labels "INVALID"
- AdGuard overrides/resets user-set changes to ADGUARD_INPUT and ADGUARD_OUTPUT chains when AdGuard is restarted and/or updated
- AdGuard Advanced Settings that prevent IPv6 from working don't actually drop IPv6 interface, which continues to be assigned, even for local networks without IPv6 support (in form of Link-Local Addresses)

### Proposed Solution

- Include Advanced Settings that enforce rules similar to the ones listed below via simple toggles:
iptables -I ADGUARD_INPUT -p 1 -j DROP
iptables -I ADGUARD_INPUT -p 2 -j DROP
iptables -I ADGUARD_INPUT -m conntrack --ctstate INVALID -j DROP
iptables -I ADGUARD_OUTPUT -p 1 -j DROP
iptables -I ADGUARD_OUTPUT -p 2 -j DROP
iptables -I ADGUARD_OUTPUT -m conntrack --ctstate INVALID -j DROP

- Include Advanced Settings that force AdGuard to re-apply user-set AdGuard IPTable chain rules/rule adjustments when AdGuard restarts

- Include Advanced Settings that enforce services similar to the ones listed below via simple toggles:
echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/wlan0/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects
echo 0 > /proc/sys/net/ipv4/conf/wlan0/accept_redirects
echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/wlan0/send_redirects
echo 0 > /proc/sys/net/ipv4/ip_forward

### Additional Information

This request is based on my findings that AdGuard IPTable chains are not affected by general Android INPUT and OUTPUT policies and general user-set rules, such as "iptables -I INPUT 1 -p 1 -j DROP" that doesn't prevent AdGuard from accepting inbound ICMP. The same applies to other rules I list above.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。