RECOMMENDED ARTICLES
Cleaning IPTABLES rules and ALLOWING ACCESS to all
This set of commands clears all restrictions for accessing your computer, be carefull because this means a security breach.
NOTE: To execute iptables commands root permissions are required.
This command lists all rules from all chains:
#iptables -L
It is a good idea to back up existing iptables configuration:
#iptables-save > backup_iptables
If later we want to restore the old iptables configuration:
#iptables-restore < backup_iptables
Delete (flush) all rules one by one in current table:
#iptables -F
Delete every non-builtin chain in the table:
#iptables -X
If default policy is to DROP packets, we need to change it to ACCEPT so packets will not be discarded by default.
#iptables -P INPUT ACCEPT
#iptables -P FORWARD ACCEPT
#iptables -P OUTPUT ACCEPT
REFERENCE
$man iptables