Mudanças entre as edições de "Projeto Integrador - 2011.1 - Bigodes"
Ir para navegação
Ir para pesquisar
Linha 42: | Linha 42: | ||
==Configurações DNS. == | ==Configurações DNS. == | ||
− | ''' | + | '''Arquivo /etc/bind/named.conf.local''' |
// | // | ||
// Do any local configuration here | // Do any local configuration here | ||
Linha 57: | Linha 57: | ||
zone "37.135.200.in-addr.arpa" { | zone "37.135.200.in-addr.arpa" { | ||
type master; | type master; | ||
− | file "/etc/bind/ | + | file "/etc/bind/zonareversa.zone"; |
}; | }; | ||
zone "webmail.bigodes.sj.ifsc.edu.br" IN { | zone "webmail.bigodes.sj.ifsc.edu.br" IN { | ||
Linha 72: | Linha 72: | ||
}; | }; | ||
− | ''' | + | '''Aquivo /etc/bind/bigodes.zone''' |
$TTL 86400 | $TTL 86400 | ||
Linha 89: | Linha 89: | ||
mail A 200.135.37.101 | mail A 200.135.37.101 | ||
− | '''Arquivo de configuração da ZONA REVERSA /etc/bind/ | + | '''Arquivo de configuração da ZONA REVERSA /etc/bind/zonareversa.zone''' |
+ | $TTL 86400 | ||
+ | @ IN SOA m.bigodes.sj.ifsc.edu.br. root ( | ||
+ | 2011061500 ; | ||
+ | 1d ; | ||
+ | 1h ; | ||
+ | 1w ; | ||
+ | 1d ; ) | ||
+ | IN NS m.bigodes.sj.ifsc.edu.br. | ||
+ | 100 IN PTR m.bigodes.sj.ifsc.edu.br. | ||
'''Configuração cliente: /etc/bind/oi.zone''' | '''Configuração cliente: /etc/bind/oi.zone''' | ||
Linha 106: | Linha 115: | ||
www A 200.135.37.101 | www A 200.135.37.101 | ||
mail A 200.135.37.101 | mail A 200.135.37.101 | ||
+ | |||
+ | '''Arquivo /etc/network/interfaces''' | ||
+ | # This file describes the network interfaces available on your system | ||
+ | # and how to activate them. For more information, see interfaces(5). | ||
+ | # The loopback network interface | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | # The primary network interface | ||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 200.135.37.101 | ||
+ | netmask 255.255.255.192 | ||
+ | gateway 200.135.37.126 | ||
+ | |||
+ | '''Arquivo /etc/resolv.conf''' | ||
+ | domain bigodes.sj.ifsc.edu.br | ||
+ | search bigodes.sj.ifsc.edu.br | ||
+ | nameserver 200.135.37.101 | ||
+ | |||
+ | ==Configurações Postfix == | ||
+ | '''Configuração no arquivo /etc/postfix/main.cf''' | ||
+ | |||
+ | # See /usr/share/postfix/main.cf.dist for a commented, more complete version | ||
+ | # Debian specific: Specifying a file name will cause the first | ||
+ | # line of that file to be used as the name. The Debian default | ||
+ | # is /etc/mailname. | ||
+ | #myorigin = /etc/mailname | ||
+ | smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) | ||
+ | biff = no | ||
+ | # appending .domain is the MUA's job. | ||
+ | append_dot_mydomain = no | ||
+ | # Uncomment the next line to generate "delayed mail" warnings | ||
+ | #delay_warning_time = 4h | ||
+ | readme_directory = no | ||
+ | # TLS parameters | ||
+ | smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem | ||
+ | smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key | ||
+ | smtpd_use_tls=yes | ||
+ | smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache | ||
+ | smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache | ||
+ | # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for | ||
+ | # information on enabling SSL in the smtp client. | ||
+ | myhostname = m.bigodes.sj.ifsc.edu.br | ||
+ | mydomain = bigodes.sj.ifsc.edu.br | ||
+ | alias_maps = hash:/etc/aliases | ||
+ | alias_database = hash:/etc/aliases | ||
+ | myorigin = $myhostname | ||
+ | mydestination = $myhostname | ||
+ | mynetworks_style = subnet | ||
+ | relayhost = | ||
+ | mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | ||
+ | mailbox_size_limit = 0 | ||
+ | recipient_delimiter = + | ||
+ | inet_interfaces = all | ||
+ | # Para o cliente ter email cliente@subdominio.bigodes.sj.ifsc.edu.br | ||
+ | best_mx_transport = local | ||
+ | virtual_alias_domains = hash:/etc/postfix/mydomains | ||
+ | virtual_alias_maps = hash:/etc/postfix/virtual | ||
+ | #mydestination = $myhostname, $virtual_alias_domains | ||
+ | home_mailbox = Maildir/ |
Edição das 11h49min de 10 de julho de 2011
Equipe Bigodes
- Ademir de Souza
- Amarildo Junior
- Augusto Buttemberg
- Daniel Arndt
- Evandro Schutz
- Maicon Guesser
1º Dia - 13/06/2011
- Formatamos o nosso servidor, e efetuamos as configurações básicas referentes aos IPs provisórios (rede, rota, DNS);
- Instalamos o SSH na máquina, e instalamos o equipamento no RAC.
2º Dia - 14/06/2011
- Diagnosticado o problema de bateria da BIOS. Onde o servidor não iniciava com as configurações salvas, sendo que toda vez que subir o servidor configurar o teclado.
- Efetuado a ligação dos ramais no patch panel, e identificamos a ligação do cabeamento entre o laboratório de meios e o laboratório de redes 1.
- Inciamos a configuração do DNS "bind9".
3º Dia - 15/06/2011
- Dividimos a equipe em subequipes. Tendo os alunos Ademir e Augusto, para efetuar o trabalho de IER, configurando comunicação de ponto a ponto dos modens.
- Em primeiro momento como tínhamos diagnosticado um problema na bateria da BIOS, então foi comprada uma nova e efetuada a substituição.
- Os alunos Amarildo, Daniel Arndt e Evandro continuaram a configuração do DNS. Efetuado alguns testes para comprovar o funcionamento.
- Configurado IP válido para o servidor.
4º Dia - 16/06/2011
- Iniciamos a configuração das paginas em PHP, e a integração com o MySQL.
5º Dia 17/06/2011
- Instalação dos modens entre a Sala Redes 1 e sala Meios, estabelecido a comunicação ponto a ponto do modens entre os roteadores e inicio da configuração
do DSLAN.
6º Dia - 20/06/2011
- Continuamos a configuração em paginas PHP, Iniciamos a criação de Scripts em bash para criar e direcionar arquivos que configure o DNS do cliente.
7º Dia - 21/06/2011
- A equipe continua na configuração das paginas em PHP e na resolução dos Scripts em Bash, para direcionar os arquivos de criação do DNS dos clientes.
Configurações DNS.
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"; zone "bigodes.sj.ifsc.edu.br" IN { type master; file "/etc/bind/bigodes.zone"; allow-update { none; }; allow-transfer { 200.135.37.126; }; }; zone "37.135.200.in-addr.arpa" { type master; file "/etc/bind/zonareversa.zone"; }; zone "webmail.bigodes.sj.ifsc.edu.br" IN { type master; file "/etc/bind/webmail.zone"; }; // //SUBDOMINIOS // //oi zone "oi.bigodes.sj.ifsc.edu.br" IN { type master; file "/etc/bind/oi.zone"; };
Aquivo /etc/bind/bigodes.zone
$TTL 86400 @ IN SOA m.bigodes.sj.ifsc.edu.br. root ( 2011061400 ;serial 3H ;refresh 15M ;retry 1W ;expiry 1D) ;minimum IN NS m.bigodes.sj.ifsc.edu.br. IN MX 0 m.bigodes.sj.ifsc.edu.br. localhost IN CNAME bigodes.sj.ifsc.edu.br. $ORIGIN bigodes.sj.ifsc.edu.br. m A 200.135.37.101 www A 200.135.37.101 mail A 200.135.37.101
Arquivo de configuração da ZONA REVERSA /etc/bind/zonareversa.zone
$TTL 86400 @ IN SOA m.bigodes.sj.ifsc.edu.br. root ( 2011061500 ; 1d ; 1h ; 1w ; 1d ; ) IN NS m.bigodes.sj.ifsc.edu.br. 100 IN PTR m.bigodes.sj.ifsc.edu.br.
Configuração cliente: /etc/bind/oi.zone
$TTL 86400 @ IN SOA m.bigodes.sj.ifsc.edu.br bigodes ( 2011070874 ;serial 3H ;refresh 15M ;retry 1W ;expiry 1D) ;minimum IN NS m.oi.bigodes.sj.ifsc.edu.br. IN MX 0 m.oi.bigodes.sj.ifsc.edu.br. localhost IN A 127.0.0.1 $ORIGIN oi.bigodes.sj.ifsc.edu.br. m A 200.135.37.101 www A 200.135.37.101 mail A 200.135.37.101
Arquivo /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 200.135.37.101 netmask 255.255.255.192 gateway 200.135.37.126
Arquivo /etc/resolv.conf
domain bigodes.sj.ifsc.edu.br search bigodes.sj.ifsc.edu.br nameserver 200.135.37.101
Configurações Postfix
Configuração no arquivo /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = m.bigodes.sj.ifsc.edu.br mydomain = bigodes.sj.ifsc.edu.br alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = $myhostname mydestination = $myhostname mynetworks_style = subnet relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all # Para o cliente ter email cliente@subdominio.bigodes.sj.ifsc.edu.br best_mx_transport = local virtual_alias_domains = hash:/etc/postfix/mydomains virtual_alias_maps = hash:/etc/postfix/virtual #mydestination = $myhostname, $virtual_alias_domains home_mailbox = Maildir/