Category Archives: Tips

Transparent proxy with Squid

Enable IP Packet Forwarding on the machine Solution 1 sudo vim /etc/sysctl.conf then change the following parameter to 1 net.ipv4.ip_forward = 1 Save file & exit. Now execute the following command to implement the changes made, sudo sysctl -p Solution 2 echo 1 > /proc/sys/net/ipv4/ip_forward Configure the squid proxy Configure for ssl mkdir /etc/squid/ssl_cert cd […]

Ad Blocker using Squid Proxy

Blacklist Run following command to create /etc/ad_block.txt file curl -sS -L –compressed “http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext” > /etc/ad_block.txt Configure Add config to squid.conf ## disable ads ( http://pgl.yoyo.org/adservers/ ) acl ads dstdom_regex “/etc/ad_block.txt” http_access deny ads Automating the Fetching of the Blacklist Create script /etc/newads.sh #!/bin/bash curl -sS -L –compressed “http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext” > /etc/squid3/ad_block.txt ## restart squid /usr/sbin/squid3 restart […]

Kubernetes Installation

Prerequisite (all nodes) yum update Install CRI (Docker) Install Docker from CentOS/RHEL repository yum install -y docker systemctl enable docker.service Setup daemon cat > /etc/docker/daemon.json <<EOF { #”exec-opts”: [“native.cgroupdriver=systemd”], #”log-driver”: “json-file”, “log-opts”: { “max-size”: “100m” }, #”storage-driver”: “overlay2”, “storage-opts”: [ “overlay2.override_kernel_check=true” ] } EOF Restart docker systemctl daemon-reload systemctl restart docker Installing kubeadm, kubelet and […]

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.