Re: [FUG-BR] MYADDR

2006-08-25 Por tôpico Rafael Simão
Você tem razão. Eu queria ser específico, mas o "me" já resolve o meu 
problema. Obrigado pela resposta Rainer.

- Original Message - 
From: "Rainer Alves" <[EMAIL PROTECTED]>
To: ""Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)"" 

Sent: Thursday, August 24, 2006 9:13 PM
Subject: Re: [FUG-BR] MYADDR


Rafael Simão wrote:
> Boa tarde,
> Alguém da lista poderia me ajudar com a seguinte questão ?
> Queria colocar no meu script de Firewall a variável MYADDR, atribuida no
> momento que eu conecto via PPP e não tenho idéia de como fazer.
> Exemplo:
>
> (No script de Regras do Firewall)
> IP_EXT="sei_lá_o_que_MYADDR"
> para que eu pudesse então usar alguma regra do tipo
> ipfw allow all from $IP_EXT to $fulano

Experimente usar o 'me' no lugar da macro $IP_EXT:
ipfw allow all from me to $fulano

  me  matches any IP address configured on an interface in the
system.
  The address list is evaluated at the time the packet is
analysed.

- Rainer

-
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] MYADDR

2006-08-24 Por tôpico Nenhum _de_Nos
> Experimente usar o 'me' no lugar da macro $IP_EXT:
> ipfw allow all from me to $fulano
>
>   me  matches any IP address configured on an interface in the
> system.
>   The address list is evaluated at the time the packet is
> analysed.
>
> - Rainer
isso funca pra PF tb ?

acho q tentei uma vez e funcionou e nao consegui mais.

e pra o caso do rapaz ai, nao poderia usar a tun0 nao ?

matheus

-- 
We will call you cygnus,
The God of balance you shall be
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] MYADDR

2006-08-24 Por tôpico Rainer Alves
Rafael Simão wrote:
> Boa tarde,
> Alguém da lista poderia me ajudar com a seguinte questão ?
> Queria colocar no meu script de Firewall a variável MYADDR, atribuida no 
> momento que eu conecto via PPP e não tenho idéia de como fazer.
> Exemplo:
> 
> (No script de Regras do Firewall)
> IP_EXT="sei_lá_o_que_MYADDR"
> para que eu pudesse então usar alguma regra do tipo
> ipfw allow all from $IP_EXT to $fulano

Experimente usar o 'me' no lugar da macro $IP_EXT:
ipfw allow all from me to $fulano

  me  matches any IP address configured on an interface in the 
system.
  The address list is evaluated at the time the packet is 
analysed.

- Rainer

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


[FUG-BR] MYADDR

2006-08-24 Por tôpico Rafael Simão
Boa tarde,
Alguém da lista poderia me ajudar com a seguinte questão ?
Queria colocar no meu script de Firewall a variável MYADDR, atribuida no 
momento que eu conecto via PPP e não tenho idéia de como fazer.
Exemplo:

(No script de Regras do Firewall)
IP_EXT="sei_lá_o_que_MYADDR"
para que eu pudesse então usar alguma regra do tipo
ipfw allow all from $IP_EXT to $fulano

Obrigado,
Rafael 

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