Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:firewall:fw3_configurations:fw3_parent_controls [2023/08/29 14:24] – [Blocking services with banIP] vgaetera | docs:guide-user:firewall:fw3_configurations:fw3_parent_controls [2023/08/30 08:26] – [Blocking services with banIP] vgaetera | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| * Dynamic hosts change their IP on a regular basis, invalidating the blacklist | * Dynamic hosts change their IP on a regular basis, invalidating the blacklist | ||
| - | ==== Blocking | + | ==== Blocking |
| Follow: | Follow: | ||
| [[docs: | [[docs: | ||
| Line 47: | Line 47: | ||
| * This will block all sites sharing the same IP with the targeted, so use carefully for domains which rely on [[wp> | * This will block all sites sharing the same IP with the targeted, so use carefully for domains which rely on [[wp> | ||
| * Completely blocking sites that use localized domains is problematic. | * Completely blocking sites that use localized domains is problematic. | ||
| + | |||
| + | ==== Blocking services with banIP ==== | ||
| + | See also: | ||
| + | [[packages: | ||
| + | [[packages: | ||
| + | |||
| + | banIP can block services using IP/CIDR lists, e.g. you can block WhatsApp with [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | opkg update | ||
| + | opkg install banip luci-app-banip | ||
| + | uci set banip.global.ban_enabled=" | ||
| + | uci del_list banip.global.ban_feed=" | ||
| + | uci add_list banip.global.ban_feed=" | ||
| + | uci commit banip | ||
| + | . / | ||
| + | json_init | ||
| + | json_load_file / | ||
| + | json_add_object " | ||
| + | json_add_string " | ||
| + | json_add_string " | ||
| + | HybridNetworks/ | ||
| + | json_add_string " | ||
| + | json_close_object | ||
| + | json_dump > / | ||
| + | / | ||
| + | </ | ||
| ==== Blocking sites by using proxy servers ===== | ==== Blocking sites by using proxy servers ===== | ||
| Line 159: | Line 186: | ||
| You need to apply this for all wireless interfaces accessible by the user. | You need to apply this for all wireless interfaces accessible by the user. | ||
| Typically the 5 Ghz band is '' | Typically the 5 Ghz band is '' | ||
| - | |||
| - | ===== Blocking services with banIP ===== | ||
| - | See also: | ||
| - | [[packages: | ||
| - | [[packages: | ||
| - | |||
| - | banIP can block services using IP/CIDR lists, e.g. you can block WhatsApp like this. | ||
| - | |||
| - | <code bash> | ||
| - | opkg update | ||
| - | opkg install banip luci-app-banip | ||
| - | uci set banip.global.ban_enabled=" | ||
| - | uci -q delete banip.global.ban_feed | ||
| - | uci add_list banip.global.ban_feed=" | ||
| - | uci commit banip | ||
| - | . / | ||
| - | json_init | ||
| - | json_load_file / | ||
| - | json_add_object " | ||
| - | json_add_string " | ||
| - | json_add_string " | ||
| - | HybridNetworks/ | ||
| - | json_add_string " | ||
| - | json_close_object | ||
| - | json_dump > / | ||
| - | / | ||
| - | </ | ||