Category Redhat Centos

centos iptables howto

centos iptables howto Copy live iptables configuration to iptables.old in user’s home directory: # cp /etc/sysconfig/iptables ~ Modify live iptables configuration: # nano -w /etc/sysconfig/iptables Restart iptables: #service iptables restart

grep ifconfig list ips

Linux ifconfig Example Type the following command: ifconfig | grep ‘inet addr:’| grep -v ‘127.0.0.1’ | cut -d: -f2 | awk ‘{ print $1}’ FreeBSD/OpenBSD ifconfig Example Type the following command: ifconfig | grep -E ‘inet.[0-9]’ | grep -v ‘127.0.0.1’…