Mudanças entre as edições de "Projeto Integrador - 2014.2 - No Pain No Gain"
Linha 131: | Linha 131: | ||
<h1>'''25/11/2014'''</h1> | <h1>'''25/11/2014'''</h1> | ||
+ | |||
+ | - Configuramos o '''DNS''': | ||
+ | |||
+ | ''Arquivo: /etc/network/interfaces'' | ||
+ | |||
+ | <syntaxhighlight lang=bash> | ||
+ | # The loopback network interface | ||
+ | auto lo eth1 | ||
+ | iface lo inet loopback | ||
+ | |||
+ | iface eth1 inet static | ||
+ | address 192.168.1.21 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.1.1 | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ''Arquivo: /etc/bind/named.conf.local'' | ||
+ | |||
+ | <syntaxhighlight lang=bash> | ||
+ | // | ||
+ | // Do any local configuration here | ||
+ | // | ||
+ | |||
+ | // Consider adding the 1918 zones here, if they are not used in your | ||
+ | // organization | ||
+ | //include "/etc/bind/zones.rfc1918"; | ||
+ | |||
+ | //Zona de pesquisa direta | ||
+ | zone "nopainnogain.sj.ifsc.edu.br" { | ||
+ | type master; | ||
+ | file "/etc/bind/db.nopainnogain.sj.ifsc.edu.br"; | ||
+ | }; | ||
+ | |||
+ | //Zona de pesquisa reversa | ||
+ | zone "1.168.192.in-addr.arpa" { | ||
+ | type master; | ||
+ | file "/etc/bind/db.192"; | ||
+ | }; | ||
+ | ~ | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ''Arquivo: /etc/bind/db.nopainnogain.sj.ifsc.edu.br'' | ||
+ | |||
+ | <syntaxhighlight lang=bash> | ||
+ | ; | ||
+ | ; BIND reverse data file for local loopback interface | ||
+ | ; | ||
+ | $TTL 604800 | ||
+ | @ IN SOA nopainnogain.sj.ifsc.edu.br. root.napainnogain.sj.ifsc.edu.br. ( | ||
+ | 1 ; Serial | ||
+ | 604800 ; Refresh | ||
+ | 86400 ; Retry | ||
+ | 2419200 ; Expire | ||
+ | 604800 ) ; Negative Cache TTL | ||
+ | ; | ||
+ | IN NS nopainnogain. | ||
+ | 1 IN PTR roteador.nopainnogain.sj.ifsc.edu.br. | ||
+ | 50 IN PTR vendas.nopainnogain.sj.ifsc.edu.br. | ||
+ | 21 IN PTR nopainnogain.sj.ifsc.edu.br. | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | ''Arquivo: /etc/bind/db.192'' | ||
+ | <syntaxhighlight lang=bash> | ||
+ | ; | ||
+ | ; BIND data file for local loopback interface | ||
+ | ; | ||
+ | $TTL 604800 | ||
+ | @ IN SOA nopainnogain.sj.ifsc.edu.br. root.nopainnogain.sj.ifsc.edu.br. ( | ||
+ | 100 ; Serial | ||
+ | 604800 ; Refresh | ||
+ | 86400 ; Retry | ||
+ | 2419200 ; Expire | ||
+ | 604800 ) ; Negative Cache TTL | ||
+ | ; | ||
+ | nopainnogain.sj.ifsc.edu.br. IN NS nopainnogain.nopainnogain.sj.ifsc.edu.br. | ||
+ | nopainnogain.sj.edu.br. IN A 192.168.1.21 | ||
+ | ;@ IN A 127.0.0.1 | ||
+ | ;@ IN AAAA ::1 | ||
+ | nopainnogain IN A 192.168.1.21 | ||
+ | roteador IN A 192.168.1.1 | ||
+ | vendas IN A 192.168.1.50 | ||
+ | www IN CNAME nopainnogain.sj.ifsc.edu.br. | ||
+ | </syntaxhighlight> | ||
- Configuramos o '''Apache''': | - Configuramos o '''Apache''': | ||
Linha 145: | Linha 229: | ||
</virtualhost> | </virtualhost> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− |
Edição das 07h03min de 26 de novembro de 2014
Início 17/11/2014
Decidimos pelo nome da equipe "No Pain, No Gain".
Escolhemos o Sistema Operacional Centos 6.6, porém só conseguiremos instala-lo no dia 18/11.
- Informações Técnicas do Servidor:
- Processador Intel Core
- Memória RAM 1GB.
- HD 320GB.
- Placa de Rede Healtek
- Três interfaces de Rede: Onboard(1) Offboard(2)
18/11/2014
Serviços previstos:
Tivemos palestra com o Engº Patrick Soares, da empresa OI, das 19 às 20:30.
Retornamos ao Projeto Integrador na aula do Professor Fábio, de Instalação.
Tivemos problema quanto a instalação do Sistema Operacional Centos 6.6, mas no fim, conseguimos faze-la com um CD bootável. Para isso, foi preciso trocar o drive de CD da máquina do Servidor.
Instalamos os seguintes Serviços e Servidores: DHCP, DNS, PHP, MYSQL, RADIUS, APACHE
19/11/2014
Alteramos nosso Sistema Operacional para Ubuntu Server 13.04, pois o Centos 6.6 não era conhecido por todos da equipe e se tornaria mais difícil a sua configuração.
No entanto, tivemos problemas com a instalação do novo SO em nosso Servidor.
Por isso, trocamos nossa máquina Servidora:
- Informações Técnicas do Servidor:
- Processador Intel Core
- Memória RAM 2GB.
- HD 320GB.
- Placa de Rede Healtek
- Três interfaces de Rede: Onboard(1) Offboard(2)
20/11/2014
Conseguimos instalar o Sistema Operacional Ubuntu Server 13.04.
Dividimos nossas atividades de acordo com a tabela, abaixo:
Tarefa | Responsável |
---|---|
Programação | Tiago Flores |
DNS, WEB | Nivaldo |
EMAIL, WEBMAIL | Joel |
DHCP, FIREWALL, SSH | Bruna |
- Atualização do Ubuntu Server, utilizando os comandos:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade.
- Instalação de alguns serviços, utilizando os comandos:
sudo apt-get install openssh-server
sudo apt-get install bind9
sudo apt-get install apache2
sudo apt-get install isc-dhcp-server
sudo apt-get install mysql-server
21/11/2014
Tivemos quatro aulas de Cabeamento com o Professor Saul, onde pudemos realizar as seguintes atividades:
- Instalação DSLAM na sala de RedesI
- Separamos o Patch Panel, Organizadores de cabos, Switch, Bandejas do Armário e
- Definimos os 4 Pontos de Tomada (Rede e Câmera).
24/11/2014
- Configuramos o Postfix:
sudo apt-get install postfix
Testamos o Email de acordo com o texto, abaixo:
> sudo service postfix restart
> telnet localhost 25
220 ger ESMTP postfix (Ubuntu)
helo mail
250 ger
mail from: aluno@ifsc.edu.br
250 2.1.0 OK
rcpt to: postmaster@gar.edu.br
250 2.1.5 OK
data
354 End data with <CR><LF>.<CR><LF>
subject: Teste
blabla
.
250 2.0.0 OK: queued as 71259CCA3
quit
221 2.0.0 Bye
Connection closed by foreign host
>
25/11/2014
- Configuramos o DNS:
Arquivo: /etc/network/interfaces
# The loopback network interface
auto lo eth1
iface lo inet loopback
iface eth1 inet static
address 192.168.1.21
netmask 255.255.255.0
gateway 192.168.1.1
Arquivo: /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
//Zona de pesquisa direta
zone "nopainnogain.sj.ifsc.edu.br" {
type master;
file "/etc/bind/db.nopainnogain.sj.ifsc.edu.br";
};
//Zona de pesquisa reversa
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
~
Arquivo: /etc/bind/db.nopainnogain.sj.ifsc.edu.br
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA nopainnogain.sj.ifsc.edu.br. root.napainnogain.sj.ifsc.edu.br. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS nopainnogain.
1 IN PTR roteador.nopainnogain.sj.ifsc.edu.br.
50 IN PTR vendas.nopainnogain.sj.ifsc.edu.br.
21 IN PTR nopainnogain.sj.ifsc.edu.br.
Arquivo: /etc/bind/db.192
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA nopainnogain.sj.ifsc.edu.br. root.nopainnogain.sj.ifsc.edu.br. (
100 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
nopainnogain.sj.ifsc.edu.br. IN NS nopainnogain.nopainnogain.sj.ifsc.edu.br.
nopainnogain.sj.edu.br. IN A 192.168.1.21
;@ IN A 127.0.0.1
;@ IN AAAA ::1
nopainnogain IN A 192.168.1.21
roteador IN A 192.168.1.1
vendas IN A 192.168.1.50
www IN CNAME nopainnogain.sj.ifsc.edu.br.
- Configuramos o Apache:
<html><body><h1>nopainnogain o melhor servidor</h1>
</body></html>
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/var/www/nopainnogain"
ServerName www.nopainnogain.sj.ifsc.edu.br
</virtualhost>