iptables 字串封鎖功能 - Linux

By Jack
at 2019-09-10T15:31
at 2019-09-10T15:31
Table of Contents
之前用Ubuntu 14.04桌面版安裝iptables 用string封鎖字串可以成功,後來改安裝
centos7.6安裝iptables但同樣的指令雖然可以執行確實際沒有封鎖,請問何解?
後來有看到網路上有webstr和weburl指令,確卻無法執行。
補充說明
原來是
iptables -t mangle -A POSTROUTING -s xxx.xxx.xxx.xxx -m string --algo bm
--string "game" -j DROP
現在是還可以執行,但沒效果。
我的iptables 是v1.4.21
我的架構是將兩張網卡橋接,但不用nat和虛擬ip等,是用真實ip。
網路上的指令
iptables -A FORWARD -m webstr --url "www.google.com" -j DROP
iptables -A FORWARD -m weburl --contains "yahoo" -j DROP
都無法執行
是因為缺模組嗎?
懇請高手解答。
--
centos7.6安裝iptables但同樣的指令雖然可以執行確實際沒有封鎖,請問何解?
後來有看到網路上有webstr和weburl指令,確卻無法執行。
補充說明
原來是
iptables -t mangle -A POSTROUTING -s xxx.xxx.xxx.xxx -m string --algo bm
--string "game" -j DROP
現在是還可以執行,但沒效果。
我的iptables 是v1.4.21
我的架構是將兩張網卡橋接,但不用nat和虛擬ip等,是用真實ip。
網路上的指令
iptables -A FORWARD -m webstr --url "www.google.com" -j DROP
iptables -A FORWARD -m weburl --contains "yahoo" -j DROP
都無法執行
是因為缺模組嗎?
懇請高手解答。
--
Tags:
Linux
All Comments

By Barb Cronin
at 2019-09-15T10:22
at 2019-09-15T10:22

By Jack
at 2019-09-16T01:24
at 2019-09-16T01:24

By Leila
at 2019-09-17T11:58
at 2019-09-17T11:58

By Elvira
at 2019-09-17T20:58
at 2019-09-17T20:58

By Blanche
at 2019-09-20T09:23
at 2019-09-20T09:23

By William
at 2019-09-22T22:04
at 2019-09-22T22:04

By Isla
at 2019-09-26T11:28
at 2019-09-26T11:28

By Tom
at 2019-09-27T14:07
at 2019-09-27T14:07

By George
at 2019-09-28T15:16
at 2019-09-28T15:16
Related Posts
iptables可以做到橋接嗎?

By Quintina
at 2019-09-10T00:31
at 2019-09-10T00:31
Raid-5炸掉和合理Raid組磁碟數量分配問題

By Yedda
at 2019-09-07T21:53
at 2019-09-07T21:53
適合RPI架設的線上串流音樂伺服器

By Faithe
at 2019-09-07T14:17
at 2019-09-07T14:17
Raspberry Pi2 架router問題

By Mary
at 2019-09-05T22:48
at 2019-09-05T22:48
新手Ubuntu版面調整問題

By Yuri
at 2019-09-05T09:00
at 2019-09-05T09:00