Iptables ipset 使用经验: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

29 April 2026

  • curprev 15:3615:36, 29 April 2026 Mwroot talk contribs 1,473 bytes +1,473 Created page with "== 白名单 == <syntaxhighlight lang="bash"> ipset create mw_white hash:ip family inet hashsize 4096 maxelem 131072 ipset list mw_white ipset test mw_white 1.2.3.4 ipset add mw_white 1.2.3.4 -exist ipset del mw_white 1.2.3.4 </syntaxhighlight> <code>iptables -I INPUT 1 -m set --match-set mw_white src -j ACCEPT</code> 令白名单规则排第一条。 == 黑名单 == <syntaxhighlight lang="bash"> ipseet create mw_ban hash:ip family inet hashsize 4096 maxelem 131072 tim..."
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)