Changes between Version 7 and Version 8 of SshSecuring
- Timestamp:
- Jun 21, 2017 10:53:57 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SshSecuring
v7 v8 14 14 * Para mover reglas a otro equipo copiar '''/etc/sysconfig/iptables''' y reiniciar /sbin/service iptables restart 15 15 16 {{{ 17 #!sh 18 [root@spock sysconfig]# ls -Z iptables 19 -rw-------. root root unconfined_u:object_r:admin_home_t:s0 iptables 20 [root@spock sysconfig]# ls -Z iptables.orig 21 -rw-------. root root system_u:object_r:system_conf_t:s0 iptables.orig 22 #Al copiar de otro equipo hay que tener en cuenta seLInux 23 [root@spock sysconfig]# restorecon -v /etc/sysconfig/iptables 24 restorecon reset /etc/sysconfig/iptables context unconfined_u:object_r:admin_home_t:s0->unconfined_u:object_r:system_conf_t:s0 25 26 27 }}} 28 16 29 17 30 … … 22 35 iptables -A INPUT -i eth0 -s 193.144.202.0/24 -p tcp --dport 22 -j ACCEPT 23 36 }}} 37 38 https://wiki.centos.org/HowTos/Network/IPTables 24 39 25 40 === Modificacion: ===