+ Responder ao Tópico



  1. #1

    Padrão abrir portas de counter-strike

    ola...

    instalei o emulador linux no freebsd.

    e gostaria de saber agora como as portas abaixo.
    no linux eu faria assim:

    iptables -A INPUT -s 0.0.0.0/0 -p udp --dport 27015 -j ACCEPT
    iptables -A OUTPUT -s 0.0.0.0/0 -p udp --sport 27012 -j ACCEPT
    iptables -A OUTPUT -s 0.0.0.0/0 -p udp --sport 27010 -j ACCEPT
    iptables -A OUTPUT -s 0.0.0.0/0 -p udp --sport 27005 -j ACCEPT
    iptables -A OUTPUT -s 0.0.0.0/0 -p tcp --sport 7002 -j ACCEPT
    iptables -A OUTPUT -s 0.0.0.0/0 -p tcp --sport 5273 -j ACCEPT
    iptables -A OUTPUT -s 0.0.0.0/0 -p tcp --sport 27040 -j ACCEPT



    e no freebsd? como devo proceder?


    agradeco a atencao.
    abracos.

  2. #2

    Padrão BSD Ipfw

    Olá, tenta aí:

    ipfw add 10 allow udp from any to any 27015
    ipfw add 11 allow udp from any to any 27012
    ipfw add 12 allow udp from any to any 27010
    ipfw add 13 allow udp from any to any 27005

    ipfw add 14 allow tcp from any to any 7002
    ipfw add 15 allow tcp from any to any 5273
    ipfw add 16 allow tcp from any to any 27040

    lembrando que a numeração serve para definir a posição da regra dentre as outras, ou seja, quanto menor o valor da sua posição, maior prioridade terá, aconselho utilizar estas regras antes do nat.

    Alex Lacerda.

  3. #3

    Padrão

    Seria mais facil colocar em 2 linhas só...

    ipfw add permit udp from any to any 27005,27010,27012,27015
    ipfw add permit tcp from any to any 5273,7002,27040


    Saudações,