Блокировка диапазона IP-адресов с помощью iptables [дубликат]

0
11.04.2019, 01:23
2 ответа

Вам нужно использовать ниже

iptables -I FORWARD -m iprange --src-range 192.168.2.105-192.168.2.110 -j DROP

где

-m, --match match

Specifies a match to use, that is, an extension module that tests for a specific property. The set of matches make up the condition under which a target is invoked. Matches are evaluated first to last as spec‐ ified on the command line and work in short-circuit fashion, i.e. if one extension yields false, evaluation will stop.

1
28.01.2020, 02:40

Я только что обнаружил блокировку iptables на DD -WRT работает только с CIDR

бывший

iptables -I FORWARD -s 192.168.1.100/30 -j DROP
iptables -I FORWARD -s 192.168.1.104/29 -j DROP
iptables -I FORWARD -s 192.168.1.112/28 -j DROP
iptables -I FORWARD -s 192.168.1.128/28 -j DROP

Жаль, но, возможно, это ограничение связано с тем, что у моей конструкции мало памяти

0
28.01.2020, 02:40

Теги

Похожие вопросы