How to Website blocking in Centos 7 | Squid |

Pubblicato il: 15 gennaio 2023
sul canale di: Nagarajan Explorer
93
2

Link: Squid dhcp Server Configure Website blocked Iptables in Ubuntu Server
   • How to dhcp and squid Server Configur...  

Subscribe:    / @nagarajanexplorer  

How to block facebook youtube and instagram in Squid transparent Proxy Server in Centos 7 | How to restriction youtube facebook iptables in Linux | How to blocking facebook youtube in Ubuntu

Port forwarding :
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE

Website blocking in iptables ;
iptables -I FORWARD -p tcp -m tcp --dport 443 -m iprange --src-range 172.16.0.1-172.16.0.10 -m string --string "www.facebook.com" --algo bm --to 65535 -j DROP

Particular Website not opening :
iptables -I FORWARD -p tcp --dport 443 -s 172.16.0.120 -m string --string 'www.youtube.com' --algo bm --to 65535 -j DROP


In questa pagina del sito puoi guardare il video online How to Website blocking in Centos 7 | Squid | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Nagarajan Explorer 15 gennaio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 93 volte e gli è piaciuto 2 spettatori. Buona visione!