1. Display iBlocker

Display iBlocker

The /etc/iptables.ipv4.nat content is displayed when Display iBlocker buttond is pressed.

------//-------

2. Display ACTIVE RULESDefault Config

The following commands are executed:

iptables -S -> All chains are displayed

iptables -L INPUT --line-numbers

iptables -t nat --list

sudo iptables -P OUTPUT ACCEPT

Then flush the nat and mangle tables, flush all chains (-F), and delete all non-default chains (-X):

sudo iptables -t nat -F

sudo iptables -t mangle -F

sudo iptables -F

sudo iptables -X

Your firewall will now allow all network traffic. If you list your rules now, you will will see there are none, and only the three default chains (INPUT, FORWARD, and OUTPUT) remain.

------//-------

3. Apply AP - enable Access Point Apply AP

Note: addtional settings supposed to be apriori performed: hostapd, dhcp installation and configuration, IPv4 forwarding enabled.

This action will enable iptables for Access Point:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT

sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT

In case eth1 is also available, we should add the below commands:

sudo iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT

sudo iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

------//-------