[FUG-BR] Problema com mpd5

Marcelo Gondim gondim em bsdinfo.com.br
Quarta Agosto 28 23:24:59 BRT 2013


Em 28/08/13 22:13, Paulo Olivier Cavalcanti escreveu:
> Em 28/08/2013 21:32, Marcelo Gondim escreveu:
>> [...]
>> Paulo,
>>
>> Depois que conecta uma nova interface é levantada uma tun0, por aí. Você
>> tá fazendo o nat em cima dela? Outra coisa o net.inet.ip.forwarding tá
>> igual à 1?
>>
>> []'s
>> Gondim
>>
> Marcelo,
>   
> Na verdade a interface que é levantada chama-se ng0.
>
> O natd no rc.conf  está assim:
>
> natd_enable="YES"
> natd_interface="ng0", mas já coloquei re0 sem sucesso.
> natd_flags="-f /etc/natd.conf"
>
> O natd.conf está assim:
>
> redirect_port tcp 10.157.22.20:3310 3310 #RDP Terminal Service
> redirect_port tcp 10.157.22.20:3678 3678 # Emule
> redirect_port tcp 10.157.22.20:3679 3679 #Emule
> redirect_port udp 10.157.22.20:3679 3679# KAD Emule
>
> Sim, o net.inet.ip.forwarding está 1.
>
> Lembrando que usando ppp o nat funciona, parece que é alguma
> configuração de nat no mpd5.
>
> O firewall está aberto.
>
Isso, eu vi tun por causa do openvpn rsrsrs a configuração que uso aqui 
é usando o pf. vou colar aqui o meu mpd5.conf e o pf pra vc ver:

startup:
     # configure mpd users
     set user gondim tutuamineira admin
     # configure the console
     set console self 127.0.0.1 5005
     set console open
     # configure the web server
     set web self 0.0.0.0 5006
     set web open

#
# Default configuration is "dialup"

default:
     load pppoe_client

pppoe_client:
#
# PPPoE client: only outgoing calls, auto reconnect,
# ipcp-negotiated address, one-sided authentication,
# default route points on ISP's end
#

         create bundle static B1
         set iface route default
         set ipcp ranges 0.0.0.0/0 0.0.0.0/0

         create link static L1 pppoe
         set link action bundle B1
         set auth authname nova200863
         set auth password blablabla
         set link max-redial 0
         set link mtu 1492
         set link keep-alive 10 60
         set pppoe iface em0
         set pppoe service ""
         open



Meu pf.conf:

ext_if = "ng0"
table <masq> persist { 192.168.1.0/24 }
set skip on lo0
rdr on $ext_if proto tcp from any to ($ext_if) port 3389 -> 192.168.1.242
rdr on $ext_if proto tcp from any to ($ext_if) port 3050 -> 192.168.1.242
rdr on $ext_if proto tcp from any to ($ext_if) port 5866 -> 192.168.1.242
nat on $ext_if from <masq> to any -> ($ext_if)

Minhas regras de filtragem são com ipfw.

[]'s
Gondim





Mais detalhes sobre a lista de discussão freebsd