freebsd
[Início] [Todas as Listas]

Re: [FUG-BR] Desbloquear FTP no PF ???

From: Rafael <rafael.moraes@xxxxxxxx>
To: "Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)" <freebsd@xxxxxxxxxx>
Subject: Re: [FUG-BR] Desbloquear FTP no PF ???
Date: Fri, 30 May 2008 17:20:27 -0300
O amigo, tentei isso ae....essa tua regra aí e talz...mas nao deu em nada
uma dúvida:
O $Speedy_Fixo é a tua interface externa?

ah outra coisa...quando inicio o ftp-proxy me aparece: Amigos,
ftp-proxy: bind failed: address already in use
ainda nao pesquisei sobre o problema..vou dar uma olhada...depois posto
se souber algo sobre...

até logo
fui!!!

at-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
rdr on $int_if proto tcp from any to any port 21 -> 127.0.0.1 \
  port 8021

ftpproxy_flags=""  --> deixo assim mesmo? :-|

pass in on $ext_if proto tcp from any to any port 21 keep state
pass in on $ext_if proto tcp from any to any port > 49151 \
  keep state


foi isso....
abraço a todos
fui!!!


nat-anchor "ftp-proxy/*"

rdr-anchor "ftp-proxy/*"

rdr pass on $Gateway_Interno proto tcp from any to any port 21 ->
127.0.0.1port 8021

anchor "ftp-proxy/*"

pass quick proto tcp from $Rede_Interna to 127.0.0.1 port 8021 keep state

pass in on $Speedy_Fixo inet proto tcp from any to $Speedy_Fixo port > 49151
keep state


feito isso, carregue novamente as regras:

#pfctl -d; pfctl -ef /etc/pf.conf

e inicie o ftp-proxy:

#ftp-proxy


Aqui funciona bem assim.


2008/5/30 Rafael <rafael.moraes@xxxxxxxx>:



<Anterior na Thread] Thread Atual [Próximo na Thread>