I2P - Servidor da Web Anónimo
Guia para o Serviço da Web Anónimo no I2P
Este é o seu próprio servidor web I2P anônimo (tradicionalmente referido como um eepsite). Para servir seu próprio conteúdo, basta editar os arquivos no diretório raiz do servidor web e o site será público quando você seguir as instruções abaixo.
A diretoria raiz do servidor pode ser encontrado numa das seguintes localizações, dependendo do seu sistema operativo:
-
Linux
Instalação padrão:~/.i2p/eepsite/docroot/
Instalação de pacotes, em execução como um serviço:/var/lib/i2p/i2p-config/eepsite/docroot/
-
Windows
%LOCALAPPDATA%\I2P\eepsite\docroot\
-
Mac
/Users/(user)/Library/Application Support/i2p
No I2P, os serviços ocultos são endereçados usando um endereço Base32 terminado em ".b32.i2p", ou um Destino representado como uma cadeia de caracteres Base64 longa. O endereço Base32 pode ser usado como um nome de host, até que você registre um nome seguindo as instruções abaixo. O Destino é um pouco como um endereço IP e é mostrado no Página Configuração de Serviço Oculto.
As instruções abaixo detalham como atribuir um nome como "meusite.i2p" ao seu site e permitir o acesso de outras pessoas. Você pode acessar seu site localmente através de http://127.0.0.1:7658/.
Como configurar e anunciar o seu serviço oculto
Seu servidor web está sendo executado por padrão, mas não é acessível por outras pessoas até que você inicie o túnel de serviço oculto. Depois de iniciar o túnel do servidor Web I2P, será difícil para outras pessoas encontrarem. Ele só pode ser acessado com o Destino longo ou com o endereço Base32 mais curto (.b32.i2p), que é um hash do Destino. Você poderia apenas dizer às pessoas o endereço Destnation ou Base32, mas felizmente I2P tem um catálogo de endereços e várias maneiras fáceis de dizer às pessoas sobre seu site. Aqui estão instruções detalhadas.
- Pick a name for your website (something.i2p), using lower-case. You may wish to check first in your own router's address book to see if your name is already taken. Enter the new name for your website on the Hidden Service Configuration page where it says "Website name". This will replace the default "mysite.i2p". Also, if you would like your I2P Webserver tunnel to be automatically started when you start I2P, check the "Auto Start" box. Your website will now start every time you start your router. Be sure to click "Save".
- Click the start button for your webserver tunnel on the main Hidden Service Manager page. You should now see it listed under "Local Tunnels" on the left side of the I2P Router Console. Your website is now running.
- Highlight and copy the entire Local destination on the Hidden Service Configuration page. Make sure you copy the whole thing, it is over 500 characters.
- Insira o nome e cole o destino no0seu livro de endereços. Clique em "Adicionar" para guardar uma nova entrada.
- No seu navegador, insira o nome do seu site da Web (algo.i2p) e e deveria estar de volta aqui. Esperamos que tenha funcionado!
- Before you tell the world about your new website, you should add some content. Go to the server's root directory listed above and replace the index.html redirect page with your own content.
Directory listings are enabled, so you may host files from a subdirectory without providing a page with links to the files. You may change the appearance of the directory by supplying an edited jetty-dir.css file for each directory. The lib subdirectory demonstrates a custom style. The resources subdirectory demonstrates the default style. If you need a template for a basic site, feel free to adapt this page and associated content.
Se você retornar a esta página depois de editar o conteúdo, tente limpar o cache da Web do navegador:
- Firefox: Opções ➜ Privacidade e Segurança ➜ Cookies e Dados de Site ➜ Limpar Dados... ➜ Conteúdo Web em Cache ➜ Limpar
- Chrome/Chromium: Definições ➜ Avançadas ➜ Privacidade e Segurança ➜ Limpar dados de navegação
- Opera: Definições ➜ Privacidade e Sgeurança ➜ Privacidade ➜ Limpar dados de navegação
Registe o seu próprio Domínio .I2P
Now it is time to add your website to an I2P address book hosted by a site such as stats.i2p. You must enter your website name and Destination (or Registration Authentication string) on one or more of these sites.
Some registration sites require the Destination. If so, highlight and copy the entire Local destination on the Hidden Service Configuration page. Make sure you copy the whole thing, it is over 500 characters.
Some registration sites, including stats.i2p, require the Registration Authentication string. It is found on the Registration Authentication page linked from the Hidden Service configuration page. Copy the entire authentication string and paste it on the registration page. Make sure you copy the whole thing, it is over 500 characters. Describe your site briefly if the site requests this information. If your site is a HTTP service, leave the checkbox selected; if not, unselect it.
For all registration sites, read through the Terms of Service carefully. Click the "Submit" button. Verify the submission was successful. Since many routers periodically get address book updates from these sites, within several hours others will be able to find your website by simply entering your hostname in their browser.
Adicionar Subscrições de Livro de Endereços
Speaking of address book updates, this would be a good time to add some more addressbooks to your own subscription list. Go to your Subscriptions Configuration page and add one or more for an automatically updated list of new hosts:
-
http://stats.i2p/cgi-bin/newhosts.txt
(stats.i2p)
If you are in a hurry and can't wait a few hours, you can tell people to use a "jump" address helper redirection service.
This will work within a few minutes of your registering your hostname on the same site.
Test it yourself first by entering http://stats.i2p/cgi-bin/jump.cgi?a=something.i2p
into your browser.
Once it is working, you can tell others to use it.
Some people check website lists such as Identiguy's eepsite status list or no.i2p's active host list for new eepsites, so your site may start getting some traffic. There are plenty of other ways to tell people. Here are a few ideas:
- Publique uma mensagem no fórum I2P para dizer a todos sobre o seu novo site da Web I2P!
- Diga às pessoas sobre ele nos canais #i2p ou #i2p-chat no IRC.
- Coloque-o na I2PWiki Índex Eepsite
Note that some sites recommend pasting in that really long destination. You can if you want, but if you have successfully registered your hostname on a registration service, tested it using a jump service, and waited 24 hours for the address book update to propagate to others, that shouldn't be necessary.
Utilizar um servidor da Web alternativo para alojar o seu site
This site (and the I2P router console) is running on the Jetty webserver, but you may wish to use a different webserver to host your content. To maintain anonymity, be sure that your webserver is configured to only allow connections from localhost (127.0.0.1), and check the documentation to ensure your webserver isn't advertising details that may compromise your anonymity.
To configurar seu servidor web para uso em I2P, você pode usar o túnel do servidor web existente e Desabilitar o servidor Web padrão da execução ou crie um novo túnel do servidor HTTP no Gerenciador de Serviços Ocultos. Verifique se a porta de escuta configurada para o servidor Web (7658 por padrão) também está configurada nas configurações de Serviços Ocultos. Por exemplo, se o servidor web estiver escutando por padrão na porta 80 do endereço 127.0.0.1, você também precisará garantir que a porta de destino na página de configurações ocultas do Service Manager para o serviço também esteja configurada para a porta 80.
Cuidado que um servidor web mal configurado ou aplicação web pode vazar informações potencialmente comprometedoras, como seu endereço IP real ou detalhes do servidor que podem reduzir seu anonimato ou ajudar um hacker. Recomendamos usar o servidor padrão, a menos que você se sinta confortável em fazer a administração do servidor. Certifique-se de que seu servidor web esteja seguro antes de colocá-lo on-line. Há uma abundância de guias on-line, por exemplo, se você procurar por "nginx security hardening guide" você encontrará uma série de guias que têm boas recomendações.
Há um problema importante com o servidor web Apache. O mod_status
e mod_info
Os módulos Apache são ativados por padrão em alguns sistemas operacionais. Esses módulos expõem dados internos que podem levar a sérios comprometimentos do anonimato quando usados em uma rede anônima. Remover as linhas no arquivo de configuração onde esses módulos são carregados é a maneira mais fácil de evitar esses problemas.
Mais Assistência
Se tiver quaisquer questões, os seguintes locais estão disponíveis para suporte:
- O nosso canal IRC de suporte:
- #i2p no Freenode
- A utilizar anonimamente o seu túnel de IRC I2P local.
- O fórum do projeto i2pforum.i2p.
- I2PWiki Guia de Alojamento Eepsite