> Operating System - Kernel (Windows, Unix, Linux) > Linux / Unix

1 - About

iptables is a Firewall and NAT.

The actual iptables rules are created and customized on the command line with the command :

  • iptables for IPv4
  • and ip6tables for IPv6.

The iptables command inspect the tables of IPv4 and IPv6 packet filter rules in the Linux kernel.

Iptables and firewalld services conflict

3 - Management

3.1 - Start / Stop

You can start, stop, and restart iptables after booting by using the commands:

service iptables stop
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
service iptables stop
service iptables status
Firewall is stopped.

3.2 - How to configure Iptable to allow all connection to the Oracle Database

iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d 0/0 --dport 1521 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp -s 0/0 --sport 1521 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
service iptables save
service iptables restart

Verify that the listener of your database is up and running otherwise you may have an error of the network adapter

os/linux/iptable.txt · Last modified: 2019/05/06 16:36 by gerardnico