[FUG-BR] proftpd jailed

2006-05-09 Por tôpico trobalo
Tenho aqui 1 problema com o proftpd a correr numa jail.

- pf.conf

ext_if=em0

ip_ext=*.*.*.*

ip_jail=127.0.0.3

rdr on $ext_if proto tcp from any to $ip_ext port 21 - $ip_jail port 21
rdr on $ext_if proto tcp from any to $ip_ext port 49152:52000 -  
$ip_jail port 49152:52000

pass in log quick on $ext_if proto tcp from any to $ip_jail port 21  
flags S/SAFR keep state

pass in log quick on $ext_if proto tcp from any to $ip_jail port 49151  
  52001
pass out log quick on $ext_if proto tcp from $ip_jail port 49151   
52001 to any


- proftpd.conf

ServerName  SERVER X
ServerType  standalone
DefaultServer   on
ScoreboardFile  /var/run/proftpd.scoreboard
ExtendedLog /var/log/proftpd.log

AllowForeignAddress on
PassivePorts 49152 52000
IdentLookups off
UseReverseDNS off
DefaultRoot ~ !wheel

DisplayConnect /etc/motd
Port21
Umask   022

MaxInstances30

Usernobody
Group   nogroup

AllowOverwrite  on

Limit SITE_CHMOD
   DenyAll
/Limit


No log do proftpd apenas surge isto quando acesso via browser:


*.*.*.* UNKNOWN teste [09/May/2006:10:36:23 +0100] NOOP 200 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:23 +0100] CWD  
/usr/home/teste/ 250 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:23 +0100] TYPE A 200 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:23 +0100] PASV 227 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] USER anonymous 331 -
*.*.*.* UNKNOWN nobody [09/May/2006:10:36:24 +0100] PASS (hidden) 530 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] NOOP 200 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] CWD  
/usr/home/teste/ 250 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] TYPE A 200 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] PASV 227 -
*.*.*.* UNKNOWN nobody [09/May/2006:10:36:27 +0100] USER teste 331 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] PASS (hidden) 230 -
*.*.*.* UNKNOWN testee [09/May/2006:10:36:27 +0100] OPTS utf8 on 501 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] PWD 257 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] NOOP 200 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] CWD  
/usr/home/teste/ 250 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] TYPE A 200 -
*.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] PASV 227 -


Sempre que acedo via firefox ou IE não consigo abrir o FTP, ele mostra  
a janela de login mas depois devolve 1 mensagem onde diz que para  
verificar as permissões da folder e que a ligação ao servidor não é  
possível.

drwx--   3 teste  wheel  512 May  8 18:48 teste

Contudo, se aceder via ms-dos

fazendo ftp
open *.*.*.*

ele pede o login e abre o FTP.

Na firewall nao vejo nada a ser bloqueado...

Alguma ideia?







-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] proftpd jailed

2006-05-09 Por tôpico trobalo
Tentei agora mas o problema continua...

Quoting Welington F.J [EMAIL PROTECTED]:

 ja tentou liberar a porta 20 ?



 On 5/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Tenho aqui 1 problema com o proftpd a correr numa jail.

 - pf.conf

 ext_if=em0

 ip_ext=*.*.*.*

 ip_jail=127.0.0.3

 rdr on $ext_if proto tcp from any to $ip_ext port 21 - $ip_jail port 21
 rdr on $ext_if proto tcp from any to $ip_ext port 49152:52000 -
 $ip_jail port 49152:52000

 pass in log quick on $ext_if proto tcp from any to $ip_jail port 21
 flags S/SAFR keep state

 pass in log quick on $ext_if proto tcp from any to $ip_jail port 49151
   52001
 pass out log quick on $ext_if proto tcp from $ip_jail port 49151 
 52001 to any


 - proftpd.conf

 ServerName  SERVER X
 ServerType  standalone
 DefaultServer   on
 ScoreboardFile  /var/run/proftpd.scoreboard
 ExtendedLog /var/log/proftpd.log

 AllowForeignAddress on
 PassivePorts 49152 52000
 IdentLookups off
 UseReverseDNS off
 DefaultRoot ~ !wheel

 DisplayConnect /etc/motd
 Port21
 Umask   022

 MaxInstances30

 Usernobody
 Group   nogroup

 AllowOverwrite  on

 Limit SITE_CHMOD
   DenyAll
 /Limit


 No log do proftpd apenas surge isto quando acesso via browser:


 *.*.*.* UNKNOWN teste [09/May/2006:10:36:23 +0100] NOOP 200 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:23 +0100] CWD
 /usr/home/teste/ 250 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:23 +0100] TYPE A 200 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:23 +0100] PASV 227 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] USER anonymous 331 -
 *.*.*.* UNKNOWN nobody [09/May/2006:10:36:24 +0100] PASS (hidden) 530 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] NOOP 200 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] CWD
 /usr/home/teste/ 250 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] TYPE A 200 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:24 +0100] PASV 227 -
 *.*.*.* UNKNOWN nobody [09/May/2006:10:36:27 +0100] USER teste 331 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] PASS (hidden) 230 -
 *.*.*.* UNKNOWN testee [09/May/2006:10:36:27 +0100] OPTS utf8 on 501 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] PWD 257 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] NOOP 200 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] CWD
 /usr/home/teste/ 250 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] TYPE A 200 -
 *.*.*.* UNKNOWN teste [09/May/2006:10:36:27 +0100] PASV 227 -


 Sempre que acedo via firefox ou IE não consigo abrir o FTP, ele mostra
 a janela de login mas depois devolve 1 mensagem onde diz que para
 verificar as permissões da folder e que a ligação ao servidor não é
 possível.

 drwx--   3 teste  wheel  512 May  8 18:48 teste

 Contudo, se aceder via ms-dos

 fazendo ftp
 open *.*.*.*

 ele pede o login e abre o FTP.

 Na firewall nao vejo nada a ser bloqueado...

 Alguma ideia?







 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd



 --
 Welington F.J
 BSD User: 51392
 ICQ: 31320518
 MSN: [EMAIL PROTECTED]
 Drogas ? Pra que? Já Tenho Meu Windows!!
 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd





-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] apache jail

2006-04-04 Por tôpico trobalo
Experimentei fazer o que dizia na thread... mas não funcinou.

- No rc.conf da jail relacionado com o apache tenho:

hostame=127.0.0.3

apache_enable=YES

early_late_divider=NETWORKING
local_startup=/usr/local/etc/rc.d

- /etc/hosts:
127.0.0.3   127.0.0.3 127.0.0.3


- httpd.conf:
Listen 127.0.0.3:80

ServerName 127.0.0.3

O problema continua.

Por vezes no  /var/log/httpd-error.log aparece o seguinte erro:
[crit] (48)Address already in use: make_sock: could not bind to address 
127.0.0.3 port 80

Alguma sugestão?


Quoting Alex Moura [EMAIL PROTECTED]:

 Tiago André Robalo wrote:
 Hey ppl,


 Tenho a correr numa jail o apache, contudo quando a máquina principal
 reboota o apache não é inicializado!

 Só se usar apachectl start é que ele inicia.

 Tiago,

 Leia esta thread:

 http://www.mail-archive.com/freebsd@fug.com.br/msg10628.html


 Alex
 ___
 freebsd mailing list
 freebsd@fug.com.br
 http://lists.fug.com.br/listinfo.cgi/freebsd-fug.com.br



___
freebsd mailing list
freebsd@fug.com.br
http://lists.fug.com.br/listinfo.cgi/freebsd-fug.com.br