iptables:block_facebook
Differences
This shows you the differences between two versions of the page.
iptables:block_facebook [2016/07/04 01:15] – created peter | iptables:block_facebook [2019/11/29 16:40] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== IPTables - Block Facebook ====== | ||
- | Some routers can block Facebook (or any other page) with an URL keyword. | ||
- | |||
- | Lately, iptables supports so called Layer 7 protocol, to adress issues like this, and it would look something like down below. | ||
- | |||
- | Generally, this is how it looks: | ||
- | |||
- | <code bash> | ||
- | -A FORWARD -p tcp -m tcp --sport 443 -m string --string " | ||
- | -A FORWARD -p tcp -m tcp --sport 80 -m string --string " | ||
- | -A FORWARD -p tcp -m tcp --dport 443 -m string --string " | ||
- | -A FORWARD -p tcp -m tcp --dport 80 -m string --string " | ||
- | </ | ||
- | |||
- | The rules above will litterally “eat” every packet comming in and out from ports 80 and 443 that contains the word “facebook”. | ||
- | |||
- | Furthermore, |
iptables/block_facebook.1467594930.txt.gz · Last modified: 2020/07/15 09:30 (external edit)