+7 (916) 741 5495
support@netams.com

                         english   

 

10


" " () , 10 . ) netams ) .


processor, :
policy { oid XXX | name NNNNN } target ....
  • policy name ip target proto ip
    IP-. , .. , netams

  • policy name www target proto tcp port 80 81 8080 3128
    TCP- , WWW-

  • policy name t_dns target proto tcp port 53 addr 1.2.3.4
    policy name u_dns target proto udp port 53 addr 1.2.3.4
    policy name extdns target policy-or t_dns u_dns
    / DNS-, 1.2.3.4, . , UDP TCP (DNS !),

  • policy name remote target units oid 0ABCDF
    unit net oid 0ABCDF name remotelan ip 215.236.28.0/24
    , 215.236.28.0/24, . target - , , . , - , , collocation.

  • policy name anekdotes target addr 217.16.28.51
    , ip-, .

  • policy name rus target file /etc/ru_networks.txt
    , , . (, , ), RIPE BGP view

  • policy name cust1_in target proto ip ifindex s10
    policy name cust1_out target proto ip ifindex d10
    policy name isp_up_in target proto ip ifindex s8
    policy name isp_up_out target proto ip ifindex d8
    Cisco "", , NetFlow.

  • policy name worktime target time 9-18 day Mon-Fri
    , 9 18 -

  • policy name sun_night target day Sun time 00:00-06:00
    , 0 6

  • policy name smb target proto tcp port 135 139 445
    policy name day target time 8-20
    policy name daynotsmb target policy-and day !smb
    -SMB . (!) -SMB .


processor , :
unit { host | user | cluster | group} { oid XXX | name NNNNN }  ....
  • unit host name server ip 192.168.0.1 acct-policy ip
    IP- 192.168.0.1, IP- /

  • auto-units 1 type user naming prefix2 "IP-" group CLIENTS
    unit group name CLIENTS acct-policy ip
    unit net name LAN ip 192.168.0.1/24 auto-units 1 acct-policy ip www

    "" ip 192.168.0.1/24 . , ip www, CLIENTS.

  • restrict all drop local pass
    unit net name LAN ip 192.168.0.1/24 no-local-pass
        acct-policy ip www
    unit host name pupkin ip 192.168.0.18 acct-policy ip www

    192.168.0.18. , , 192.168.0.19, , "" (192.168.0.1/24). - "no-local-pass".

  • unit host name pupkin ip 192.168.0.18 mac 00:03:47:c5:81:33
        acct-policy ip

    MAC- . MAC-, "" MAC-, IP- , . , PPPoE RADIUS, .

  • unit host name pupkin ip 192.168.0.18
        description " , .32 .169, . 333-22-77"
        email pupkin@gmail.com acct-policy ip

    "description" HTML- , . , , .

  • unit host name pupkin ip 192.168.0.18 bw 64K in acct-policy ip
    64 .
    ! , NeTAMS HAVE_BW. : make distclen && FLAGS=-DHAVE_BW make

  • unit user name pupkin ip 0.0.0.0 password ABCDEF
        acct-policy ip parent CLIENTS

    , IP- , set-user-ip, , - .

  • policy name ip target proto ip
    policy name russian target file /etc/ru-networks.txt
    policy name www target proto tcp port 80 81 8080 3128
    policy name non-www1 target proto ip
    policy name non-www2 target proto tcp port 80 81 8080 3128
    unit host name pupkin ip 192.168.0.18
        acct-policy ip !russian %www non-www1

    IP-, , WWW-, WWW. non-www1: " IP-", -WWW- - "%". , "non-www2". , www, ("!") :
    unit host name pupkin ip 192.168.0.18
        acct-policy ip !russian www !non-www2

    ( "acct-policy www !www" - ), policy oid,


[an error occurred while processing this directive]