De Wiki inetshell
Saltar a: navegación, buscar

Usar IPtables en CentOS7

https://serverfault.com/questions/626521/centos-7-save-iptables-settings

  • Disable firewalld by the following command:
systemctl disable firewalld
  • Then install iptables-service by following command:
yum install iptables-services 
  • Then enable iptables as services:
systemctl enable iptables 
  • Now you can save your iptable rules by following command:
systemctl start iptables
  • Load config:
iptables-restore < /root/iptables-rules
  • Save config:
iptables-save > /etc/sysconfig/iptables

Listar conexiones por NAT

https://www.cyberciti.biz/faq/display-iptables-router-nat-connections-using-netstat-nat/

sudo apt-get install netstat-nat