• Cliente Openvpn não acessa rede da filial ligado por ipsec

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    JackLJ
    @gst.freitas: Eu configurei o Openvpn para ter acesso e assim fazer suporte nas duas redes, matriz e Filial. Porque não usar uma VPN do tipo PPPTP? Assim você "se coloca" na rede de destino de forma transparente e sem abrir mão da criptografia. Para casos de VPN do tipo site-to-client este método é o ideal (mais simples)! ;) Abraços! Jack
  • Duvida LightSquid

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    V
    Uso proxy transparente, mas agora vi um post que ensina a usar o proxy tradicional com a configuracao automatica, sem ser necesario o uso de AD para aplicar o .PAC, vou tentar implementar o proxy tradicional por aqui.
  • Pfsense com wireless para visitantes

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    L
    Um AP que permita múltiplos ssid seria mas adequado e então separar com vlan. Assim estaria logicamente separada.
  • Solução para FTP+pFsense

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    marcellocM
    Como já vimos em outros longos posts, o proxy de FTP do pfsense age nas conexões iniciadas na porta 21 e somente nela. Qualquer configuração diferente disso, a configuração é manual.
  • Proxy transparente ou configuração automatica de proxy?

    Locked
    34
    0 Votes
    34 Posts
    43k Views
    marcellocM
    Você pode configurar o squid para não fazer cache.
  • Ajuda Dansguardian ! Dúvida sobre várias funções.

    Locked
    15
    0 Votes
    15 Posts
    6k Views
    marcellocM
    tenta excluir os dois grupos, depois ir na aba daemon e salva as configurações. Este procedimento vai criar o grupo default novamente. Se tudo estiver funcionando, tente criar o segundo grupo. Não consegui simular este erro aqui.  :(
  • Livro PfSense 2.0 traduzido pro Português

    Locked
    15
    1 Votes
    15 Posts
    23k Views
    G
    Pessoal, que tai traduzir essa excelente explicação para os demais colegas..sobre traffic shaped. já que a maioria tem dificuldade.. pfSense uses ALTQ for its QoS which applies to the outgoing traffic on an interface. This means that if you have 2 interfaces LAN/WAN and an internet connection of Up 256Kb/s and Down 1Mb/s than the WAN queue has the upload limit and the LAN one has the download limit. This is why i ask for interfaces during the wizard. Since i need to know in what interfaces the Upload/download values has to be applied. Each interface can have different schedulers (PRIQ/CBQ/HFSC for now). This means that if you enable the traffic shaper EVERY traffic that leaves any interfaces where the shaper is active will be shaped or better needs to be classified to a queue. Every interface needs explicitly 1 AND ONLY 1 DEFAULT QUEUE. It means that unclassified traffic by rules will go to this queue. The different schedulers give you flexibility on how to achieve your QoS. The best one is HFSC but it is the harder to configure right without the knowledge of it. Mos people have an hard time groking what "decoupled delay and bandwidth" means and i would rather make them choose PRIQ then have to go through the hassle of explaining that. PRIQ is the simplest one, you set the bandwidth to apply(this is an hard upperlimit) meaning it will not use more than that. NOTE: that i am just describing only one part of the configuration below. Meaning it is only the upload part which will be applied on the WAN interface. For the LAN/download one or any other interface where traffic will pass on a configuration should be applied to make it complete. Usually this configuration is just a copy of this one. After that you setup different priority for different queues maximum is 15, meaning you can have maximum of 15 queues. PRIQ queues can not have childs. So lets says you want to give priorities in this order(the first has the highest priority): VoIP VNC SSH HTTP ICMP Penalty With PRIQ you just setup this queue schema: VoIP priority 7 VNC priority 6 SSH priority 5 HTTP priority 4 ICMP priority 3 Penalty (priority 1 default) NOTE: that i am not setting a bandwidth value anywhere here and just letting the ISP do the actual capping of the bandwidth. Though i strongly suggest to tweak the tbrconfig size of the interface. Later more on what this is. And set rules to choose the priorities to the specific traffic by choosing the queues in the rules. This is as simple as it can get. And is the most recommended for home uses. Since you are the only customer and have not so much need of sharing bandwidth. CBQ is class based scheduling. It allows you two define a tree of classes. Each queue can have a priority setup from 1 - 7 which will be honored and give specific queue a bandwidth value in percentage or specific value regarding to its parent. Furthermore you can have a borrow action which will give you more bandwidth than actually configured when the parent says it has some spare one. So lets take the same example as above and say that we want to share the bandwidth between 2 subnets. The following logical schema makes sense then: –-qTotalBandwidth (Value of upload bandidth) ------qSubnet1 (50% bandwidth) ------qSubnet2 (50% bandwidth) Now i setup rules that say subnet1 traffic goes to the qSubnet1 and subnet2 traffic goes to the qSubnet2 If i wanted that subnets share available bandwidth between them just add the borrow option to both of them and it will activate the sharing. Now if i wanted to add priority for each subnet the logic would say: ---qTotalBandwidth (Value of upload bandidth borrow ) ------qSubnet1 (45% bandwidth priority 1) --------------q1VoIP (priority 7 bandwidth 30% borrow ) --------------q1VNC (priority 5 bandwidth 30% borrow ) --------------q1HTTP (priority 4 bandwidth 30% borrow ) ------qSubnet2 (45% bandwidth pruority 1 borrow ) --------------q2VoIP (priority 7 bandwidth 30% borrow ) --------------q2VNC (priority 5 bandwidth 30% borrow ) --------------q2HTTP (priority 4 bandwidth 30% borrow ) ------qPenalty (priority 1 bandwidth 10% default) Setup the rules accordingly and it should work like a charm. What that schema means is give priority on the 2 subnets to VoIP than VNC than HTTP than every other traffic would go to the Penalty queue and will be capped to total 10% of its parent. This is called whitelist policy where we choose what is friendly traffic and for the other we do not care and let the qPenalty queue handle it. Now HFSC is the most sophisticated one and the most confusing one to people that do not have the proper knowledge. It decouples delay and bandwidth. What that sentence means is that often you need realtime traffic that has delay(time as milliseconds or seconds) bound for which you do not want the normal limit to apply. I.E. i have VoIP traffic that uses UDP protocol with packet sizes of 1.2Kbit which needs a delay of 30ms to feel as normal phone call. But also i want a hard limit, 64Kb, on all the bandwidth that VoIP traffic consumes on my network. All this is exposed to the user through 3 parameters. m1 d and m2. Where: m1 = bandwidth needed in d time d = delay(in milliseconds) m2 = hard limit So if create a config as:  m1 = 1.2Kb d = 30 m2 = 64Kb it means that i want that in d time m1 traffic gets served without checking m2. After that m2 will get checked and if the limit has been reached backlog/queue packet. Now there are three such schedulers in HFSC. Realtime, Linkshare, Upperlimit. Realtime is the first scheduler that is run every time. Meaning if we are trying to send a packet the Realtime scheduler will be asked if it has one. After that the Linkshare scheduler takes the lead and if it exceeds some limits the Upperlimit one overrides its decision. So getting back from theory, when the VoIP traffic above reaches the limit m2 it will be scheduled by the linkshare service curve till VoIP traffic gets back under m2 realtime limit. That's why you have to specify always the bandwidth parameter which is the same as specifying m2 parameter of linkshare. When both bandwidth and linkshare m2 parameters are specified the m2 parameter is the one that prevails. So getting back to the example we used with PRIQ/CBQ we would have: ---qTotalBandwidth (Value of upload bandidth ) ------qSubnet1 (50% bandwidth) --------------q1VoIP (bandwidth 30%) --------------q1VNC (bandwidth 30%) --------------q1HTTP (bandwidth 30%) ------qSubnet2 (50% bandwidth) --------------q2VoIP (bandwidth 30%) --------------q2VNC (bandwidth 30% ) --------------q2HTTP (bandwidth 30%) ------qPenalty (bandwidth 10% default upperlimit m2 = 10%) This is the same config replicating CBQ one. As you see HFSC has the borrowing of CBQ on by default and you can override it with the upperlimit parameter. Now to have really the power of HFSC server us we would better configure it as: ---qTotalBandwidth (Value of upload bandwidth ) ------qSubnet1 (50% bandwidth) --------------q1VoIP (bandwidth 10% realtime m1 = 1.2Kb d = 30 m2 = 64Kb) --------------q1VNC (bandwidth 10% realtime m1 = 6Kb d = 50 m2 = 128Kb) --------------q1HTTP (bandwidth 30%) ------qSubnet2 (50% bandwidth) --------------q2VoIP (bandwidth 10% realtime m1 = 1.2Kb d = 30 m2 = 64Kb) --------------q2VNC (bandwidth 10% realtime m1 = 6Kb d = 50 m2 = 128Kb) --------------q2HTTP (bandwidth 30%) ------qPenalty (bandwidth 10% default upperlimit m2 = 10%) I consider VoIP and VNC realtime traffic as it is Audio and Video and setup they parameters and delay. Now to have some bursting effects on with HFSC you can play with m1 and m2. Let say that we have a line that allows the upload to burst to 2Mbits/s for 5seconds and after that it goes to 1Mbit/s then setup the qTotalBandwidth, in the scheme above, linkshare parameters to m1 = 2Mb d = 5000 m2 = 1Mbit/s Here the upperlimit bursting configuration is not necessarysince the ISP infoces that. If we wanted to enforce a 512 hard limit with a burstable of 1 sec to 1Mbit/sfor qSubnet1 we have to add this configuration to that queue upperlimit m1 = 1Mb d = 1000 m2 = 512Kbit/s Now in pfSense there are 2 strategies that can be applied for QoS. 1- is white listing policy which selects the traffic we are interested on and sends it to the policy(queue) we have configured for it and all the other one is sent to the default queue which in this case is configured with very low priority and low bandwidth. This is even the policy that the wizard tend to express. IE with PRIQ scheduler it means: qClassifiedtraffic(priority 7) qDefault(default priority 1) 2- is black listing priority. This policy tries to identify traffic we do not want and send it to penalty queues. All the other traffic may be classified to other queues we are interested on or send it to the default queue, which in this policy has higher priority and more bandwidth than in the whitelisting case. IE with PRIQ scheduler it means: qDefault(default priority 7) qPenalty(priority 1) Questions? Smiley Now back to why you need to disable the anti-lockout rule and the default LAN rule. The pf packet filter is stateful and if it registers a state about a stream of traffic it will not check the ruleset again. On this packet filter that is used in pfSense traffic is assigned to a queue by specifying it explicitly with the rule that matches the traffic/ the rule that creates the state. The default anti-lockout rule is the same as the default lan rule just createt automatically for the user to prevent his from doing stupid things. But this rule is to generic as it matches all the traffic passing from lan and nothing else in the ruleset gets executed. As such it sends all the traffic to the default queue which is not what the user wants with a QoS policy on. The same applies to the default LAN rule pfSense ships with. Since now you have to explicitly choose the queue the traffic has to go when creating a rule there is no easy solution to this other than disable these settings and have more fine tuned rules for classifying traffic to the propper queue. Ermal
  • Lightsquid ?

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    JackLJ
    @souzalinux: #!/bin/bash HOJE=$(date –date "0 day ago" +%d/%m/%Y) /usr/local/bin/sarg -f /usr/local/etc/sarg/sarg.conf -d $HOJE-$HOJE souzalinux, Não entendi o contexto, ou seja, o que você quer com este script? Leia na íntegra este texto escrito pelo Paim: http://www.paim.pro.br/freebsd/unijui/sarg.html Abraços! Jack
  • Fortigate x Pfsense Apresentação empresarial!

    Locked
    20
    0 Votes
    20 Posts
    21k Views
    L
    Estou acompanhando o debate e vou dar o meu ponto de vista. Eu me encontro em uma situação muito semelhante a do amigo VINA. Sou sysadmin de uma empresa e por aqui sou o único no que faço. Diferente da sua empresa, aqui apesar de ter um faturamento gigante, o que é importante é fazer funcionar gastando o quanto menos. Tendo em vista essa metodologia já passei por algumas ferramentas como Microfosoft TMG (lixo), iptables (bom porem, não te esta interface amigável e as facilidades que o pf nos trás), e agora estou utilizando o pfsense, cara esse cara é uma maravilha me atende em tudo que preciso. Porem neste peregrinação ate encontrar o firewall que me atenda, tentei colocar vários outros aqui que no caso são pagos como: checkpoint, Cisco ASA, Sonicwall entre outros mas quando o valor passava dos 10 mil a diretoria não queria nem ver o orçamento. Creio que uma solução paga é uma ótima escolha quando a empresa tem essas condições e isso demostra que a mesma se preocupa com a TI. No seu caso se é isso que a empresa quer e a ferramenta vai suprir com as necessidades você deve aceitar. Pense que se você mater o pf e um dia ele der problema a diretoria via falar eu avisei. Se for o contrário voce só tem a ganhar, vai aprender a trabalhar com outra ferramenta o que irá contar para o seu CV e tem pra onde correr quando o bicho pega. Mesmo sabendo que o pf tbm tem suporte. A minha opinião é que vc deve deixar bem claro o que o PF faz e o que a outra ferramenta tem que fazer. Se a diretória quiser mesmo assim a outra ferramenta ótimo bola pra frente e vamos aprender. De qualquer forma você não perde. A menos que você esteja contratado só pelo pfsense ai o bixo pega. kkkkkk Mas tenho certeza deu que não é o caso.
  • Bump sched buckets to 64 (was 0)

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Wileress no pfsense

    Locked
    16
    0 Votes
    16 Posts
    4k Views
    T
    Era isso que queria.. resolveu.. Valeu..
  • [Resolvido] Regra liberando forward entre 2 placas do PfSense

    Locked
    5
    0 Votes
    5 Posts
    6k Views
    J
    Boa Noite Marcelo, Só para agradecer, esta funcionando 100%. Estou gostando muito do PfSense. Att, Julio
  • Swap Pfsense

    Locked
    6
    0 Votes
    6 Posts
    4k Views
    L
    Para ajudar o colega a entender: Swap é em Disco Rigido(HD). Os tempos de respostas são medidos em microsegundos e milisegundos, quanto menor o tempo de resposta, melhor o desempenho. Vamos supor que a Memória RAM responda a um pedido seu em 1 segundo. O HD responderia ao mesmo pedido em 10 minutos. Então lógicamente é melhor utilizar a memória RAM.
  • [Resolvido] Ajuda Liberação VoIP

    Locked
    16
    0 Votes
    16 Posts
    18k Views
    marcellocM
    @Babingthon: E deu  certo o VoIP, vlw bixo, mas como basicamente roteador? Ele aqui é meu servidor de internet e tbm firewall (com bloqueios de internet e acessos), núm é pra ser assim nao? num entendir nao!!! Desculpa se A sua regra de lan libera acesso para qualquer ip na rede(de dentro pra fora). Mesmo utilizando o proxy transparente do squid, o usuário encontra facilmente uma forma(ferramenta,proxy web,https,etc) de acessar o que esta bloqueado. da uma olhada neste tutorial em forma de post, pode  te ajudar. http://forum.pfsense.org/index.php/topic,45724.0.html @Babingthon: Estou perguntando demais, mas tenho muitas duvidas ainda. Sem problemas, hoje o fórum te ajuda, amanhã você ajuda o forum @Babingthon: OBS: como é que eu faço pra renomear o topico pra colocar [RESOLVIDO]??? Modifique o assunto do primeiro post
  • Bloqueio layer 7 funciona ?

    Locked
    9
    0 Votes
    9 Posts
    6k Views
    JackLJ
    @vina18: Jack estava sumido do fórum  :D Correndo mais que cavalo de bandido vina18…  :-\ Depois de umas curtas e "pseudo" férias, estou trabalhando mais que servente de pedreiro! :( Mas estamos por aqui. Uma vez por dia ou a cada 2 dias apareço pelo fórum! ;) Abraços! Jack
  • [Resolvido] pFsense + Zabbix

    Locked
    7
    0 Votes
    7 Posts
    10k Views
    JackLJ
    @souzalinux: Acho que era questão de esperar pois agora foi Você pode parametrizar o tempo de update do envio dos dados… Dica: Estude sobre o Zabbix Proxy! Abraços! Jack
  • Limitar download de webmail!!!

    Locked
    8
    0 Votes
    8 Posts
    3k Views
    JackLJ
    @marcelo_chfe: sei que pfsense n pode ser auterado o arquivo squid.conf direto onde altero.. ??? tentei alterar depois que reinicio perde o q alterei…!! Altere neste arquivo: /usr/local/pkg/squid.inc Abraços! Jack
  • Imspector

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    F
    hummm vou ter que testar depois pois estava fazendo com a opção de logs pois estou testanto em uma rede fora da minha.. mais beleza… ja tinha visto aquele post tentei algumas opções dele e não deu muito certo... mais mesmo assim valeu
  • Sugestão

    Locked
    9
    0 Votes
    9 Posts
    2k Views
    marcellocM
    Recebi sim. O valor é sempre bom, não posso questionar doações. ;)
  • Problema Pfsense+VirtualBox no ubuntu

    Locked
    8
    0 Votes
    8 Posts
    3k Views
    marcellocM
    Acessa a gui e cria as regras de firewall necessárias para você testar suas configurações. A wan não vem com uma regra permitindo tudo.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.