[Admin] tierrilopes Posted December 23, 2015 at 09:20 PM Share Posted December 23, 2015 at 09:20 PM 1- Fazer login no servidor 2- Utilizar o gerador de firewall (link em baixo) e colocar o ficheiro ipfw.rules gerado na seguinte localização: /usr/local/etc/ipfw.rules Ficheiro em anexo. 3- Correr os seguintes comandos para ativar a firewall e as regras: sysrc 'firewall_enable="YES"' sysrc 'firewall_script="/usr/local/etc/ipfw.rules"' service ipfw start Link: Gerador de firewall Link to comment Share on other sites More sharing options...
Guest Gamers Posted November 14, 2016 at 11:26 PM Share Posted November 14, 2016 at 11:26 PM Ao ativar o firewall o navicat nem o apache24 funciona mais, alguém sabe me dizer? Link to comment Share on other sites More sharing options...
Dynamic Things Posted February 6, 2017 at 11:17 AM Share Posted February 6, 2017 at 11:17 AM Ao ativar o firewall o navicat nem o apache24 funciona mais, alguém sabe me dizer? $IPF 680 allow tcp from any to any PortaNavicat in #3306 $IPF 690 allow tcp from any to any PortaNavicat out #3306 $IPF 700 allow udp from any to any PortaNavicat in #3306 $IPF 710 allow udp from any to any PortaNavicat out #3306 Não tenho a certeza se é preciso dar permissões tcp/udp ou somente tcp mas pelo sim e pelo não deixo ai os dois, fazer a mesma coisa para a porta 80 para o apache poder funcionar. $IPF 680 allow tcp from any to any 80 in $IPF 690 allow tcp from any to any 80 out $IPF 700 allow udp from any to any 80 in $IPF 710 allow udp from any to any 80 out Link to comment Share on other sites More sharing options...
Red Posted February 20, 2017 at 01:50 PM Share Posted February 20, 2017 at 01:50 PM O que é que isto vai realmente possibilitar ao servidor , qual as principais funções onde se deve utilizar este tutorial ? Link to comment Share on other sites More sharing options...
Sinval Posted February 20, 2017 at 02:55 PM Share Posted February 20, 2017 at 02:55 PM O que é que isto vai realmente possibilitar ao servidor , qual as principais funções onde se deve utilizar este tutorial ? - Firewall é usado para segurança do sistema, você pode configura-lo para filtrar tráfego e assim 'bloquear' ataques, aonde você cria 'regras', dá para fazer bastante coisas, e aumentar a performance e segurança usando-o, desde que use corretamente. Mais info Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted September 28, 2017 at 10:51 PM Author Share Posted September 28, 2017 at 10:51 PM Atualizado. Link to comment Share on other sites More sharing options...
LuizFernando Posted December 15, 2017 at 02:50 PM Share Posted December 15, 2017 at 02:50 PM Tierri, após fazer esse tutorial atualizado. Ao dar o comando "service ipfw start", a maquina não liga mas. Sabe o por que? Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted December 15, 2017 at 04:47 PM Author Share Posted December 15, 2017 at 04:47 PM Colocaste ficheiro na localização escrita acima? Link to comment Share on other sites More sharing options...
LuizFernando Posted December 15, 2017 at 04:58 PM Share Posted December 15, 2017 at 04:58 PM 10 minutos atrás, Tierri Lopes disse: Colocaste ficheiro na localização escrita acima? Sim Link to comment Share on other sites More sharing options...
trample Posted December 15, 2017 at 08:25 PM Share Posted December 15, 2017 at 08:25 PM depende da onde e qal maquina vc usa no meu caso ele ja esta ativado porem tive qe abrir as portas Link to comment Share on other sites More sharing options...
LuizFernando Posted February 6, 2018 at 06:23 PM Share Posted February 6, 2018 at 06:23 PM Mê da o seguinte erro: Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted February 6, 2018 at 06:49 PM Author Share Posted February 6, 2018 at 06:49 PM Instalei numa vps que aqui tinha parada, sem erros alguns. Fizeste download ou copiaste e criaste o ficheiro? Link to comment Share on other sites More sharing options...
LuizFernando Posted February 6, 2018 at 06:54 PM Share Posted February 6, 2018 at 06:54 PM Fiz tudo certo, porém irei tentar novamente. Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted February 6, 2018 at 08:04 PM Author Share Posted February 6, 2018 at 08:04 PM Nota, caso estejas a colocar numa vps que tenha firewall por painel web (por exemplo na Hetzner), a instalação da ipfw pode não funcionar pois a mesma está alterada para ser controlada por esse mesmo painel. Caso continue a dar esses erros, ao invés de fazer download, copia tudo e cria tu o ficheiro, tendo em atenção se os fins de linha estão em UNIX e não em modo WINDOWS (notepad++, Editar, Conversão EOL) Link to comment Share on other sites More sharing options...
Sil3nce Posted March 14, 2018 at 01:40 PM Share Posted March 14, 2018 at 01:40 PM I just suggest to NEVER push firewall_enable="YES" before you have test that rules are OK. So...on /etc/conf add firewall_enable="NO" firewall_type="open" firewall_script="/etc/ipfw.rules" firewall_logging="YES" After start the firewall service ipfw onestart Now test if ALL is ok. If not, just reboot the machine... if ALL is ok, you can switch firewall_enable="NO" to "YES". Link to comment Share on other sites More sharing options...
Dynamic Things Posted April 14, 2018 at 01:24 AM Share Posted April 14, 2018 at 01:24 AM Em 14/03/2018 em 13:40, Sil3nce disse: I just suggest to NEVER push firewall_enable="YES" before you have test that rules are OK. So...on /etc/conf add firewall_enable="NO" firewall_type="open" firewall_script="/etc/ipfw.rules" firewall_logging="YES" After start the firewall service ipfw onestart Now test if ALL is ok. If not, just reboot the machine... if ALL is ok, you can switch firewall_enable="NO" to "YES". Agree but, you can also user " service ipfw onestart && sleep 60 && service ipfw onestop " to test if ipfw.rules is ok, and if is not, it will be unnecessary to restart the machine, because starting this way will activate the firewall rules for only 60 seconds and then disconnect the ipwf rules after that, thx for your comment! Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted May 3, 2018 at 12:07 PM Author Share Posted May 3, 2018 at 12:07 PM On 3/14/2018 at 1:40 PM, Sil3nce said: I just suggest to NEVER push firewall_enable="YES" before you have test that rules are OK. Added auto-testing to the serverfiles generator script. Link to comment Share on other sites More sharing options...
Karbust Posted July 18, 2018 at 04:01 PM Share Posted July 18, 2018 at 04:01 PM Como posso adicionar um DNS? Eu quero que o meu computador tenha acesso livre e ilimitado, mas o meu IP é dinâmico, como posso usar um endereço tipo os do NoIP? Já agora, para que é a porta 53 aberta? Esta linha: $IPF 2230 deny all from any to me $port Também é válida para conexões UDP? Link to comment Share on other sites More sharing options...
Recommended Posts