How to block access to websites using iptables on Linux.
How to use iptables to block access to certain websites. This is very useful.
Read MoreHow to use iptables to block access to certain websites. This is very useful.
Read MoreBlock Internet access for a specific user or user group on Linux. This works very well using iptables. A potentially very useful Linux tip.
Read MoreBlocking unwanted websites with iptables can be done. This is not done via an Internet Protocol address, as this does not work. But matching strings does work. I have found out a way to do this. This sample below shows a few rules to block a website, if you try…
Read MoreThis iptables config will map the 10.8.0.0 IP address to the 54.66.223.254 IP address range to enable the OpenVPN deamon to function. This is what I used when I was using OpenVPN to connect securely to a remote Amazon instance for access to a Linux virtual machine. # Generated by…
Read MoreSample Iptables configurations A sample iptables output that I am using on an OpenVPN server to allow Internet traffic to be passed through it. ubuntu ~ $ sudo iptables-save # Generated by iptables-save v1.4.21 on Wed Aug 2 22:19:48 2017 *filter :INPUT ACCEPT [2654934:1228315333] :FORWARD ACCEPT [31023:17433690] :OUTPUT ACCEPT [2475842:555885003]…
Read MoreHow to block ads using rules in iptables on Linux.
Read MoreThe iptables entries are lost upon reboot with a standard configuration, but this can be applied on boot with the right script. Create a script in the /etc/network/if-up.d directory named iptables. jason@hoshi:~$ sudo touch /etc/network/if-up.d/iptables [sudo] password for jason:jason@hoshi:~$ sudo touch /etc/network/if-up.d/iptables [sudo] password for jason: Put this in it….
Read MoreThe iptables firewall is the built-in firewall for protecting a Linux machine from online threats. But the settings are not save upon a re-boot. This is easily alleviated by installing the iptables-persistent package for Ubuntu. Once this is installed, you will be greeted with a screen that will ask you…
Read MoreThe iptables -L or iptables –list commands will list all of the iptables rules that are set on your Linux machine. Below is the abbreviated output of this command on my Fedora Linux system. [root@localhost homer]# iptables –list Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all –…
Read MoreSecuring your Linux computer with iptables is a great way to make sure that you are safer from Internet attacks. The iptables(8) system is the built in firewall for a Linux system. This makes it very easy to secure your computer. Before you change any settings, backup your iptables configuration….
Read More