Vous êtes sur la page 1sur 1

SERVIDOR WEB 1

Instalar arptables_jf
Verifcar si est linea
- rpm qa | grep arptables_jf
SERVIDOR WEB 2
Instalar arptables_jf
Verifcar si est linea
- rpm qa | grep arptables_jf
SERVIDOR WEB 3
Instalar arptables_jf
Verifcar si est linea
- rpm qa | grep arptables_jf
SERVIDOR WEB 1
En la terminal
- service arptables_jf start
- arptables A IN d 172.16.16.30 j DROP
- arptables A OUT d 172.16.16.30 j mangle --mangle-ip-s 172.16.16.16
- arptables A OUT d 172.16.16.30 j mangle --mangle-ip-s 172.16.16.17
- service arptables_jf save
- service arptables_jf status
vim /etc/sysconfig/network-scripts/ifcfg-lo:0
DENTRO DE ESTE ARCHIVO CONFIGURAMOS:
DEVICE=lo:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=172.16.16.30
NETMASK=255.255.255.255
NETWORK=172.16.0.0
BROADCAST=172.16.255.255
NAME=loopback
vim /etc/sysconfig/arptables (verificamos si est configurado arptables, y salimos)
Ahora copiaremos a los otros servidores web la configuracin
scp /etc/sysconfig/arptables web2:/etc/sysconfig/arptables
scp /etc/sysconfig/arptables web3:/etc/sysconfig/arptables
scp /etc/sysconfig/network-scripts/ifcfg-lo:0 web2: /etc/sysconfig/network-scripts/ifcfg-lo:0
scp /etc/sysconfig/network-scripts/ifcfg-lo:0 web3: /etc/sysconfig/network-scripts/ifcfg-lo:0
SERVIDOR WEB 1
En la terminal:
service arptables_jf restart
service network restart
echo Bienvenido al Servidor Web 1 > /var/www/html/index.html
service httpd start
chkconfig httpd on
chkconfig arptables_jf on
SERVIDOR WEB 2
En la terminal:
service arptables_jf restart
service network restart
echo Bienvenido al Servidor Web 2 > /var/www/html/index.html
service httpd start
chkconfig httpd on
chkconfig arptables_jf on
SERVIDOR WEB 3
En la terminal:
service arptables_jf restart
service network restart
echo Bienvenido al Servidor Web 1 > /var/www/html/index.html
service httpd start
chkconfig httpd on
chkconfig arptables_jf on

Vous aimerez peut-être aussi