RonanC Postado Fevereiro 27, 2015 Compartilhar Postado Fevereiro 27, 2015 Boa tarde pessoal, a um tempo atrás um amigo postou um excelente tutorial que eu vinha usando faz tempo aqui Porém de uns tempos pra cá começou a dar erro, e agora o script bloqueou todas as portas para todos os Ips, quando deveria deixar acesso somente aos ips listados no arquivo txt. Será que alguém poderia ajudar? 0 Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pedro Sodre Postado Fevereiro 27, 2015 Compartilhar Postado Fevereiro 27, 2015 Existe no CSF dois campos que você pode usar: CC_DENY ou CC_ALLOW_FILTER. No seu caso o CC_ALLOW_FILTER é recomendado. Apenas pesquise esse campo e insira a "palavra" BR. 0 Citar Link para o comentário Compartilhar em outros sites More sharing options...
Eth1 Postado Fevereiro 27, 2015 Compartilhar Postado Fevereiro 27, 2015 bloqueia todas as ranges ai fera coloca isso no csf.deny Lembrando que se seu server for eua remove a ranger dele! ou vai dar pau na bagaça! 1.0.0.0/8 1.0.0.0/8 1.0.0.0/8 2.0.0.0/8 2.0.0.0/8 2.0.0.0/8 3.0.0.0/8 3.0.0.0/8 3.0.0.0/8 4.0.0.0/8 4.0.0.0/8 4.0.0.0/8 5.0.0.0/8 5.0.0.0/8 5.0.0.0/8 6.0.0.0/8 6.0.0.0/8 6.0.0.0/8 7.0.0.0/8 7.0.0.0/8 7.0.0.0/8 8.0.0.0/8 8.0.0.0/8 8.0.0.0/8 9.0.0.0/8 9.0.0.0/8 9.0.0.0/8 10.0.0.0/8 10.0.0.0/8 10.0.0.0/8 11.0.0.0/8 11.0.0.0/8 11.0.0.0/8 12.0.0.0/8 12.0.0.0/8 12.0.0.0/8 13.0.0.0/8 13.0.0.0/8 13.0.0.0/8 14.0.0.0/8 14.0.0.0/8 14.0.0.0/8 15.0.0.0/8 15.0.0.0/8 15.0.0.0/8 16.0.0.0/8 16.0.0.0/8 16.0.0.0/8 17.0.0.0/8 17.0.0.0/8 17.0.0.0/8 18.0.0.0/8 18.0.0.0/8 18.0.0.0/8 19.0.0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 53.0.0.0/8 53.0.0.0/8 54.0.0.0/8 54.0.0.0/8 54.0.0.0/8 55.0.0.0/8 55.0.0.0/8 55.0.0.0/8 56.0.0.0/8 56.0.0.0/8 56.0.0.0/8 57.0.0.0/8 57.0.0.0/8 57.0.0.0/8 58.0.0.0/8 58.0.0.0/8 58.0.0.0/8 59.0.0.0/8 59.0.0.0/8 59.0.0.0/8 60.0.0.0/8 60.0.0.0/8 60.0.0.0/8 61.0.0.0/8 61.0.0.0/8 61.0.0.0/8 62.0.0.0/8 62.0.0.0/8 62.0.0.0/8 63.0.0.0/8 63.0.0.0/8 63.0.0.0/8 64.0.0.0/8 64.0.0.0/8 64.0.0.0/8 65.0.0.0/8 65.0.0.0/8 65.0.0.0/8 66.0.0.0/8 66.0.0.0/8 66.0.0.0/8 67.0.0.0/8 67.0.0.0/8 67.0.0.0/8 68.0.0.0/8 68.0.0.0/8 68.0.0.0/8 69.0.0.0/8 69.0.0.0/8 69.0.0.0/8 70.0.0.0/8 70.0.0.0/8 70.0.0.0/8 71.0.0.0/8 71.0.0.0/8 71.0.0.0/8 72.0.0.0/8 72.0.0.0/8 72.0.0.0/8 73.0.0.0/8 73.0.0.0/8 73.0.0.0/8 74.0.0.0/8 74.0.0.0/8 74.0.0.0/8 75.0.0.0/8 75.0.0.0/8 75.0.0.0/8 76.0.0.0/8 76.0.0.0/8 76.0.0.0/8 77.0.0.0/8 77.0.0.0/8 77.0.0.0/8 78.0.0.0/8 78.0.0.0/8 78.0.0.0/8 79.0.0.0/8 79.0.0.0/8 79.0.0.0/8 80.0.0.0/8 80.0.0.0/8 80.0.0.0/8 81.0.0.0/8 81.0.0.0/8 81.0.0.0/8 82.0.0.0/8 82.0.0.0/8 82.0.0.0/8 83.0.0.0/8 83.0.0.0/8 83.0.0.0/8 84.0.0.0/8 84.0.0.0/8 84.0.0.0/8 85.0.0.0/8 85.0.0.0/8 85.0.0.0/8 86.0.0.0/8 86.0.0.0/8 86.0.0.0/8 87.0.0.0/8 87.0.0.0/8 87.0.0.0/8 88.0.0.0/8 88.0.0.0/8 88.0.0.0/8 89.0.0.0/8 89.0.0.0/8 89.0.0.0/8 90.0.0.0/8 90.0.0.0/8 90.0.0.0/8 91.0.0.0/8 91.0.0.0/8 91.0.0.0/8 92.0.0.0/8 92.0.0.0/8 92.0.0.0/8 93.0.0.0/8 93.0.0.0/8 93.0.0.0/8 94.0.0.0/8 94.0.0.0/8 94.0.0.0/8 95.0.0.0/8 95.0.0.0/8 95.0.0.0/8 96.0.0.0/8 96.0.0.0/8 96.0.0.0/8 97.0.0.0/8 97.0.0.0/8 97.0.0.0/8 98.0.0.0/8 98.0.0.0/8 98.0.0.0/8 99.0.0.0/8 99.0.0.0/8 99.0.0.0/8 100.0.0.0/8 100.0.0.0/8 100.0.0.0/8 101.0.0.0/8 101.0.0.0/8 101.0.0.0/8 102.0.0.0/8 102.0.0.0/8 102.0.0.0/8 103.0.0.0/8 103.0.0.0/8 103.0.0.0/8 105.0.0.0/8 105.0.0.0/8 105.0.0.0/8 106.0.0.0/8 106.0.0.0/8 106.0.0.0/8 107.0.0.0/8 107.0.0.0/8 107.0.0.0/8 108.0.0.0/8 108.0.0.0/8 108.0.0.0/8 109.0.0.0/8 109.0.0.0/8 109.0.0.0/8 110.0.0.0/8 110.0.0.0/8 110.0.0.0/8 111.0.0.0/8 111.0.0.0/8 111.0.0.0/8 112.0.0.0/8 112.0.0.0/8 112.0.0.0/8 113.0.0.0/8 113.0.0.0/8 113.0.0.0/8 114.0.0.0/8 114.0.0.0/8 114.0.0.0/8 115.0.0.0/8 115.0.0.0/8 115.0.0.0/8 116.0.0.0/8 116.0.0.0/8 116.0.0.0/8 117.0.0.0/8 117.0.0.0/8 117.0.0.0/8 118.0.0.0/8 118.0.0.0/8 118.0.0.0/8 119.0.0.0/8 119.0.0.0/8 119.0.0.0/8 120.0.0.0/8 120.0.0.0/8 120.0.0.0/8 121.0.0.0/8 121.0.0.0/8 121.0.0.0/8 122.0.0.0/8 122.0.0.0/8 122.0.0.0/8 123.0.0.0/8 123.0.0.0/8 123.0.0.0/8 124.0.0.0/8 124.0.0.0/8 124.0.0.0/8 125.0.0.0/8 125.0.0.0/8 125.0.0.0/8 126.0.0.0/8 126.0.0.0/8 126.0.0.0/8 128.0.0.0/8 128.0.0.0/8 128.0.0.0/8 129.0.0.0/8 129.0.0.0/8 129.0.0.0/8 130.0.0.0/8 130.0.0.0/8 130.0.0.0/8 133.0.0.0/8 133.0.0.0/8 133.0.0.0/8 134.0.0.0/8 134.0.0.0/8 134.0.0.0/8 135.0.0.0/8 135.0.0.0/8 135.0.0.0/8 136.0.0.0/8 136.0.0.0/8 136.0.0.0/8 137.0.0.0/8 137.0.0.0/8 137.0.0.0/8 139.0.0.0/8 139.0.0.0/8 139.0.0.0/8 140.0.0.0/8 140.0.0.0/8 140.0.0.0/8 141.0.0.0/8 141.0.0.0/8 141.0.0.0/8 142.0.0.0/8 142.0.0.0/8 142.0.0.0/8 144.0.0.0/8 144.0.0.0/8 144.0.0.0/8 145.0.0.0/8 145.0.0.0/8 145.0.0.0/8 148.0.0.0/8 148.0.0.0/8 148.0.0.0/8 149.0.0.0/8 149.0.0.0/8 149.0.0.0/8 151.0.0.0/8 151.0.0.0/8 151.0.0.0/8 153.0.0.0/8 153.0.0.0/8 153.0.0.0/8 154.0.0.0/8 154.0.0.0/8 154.0.0.0/8 156.0.0.0/8 156.0.0.0/8 156.0.0.0/8 158.0.0.0/8 158.0.0.0/8 158.0.0.0/8 159.0.0.0/8 159.0.0.0/8 159.0.0.0/8 160.0.0.0/8 160.0.0.0/8 160.0.0.0/8 162.0.0.0/8 162.0.0.0/8 162.0.0.0/8 163.0.0.0/8 163.0.0.0/8 163.0.0.0/8 165.0.0.0/8 165.0.0.0/8 165.0.0.0/8 166.0.0.0/8 166.0.0.0/8 166.0.0.0/8 167.0.0.0/8 167.0.0.0/8 167.0.0.0/8 168.0.0.0/8 168.0.0.0/8 168.0.0.0/8 169.0.0.0/8 169.0.0.0/8 169.0.0.0/8 171.0.0.0/8 171.0.0.0/8 171.0.0.0/8 172.0.0.0/8 172.0.0.0/8 172.0.0.0/8 173.0.0.0/8 173.0.0.0/8 173.0.0.0/8 174.0.0.0/8 174.0.0.0/8 174.0.0.0/8 175.0.0.0/8 175.0.0.0/8 175.0.0.0/8 176.0.0.0/8 176.0.0.0/8 176.0.0.0/8 178.0.0.0/8 178.0.0.0/8 178.0.0.0/8 180.0.0.0/8 180.0.0.0/8 180.0.0.0/8 182.0.0.0/8 182.0.0.0/8 182.0.0.0/8 183.0.0.0/8 183.0.0.0/8 183.0.0.0/8 184.0.0.0/8 184.0.0.0/8 184.0.0.0/8 185.0.0.0/8 185.0.0.0/8 185.0.0.0/8 188.0.0.0/8 188.0.0.0/8 188.0.0.0/8 193.0.0.0/8 193.0.0.0/8 193.0.0.0/8 194.0.0.0/8 194.0.0.0/8 194.0.0.0/8 195.0.0.0/8 195.0.0.0/8 195.0.0.0/8 196.0.0.0/8 196.0.0.0/8 196.0.0.0/8 197.0.0.0/8 197.0.0.0/8 197.0.0.0/8 199.0.0.0/8 199.0.0.0/8 199.0.0.0/8 202.0.0.0/8 202.0.0.0/8 202.0.0.0/8 203.0.0.0/8 203.0.0.0/8 203.0.0.0/8 204.0.0.0/8 204.0.0.0/8 204.0.0.0/8 205.0.0.0/8 205.0.0.0/8 205.0.0.0/8 206.0.0.0/8 206.0.0.0/8 206.0.0.0/8 207.0.0.0/8 207.0.0.0/8 207.0.0.0/8 208.0.0.0/8 208.0.0.0/8 208.0.0.0/8 209.0.0.0/8 209.0.0.0/8 209.0.0.0/8 210.0.0.0/8 210.0.0.0/8 210.0.0.0/8 211.0.0.0/8 211.0.0.0/8 211.0.0.0/8 212.0.0.0/8 212.0.0.0/8 212.0.0.0/8 213.0.0.0/8 213.0.0.0/8 213.0.0.0/8 214.0.0.0/8 214.0.0.0/8 214.0.0.0/8 215.0.0.0/8 215.0.0.0/8 215.0.0.0/8 216.0.0.0/8 216.0.0.0/8 216.0.0.0/8 217.0.0.0/8 217.0.0.0/8 217.0.0.0/8 218.0.0.0/8 218.0.0.0/8 218.0.0.0/8 219.0.0.0/8 219.0.0.0/8 219.0.0.0/8 220.0.0.0/8 220.0.0.0/8 220.0.0.0/8 221.0.0.0/8 221.0.0.0/8 221.0.0.0/8 222.0.0.0/8 222.0.0.0/8 222.0.0.0/8 223.0.0.0/8 223.0.0.0/8 223.0.0.0/8 224.0.0.0/8 224.0.0.0/8 224.0.0.0/8 225.0.0.0/8 225.0.0.0/8 225.0.0.0/8 226.0.0.0/8 226.0.0.0/8 226.0.0.0/8 227.0.0.0/8 227.0.0.0/8 227.0.0.0/8 228.0.0.0/8 228.0.0.0/8 228.0.0.0/8 229.0.0.0/8 229.0.0.0/8 229.0.0.0/8 230.0.0.0/8 230.0.0.0/8 230.0.0.0/8 231.0.0.0/8 231.0.0.0/8 231.0.0.0/8 232.0.0.0/8 232.0.0.0/8 232.0.0.0/8 233.0.0.0/8 233.0.0.0/8 233.0.0.0/8 234.0.0.0/8 234.0.0.0/8 234.0.0.0/8 235.0.0.0/8 235.0.0.0/8 235.0.0.0/8 236.0.0.0/8 236.0.0.0/8 236.0.0.0/8 237.0.0.0/8 237.0.0.0/8 237.0.0.0/8 238.0.0.0/8 238.0.0.0/8 238.0.0.0/8 239.0.0.0/8 239.0.0.0/8 239.0.0.0/8 240.0.0.0/8 240.0.0.0/8 240.0.0.0/8 241.0.0.0/8 241.0.0.0/8 241.0.0.0/8 242.0.0.0/8 242.0.0.0/8 242.0.0.0/8 243.0.0.0/8 243.0.0.0/8 243.0.0.0/8 244.0.0.0/8 244.0.0.0/8 244.0.0.0/8 245.0.0.0/8 245.0.0.0/8 245.0.0.0/8 246.0.0.0/8 246.0.0.0/8 246.0.0.0/8 247.0.0.0/8 247.0.0.0/8 247.0.0.0/8 248.0.0.0/8 248.0.0.0/8 248.0.0.0/8 249.0.0.0/8 249.0.0.0/8 249.0.0.0/8 250.0.0.0/8 250.0.0.0/8 250.0.0.0/8 251.0.0.0/8 251.0.0.0/8 251.0.0.0/8 252.0.0.0/8 252.0.0.0/8 252.0.0.0/8 253.0.0.0/8 253.0.0.0/8 253.0.0.0/8 254.0.0.0/8 254.0.0.0/8 254.0.0.0/8 255.0.0.0/8 255.0.0.0/8 255.0.0.0/8 0 Citar Link para o comentário Compartilhar em outros sites More sharing options...
RonanC Postado Março 25, 2015 Autor Compartilhar Postado Março 25, 2015 Na verdade eu queria que o cara que postou o script brasilhosp desse uma ajuda, pois o script [e dele, e o script é muito bom! porem parou de funcionar... eu quero fechar somente as portas do whm, cpanel e webmail, ssh, e ftp pro resto do mundo. tava funcionando muito bem, mas o script parou de funcionar não sei se foi pq o csf atualizou pra nova versão não sei. eu mantinha a lista de ips do brasil em txt atualizada e ele usava essa lista pra permitir as conexoes, muito bom! Foi o Jordan Miguel que postou o scrit Se o autor do script puder ajudar, agradeço 0 Citar Link para o comentário Compartilhar em outros sites More sharing options...
Jorge Marcelino Postado Março 26, 2015 Compartilhar Postado Março 26, 2015 @RonanC Talvez seja isso: https://central.hostseries.com.br/knowledgebase.php?action=displayarticle&id=74 Lembrando que alí, foi o exemplo da porta do FTP, basta você colocar as portas que quer fechar para o resto do mundo. 0 Citar █ www.HostSeries.com.br - Hospedagem de sites | Revenda de Hospedagem cPanel | VPS KVM SSD | Streaming | Performance Superior com discos SSD NVMe e Litespeed! Data center Tier 4 HIVELOCITY Link para o comentário Compartilhar em outros sites More sharing options...
tekobr Postado Março 26, 2015 Compartilhar Postado Março 26, 2015 @RonanC Talvez seja isso: https://central.hostseries.com.br/knowledgebase.php?action=displayarticle&id=74 Lembrando que alí, foi o exemplo da porta do FTP, basta você colocar as portas que quer fechar para o resto do mundo. Achei essa solução interessante, mas você sabe dizer se desta forma os IP's brasileiros não serão mais verificados pelo CSF no acesso a essa porta? 0 Citar Link para o comentário Compartilhar em outros sites More sharing options...
Jorge Marcelino Postado Março 26, 2015 Compartilhar Postado Março 26, 2015 @tekobr Normalmente, creio que sua dúvida seja sobre bloquear caso erre login... Sim bloqueará normal, não comprometerá na segurança. 0 Citar █ www.HostSeries.com.br - Hospedagem de sites | Revenda de Hospedagem cPanel | VPS KVM SSD | Streaming | Performance Superior com discos SSD NVMe e Litespeed! Data center Tier 4 HIVELOCITY Link para o comentário Compartilhar em outros sites More sharing options...
Leo Amarante Postado Março 26, 2015 Compartilhar Postado Março 26, 2015 @Jorge Marcelino , em termos de performance o load não aumenta ? 0 Citar Link para o comentário Compartilhar em outros sites More sharing options...
Jorge Marcelino Postado Março 26, 2015 Compartilhar Postado Março 26, 2015 @Leo Amarante Não, pelo contrário ele só vai verificar de qual país que é, a partir da requisição da porta. 0 Citar █ www.HostSeries.com.br - Hospedagem de sites | Revenda de Hospedagem cPanel | VPS KVM SSD | Streaming | Performance Superior com discos SSD NVMe e Litespeed! Data center Tier 4 HIVELOCITY Link para o comentário Compartilhar em outros sites More sharing options...
RonanC Postado Março 26, 2015 Autor Compartilhar Postado Março 26, 2015 Fiz isso, coloquei no deny a lista de paises que queria bloquear, exceto BR, e na relação de portas coloquei as portas de serviço do whm e cpanel e SSH, porém demorou pra cacete pro firewall carregar e não funcionou, continua normal o acesso de qualquer pais ao WHM, Cpanel etc 0 Citar Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.