Jump to content
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Firewall Csf (Erro No Comando)

Featured Replies

Boa tarde galera!

 

Será que alguém me dá uma luz?

 

Instalei o CSF no servidor conforme o tutorial da Hostdime (http://blog.hostdime.com.br/materias/tecnologia/csf-o-que-e-como-instalar-e-configurar/).

 

Testei os iptables e está tudo ok.

 

Porém ele não aceita nenhum comando, tipo:

 

csf -g

csf -a

csf -h

csf -r

 

Exemplo:

 

#csf -g XX.XXX.XXX.XXX

-bash: csf: command not found

 

Qualquer comando acima (até o de ajuda) dá essa mensagem.

 

Desinstalei e instalei novamente e o erro persiste.

 

O que será que errei?

 

Obrigado.

 

 


Tente reinstalar o CSF. Está falando que o comando não existe. 

 

O arquivo de instalação oficial está aqui: http://configserver.com/free/csf/install.txt  [Edit: Não que o da HostDime esteja errado..]

 

Código de instalação:

 

rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

  • Author

Tente reinstalar o CSF. Está falando que o comando não existe. 

 

O arquivo de instalação oficial está aqui: http://configserver.com/free/csf/install.txt  [Edit: Não que o da HostDime esteja errado..]

 

Código de instalação:

 

rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

 

Obrigado Pedro.

 

Realmente tinha REfeito o procedimento com o mesmo tutorial.

 

Desinstalei tudo e segui com o arquivo original do CSF, agora da erro:

 

 

Configuring for OS
 
Running csf generic installer
 
Installing generic csf and lfd
 
Check we're running as root
 
Checking Perl modules ...
Can not locate LWP / UserAgent.pm in @ INC (@ INC contains: / etc / csf / usr/lib64/perl5 / site_perl/5.8.8/x86_64-linux-thread-multi / usr/lib/perl5/site_perl / 5.8.8 / usr / li b/perl5/site_perl / usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi / usr/lib/perl5/vendor_perl/5.8.8 / usr/lib/perl5 / vendor_perl / usr/lib64/perl5/5.8. 8/x86_64-linux-thread-multi / usr/lib/perl5/5.8.8.) at (eval 19) line 2.
BEGIN failed - compilation aborted at (eval 19) line 2.
Using configuration defaults
 
You need to install the missing perl modules and then install cxs
[root @ bk csf] #

 

Obrigado.


Certo, tente o comando: 

 

yum install libwww-perl

 

 

e depois rode a instalação do csf.

 

Obs.: Qual o sistema operacional? Caso não seja CentOS me avise.


  • Author

Certo, tente o comando: 

 

yum install libwww-perl

 

 

e depois rode a instalação do csf.

 

Obs.: Qual o sistema operacional? Caso não seja CentOS me avise.

 

Após esse comando apareceu:

 

[root@bk ~]# yum install libwww-perl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base                                                     | 1.1 kB     00:00
extras                                                   | 2.1 kB     00:00
updates                                                  | 1.9 kB     00:00
vz-base                                                  |  951 B     00:00
vz-updates                                               |  951 B     00:00
Setting up Install Process
No package libwww-perl available.
Nothing to do
 
Instalei novamente e o erro persiste...
 
Obrigado pelo auxílio =)


  • Author

Pedro consegui resolver.

 

Para efeito de aprendizagem com os demais que passarem por isso, eu fiz o seguinte comando:

 

# yum install perl-libwww-perl.noarch

 

Após isso instalei novamente e deu tudo certo.

 

Obrigado pelo auxílio amigo!

 

Abraços.


Pedro consegui resolver.

 

Para efeito de aprendizagem com os demais que passarem por isso, eu fiz o seguinte comando:

 

 

Após isso instalei novamente e deu tudo certo.

 

Obrigado pelo auxílio amigo!

 

Abraços.

 

 

Errei por pouco o comando, rs. 

 

Por nada, precisando estou ai.

 

Abraço!


Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Do you agree with our terms?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.