apos aplicar um path no servidor pfsense, meu repositório sumiu.
e agora?
para você recuperar a lista de repositório você deve ir ate o diretoria de um servidor que esta funcionado o mesmo e copiar para o servidor com problema.
a lista de repositório fica em.
/usr/local/share/pfSense/pkg/repos
e só copiar o conteúdo para o servidor com problema e tudo esta normalizado.
Google has announced new service to prevent spams and attacks to your website. They name it “NO CAPTCHA reCAPTCHA” . Google reCAPTCHA is designed to protect your website from spams and abuse.
In this tutorial i am going to show you how to integrate it into your website. For demo purpose i made one simple script. Please look at the demo.LIVE DEMODOWNLOAD
Google has deprecated the reCAPTCHA V1. We have updated the article to meet the changes of Google reCAPTCHA V2.
Very first thing you need to do is register your website on Google recaptcha to do that click here.
Login to your Google account and create the app by filling the form. Select the reCAPTCHA v2 and in that select “I am not a robot” checkbox option.
Once submit, Google will provide you following two information.
Site key
Secret key
Integrate Google reCAPTCHA in your website.
To integrate it into your website you need to put it in client side as well as in Server side. In client HTML page you need to integrate this line before <HEAD> tag.<script src=’https://www.google.com/recaptcha/api.js’ async defer></script>
And to show the widget into your form you need to put this below contact form, comment form etc.<div class=”g-recaptcha” data-sitekey=”== Your site Key ==”></div>
When the form get submit to Server, this script will send ‘g-recaptcha-response’ as a POST data. You need to verify it in order to see whether user has checked the Captcha or not.
Sample project
Here is the HTML code for the simple form with comment box and submit button. On submit of this form we will use PHP in back-end to do the Google reCAPTCHA validation.Index.html<html> <head> <title>Google recapcha demo – Codeforgeek</title> <script src=’https://www.google.com/recaptcha/api.js’ async defer></script> </head> <body> <h1>Google reCAPTHA Demo</h1> <form id=”comment_form” action=”form.php” method=”post”> <input type=”email” placeholder=”Type your email” size=”40″><br><br> <textarea name=”comment” rows=”8″ cols=”39″></textarea><br><br> <input type=”submit” name=”submit” value=”Post comment”><br><br> <div class=”g-recaptcha” data-sitekey=”=== Your site key ===”></div> </form> </body> </html>
This will generate this form.
On server side i am using PHP for now. So on Form submit request we will check the POST variable.form.php<?php $email;$comment;$captcha; if(isset($_POST[‘email’])){ $email=$_POST[‘email’]; } if(isset($_POST[‘comment’])){ $comment=$_POST[‘comment’]; } if(isset($_POST[‘g-recaptcha-response’])){ $captcha=$_POST[‘g-recaptcha-response’]; } if(!$captcha){ echo ‘<h2>Please check the the captcha form.</h2>’; exit; } $secretKey = “Put your secret key here”; $ip = $_SERVER[‘REMOTE_ADDR’]; // post request to server $url = ‘https://www.google.com/recaptcha/api/siteverify?secret=’ .urlencode($secretKey) . ‘&response=’ . urlencode($captcha); $response = file_get_contents($url); $responseKeys = json_decode($response,true); // should return JSON with success as true if($responseKeys[“success”]) { echo ‘<h2>Thanks for posting comment</h2>’; } else { echo ‘<h2>You are spammer ! Get the @$%K out</h2>’; } ?>
Este pacote inclui as importantes ferramentas para controlar o sub-sistema de rede do kernel do Linux. exemplos:
arp
ifconfig
netstat
rarp
nameif
route
Além das ferramentas, o net-tools de forma adicional contém utilitários relacionados a tipos particulares de hardware de rede como:
plipconfig
slattach
mii-tool
Além dos tipos particulares de hardware de rede, o pacote possui aspectos avançados de configuração IP, exemplos:
iptunnel
ipmaddr
As listas acima são apenas exemplificativas, ou seja, existem mais ferramentas que também fazem parte do pacote net-tools.
Instalação do pacote net-tools
Antes de realizar qualquer instalação de pacotes via apt (gerenciador de pacotes), é necessário realizar a atualização dos repositórios de pacotes com o comando: sudo apt-get update, após a atualização realize a instalação.
Para instalar o pacote net-tools no Debian 9 (Stretch) você precisa executar os seguintes comandos no terminal:
Nota: o parâmetro -y é para que o comando seja executado sem a interação com o usuário, ou seja, será executado sem a necessidade de pressionar a tecla y (yes) para dar continuidade a instalação dos pacotes.