Changeset 7907

Show
Ignore:
Timestamp:
01/24/08 17:02:07 (3 years ago)
Author:
romain
svm:headrev:

c624a6cb-57d4-0310-9736-a25a8df6d016:12498
svk:copy_cache_prev:
7880
Message:

links to nuface ACLs

Location:
mirror/edenwall/nulog2/trunk
Files:
10 modified

Legend:

Unmodified
Added
Removed
  • mirror/edenwall/nulog2/trunk/TODO

    r7463 r7907  
    2121 
    2222* Few features: 
    23 - change height of table when reloading fragment (to store the same height and show ajax load icon inside). 
    24 - use systemgraph colours. 
    2523- hide multiplicator on histogram when ords are too big. 
    2624- have pages w3c compliant. (with the IE compatibility, I think we can't) 
  • mirror/edenwall/nulog2/trunk/nulog-core/inl.py

    r7906 r7907  
    545545            pass 
    546546 
     547    def _add_column(self, name): 
     548 
     549        self.columns += [name] 
     550 
    547551    def _arg_int(self, args, argname): 
    548552        """ Check if argname is in args, and if it is an integer 
  • mirror/edenwall/nulog2/trunk/nulog-core/table.py

    r7906 r7907  
    6565        else: 
    6666            result += entry[5:10] 
     67 
     68            # Stock ACL number, if exists, in 'acl' field 
     69            prefix = entry[9].split(':') 
     70            if len(prefix) > 2: 
     71                # Add column if doesn't exit 
     72                try: 
     73                    # If doesn't exist it will raise an exception 
     74                    self.columns.index('acl') 
     75                except ValueError: 
     76                    self._add_column('acl') 
     77 
     78                result += (prefix[1],) 
    6779 
    6880        if not hasattr(self, 'states'): 
  • mirror/edenwall/nulog2/trunk/nulog-web/default.nulog.conf

    r7812 r7907  
    77# Title displayed on top of each page. 
    88maintitle=Log FW for EdenWall 
     9 
     10# Link to Nuface ACLs 
     11# Note: if you don't use nuface, blank this field 
     12nuface_acl=https://fydelkass.inl.fr/nuface/acls.php?nulog=1&acl=%%s 
    913 
    1014[Sessions] 
  • mirror/edenwall/nulog2/trunk/nulog-web/nulog.pot

    r7821 r7907  
    199199msgstr "" 
    200200 
    201 #: infopage.py:232 tools.py:164 
     201#: infopage.py:232 tools.py:165 
    202202msgid "Dest port" 
    203203msgstr "" 
     
    259259msgstr "" 
    260260 
    261 #: infopage.py:305 tools.py:184 
     261#: infopage.py:305 tools.py:185 
    262262msgid "Application" 
    263263msgstr "" 
     
    316316msgstr "" 
    317317 
    318 #: tools.py:145 
     318#: tools.py:146 
    319319msgid "TCP ports" 
    320320msgstr "" 
    321321 
    322 #: tools.py:146 
     322#: tools.py:147 
    323323msgid "UDP ports" 
    324324msgstr "" 
    325325 
    326 #: tools.py:147 
     326#: tools.py:148 
    327327msgid "source IP" 
    328328msgstr "" 
    329329 
    330 #: tools.py:148 
     330#: tools.py:149 
    331331msgid "destination IP" 
    332332msgstr "" 
    333333 
    334 #: tools.py:149 
     334#: tools.py:150 
    335335msgid "Users" 
    336336msgstr "" 
    337337 
    338 #: tools.py:150 default.conf:51 ,default.conf:153 
     338#: tools.py:151 no_users.conf:53 ,no_users.conf:137 ,default.conf:51 
     339#: ,default.conf:153 
    339340msgid "Packet list" 
    340341msgstr "" 
    341342 
    342 #: tools.py:151 
     343#: tools.py:152 
    343344msgid "Connected users" 
    344345msgstr "" 
    345346 
    346 #: tools.py:152 
     347#: tools.py:153 
    347348msgid "Packet info" 
    348349msgstr "" 
    349350 
    350 #: tools.py:153 
     351#: tools.py:154 
    351352msgid "Applications" 
    352353msgstr "" 
    353354 
    354 #: tools.py:154 
     355#: tools.py:155 
    355356msgid "Connection tracking" 
    356357msgstr "" 
    357358 
    358 #: tools.py:159 
     359#: tools.py:160 
    359360msgid "TCP dest port" 
    360361msgstr "" 
    361362 
    362 #: tools.py:160 
     363#: tools.py:161 
    363364msgid "TCP source port" 
    364365msgstr "" 
    365366 
    366 #: tools.py:161 
     367#: tools.py:162 
    367368msgid "UDP dest port" 
    368369msgstr "" 
    369370 
    370 #: tools.py:162 
     371#: tools.py:163 
    371372msgid "UDP source port" 
    372373msgstr "" 
    373374 
    374 #: tools.py:163 xml/search.xml:21 
     375#: tools.py:164 xml/search.xml:21 
    375376msgid "Source port" 
    376377msgstr "" 
    377378 
    378 #: tools.py:165 xml/search.xml:40 
     379#: tools.py:166 xml/search.xml:40 
    379380msgid "Source" 
    380381msgstr "" 
    381382 
    382 #: tools.py:166 
     383#: tools.py:167 
    383384msgid "Destination" 
    384385msgstr "" 
    385386 
    386 #: tools.py:167 xml/search.xml:23 
     387#: tools.py:168 xml/search.xml:23 
    387388msgid "Address" 
    388389msgstr "" 
    389390 
    390 #: tools.py:169 tools.py:170 
     391#: tools.py:170 tools.py:171 
    391392msgid "User" 
    392393msgstr "" 
    393394 
    394 #: tools.py:171 
     395#: tools.py:172 
    395396msgid "Username contains" 
    396397msgstr "" 
    397398 
    398 #: tools.py:172 xml/search.xml:24 
     399#: tools.py:173 xml/search.xml:24 
    399400msgid "State" 
    400401msgstr "" 
    401402 
    402 #: tools.py:173 
     403#: tools.py:174 
    403404msgid "Proto" 
    404405msgstr "" 
    405406 
    406 #: tools.py:179 
     407#: tools.py:180 
    407408msgid "Packets" 
    408409msgstr "" 
    409410 
    410 #: tools.py:180 
     411#: tools.py:181 
    411412msgid "First packet" 
    412413msgstr "" 
    413414 
    414 #: tools.py:181 
     415#: tools.py:182 
    415416msgid "Last packet" 
    416417msgstr "" 
    417418 
    418 #: tools.py:182 
     419#: tools.py:183 
    419420msgid "Time" 
    420421msgstr "" 
    421422 
    422 #: tools.py:186 
     423#: tools.py:187 xml/search.xml:58 
    423424msgid "Prefix" 
    424425msgstr "" 
    425426 
    426 #: tools.py:187 xml/search.xml:56 
     427#: tools.py:188 
     428msgid "ACL" 
     429msgstr "" 
     430 
     431#: tools.py:189 xml/search.xml:56 
    427432msgid "Begin" 
    428433msgstr "" 
    429434 
    430 #: tools.py:188 xml/search.xml:57 
     435#: tools.py:190 xml/search.xml:57 
    431436msgid "End" 
    432437msgstr "" 
    433438 
    434 #: tools.py:189 xml/edennavbar.xml:4 
     439#: tools.py:191 xml/edennavbar.xml:10 
    435440msgid "System" 
    436441msgstr "" 
    437442 
    438 #: tools.py:311 
     443#: tools.py:317 
    439444msgid "No sort" 
    440445msgstr "" 
    441446 
    442 #: tools.py:313 
     447#: tools.py:319 
    443448#, python-format 
    444449msgid "Sorted by %s" 
    445450msgstr "" 
    446451 
    447 #: tools.py:394 
     452#: tools.py:400 
    448453msgid "for" 
    449454msgstr "" 
    450455 
    451 #: tools.py:412 tools.py:482 
     456#: tools.py:418 tools.py:488 
    452457#, python-format 
    453458msgid "%s isn't a valid argument name" 
    454459msgstr "" 
    455460 
    456 #: tools.py:419 
     461#: tools.py:425 
    457462#, python-format 
    458463msgid "'%(key)s' isn't a valid value for %(value)s argument" 
    459464msgstr "" 
    460465 
    461 #: tools.py:432 
     466#: tools.py:438 
    462467#, python-format 
    463468msgid "%s value may be in range 1-65535" 
    464469msgstr "" 
    465470 
    466 #: tools.py:442 
     471#: tools.py:448 
    467472#, python-format 
    468473msgid "%s value may be an integer" 
    469474msgstr "" 
    470475 
    471 #: tools.py:447 
     476#: tools.py:453 
    472477#, python-format 
    473478msgid "%(key)s value may be tcp, udp or icmp (and not %(value)s)" 
    474479msgstr "" 
    475480 
    476 #: tools.py:457 
     481#: tools.py:463 
    477482msgid "Please give a correct IP address or hostname" 
    478483msgstr "" 
     
    486491msgstr "" 
    487492 
     493#: xml/edennavbar.xml:4 
     494msgid "/" 
     495msgstr "" 
     496 
    488497#: xml/search.xml:46 
    489498msgid "Drop" 
    490499msgstr "" 
    491500 
    492 #: xml/edennavbar.xml:5 
     501#: xml/edennavbar.xml:11 
    493502msgid "Nuface" 
    494503msgstr "" 
     
    502511msgstr "" 
    503512 
    504 #: xml/edennavbar.xml:7 
     513#: xml/edennavbar.xml:13 
    505514msgid "Conntrack" 
    506515msgstr "" 
     
    510519msgstr "" 
    511520 
    512 #: xml/edennavbar.xml:2 
     521#: xml/edennavbar.xml:7 
    513522msgid "Home" 
    514523msgstr "" 
    515524 
    516 #: xml/nulog.xml:4 
     525#: xml/404.xml:4 xml/nulog.xml:4 
    517526msgid "Nulog2.0: firewall logs analysis" 
    518527msgstr "" 
     
    534543msgstr "" 
    535544 
    536 #: xml/edennavbar.xml:6 
     545#: xml/edennavbar.xml:12 
    537546msgid "Nulog" 
    538547msgstr "" 
     
    550559msgstr "" 
    551560 
    552 #: xml/search.xml:62 xml/search.xml:64 
     561#: xml/search.xml:63 xml/search.xml:65 
    553562msgid "'dd/mm/yy' or<br/>'dd/mm/yy HH:MM:SS'" 
    554563msgstr "" 
     
    574583msgstr "" 
    575584 
    576 #: xml/edennavbar.xml:3 
     585#: xml/edennavbar.xml:9 
    577586msgid "Network" 
    578587msgstr "" 
    579588 
    580 #: no_users.conf:107 
    581 msgid "Most TCP protocols:" 
    582 msgstr "" 
    583  
    584 #: no_users.conf:123 
    585 msgid "IP Sources" 
    586 msgstr "" 
    587  
    588 #: default.conf:97 
     589#: no_users.conf:112 ,default.conf:114 
     590msgid "TCP ports:" 
     591msgstr "" 
     592 
     593#: default.conf:146 
     594msgid "Applications:" 
     595msgstr "" 
     596 
     597#: no_users.conf:91 ,default.conf:92 
     598msgid "Bad UDP packets:" 
     599msgstr "" 
     600 
     601#: no_users.conf:120 
     602msgid "Destinations IP:" 
     603msgstr "" 
     604 
     605#: no_users.conf:23 ,no_users.conf:56 
     606msgid "This feature is disabled because you don't use NuFW." 
     607msgstr "" 
     608 
     609#: no_users.conf:83 
     610msgid "Destinations:" 
     611msgstr "" 
     612 
     613#: no_users.conf:73 ,default.conf:80 
     614msgid "Bad TCP packets:" 
     615msgstr "" 
     616 
     617#: default.conf:165 
     618msgid "Users sessions:" 
     619msgstr "" 
     620 
     621#: no_users.conf:96 ,default.conf:97 
    589622msgid "Packets:" 
    590623msgstr "" 
    591624 
    592 #: default.conf:138 
     625#: default.conf:121 
     626msgid "Destination IP:" 
     627msgstr "" 
     628 
     629#: no_users.conf:129 ,default.conf:138 
    593630msgid "Source IP:" 
     631msgstr "" 
     632 
     633#: default.conf:84 
     634msgid "Bad Hosts packets:" 
     635msgstr "" 
     636 
     637#: no_users.conf:40 ,default.conf:40 
     638msgid "Host information" 
     639msgstr "" 
     640 
     641#: default.conf:74 
     642msgid "Top User connections" 
    594643msgstr "" 
    595644 
     
    598647msgstr "" 
    599648 
    600 #: no_users.conf:80 
    601 msgid "Destinations:" 
    602 msgstr "" 
    603  
    604 #: no_users.conf:92 
    605 msgid "Dropped packets:" 
    606 msgstr "" 
    607  
    608 #: default.conf:121 
    609 msgid "Destination IP:" 
    610 msgstr "" 
    611  
    612 #: no_users.conf:40 ,default.conf:40 
    613 msgid "Host information" 
    614 msgstr "" 
    615  
    616 #: default.conf:146 
    617 msgid "Applications:" 
    618 msgstr "" 
    619  
    620 #: no_users.conf:23 ,no_users.conf:54 
    621 msgid "This feature is disabled because you don't use NuFW." 
    622 msgstr "" 
    623  
    624 #: no_users.conf:70 ,default.conf:80 
    625 msgid "Bad TCP packets:" 
    626 msgstr "" 
    627  
    628 #: default.conf:164 
    629 msgid "Users sessions:" 
    630 msgstr "" 
    631  
    632 #: default.conf:84 
    633 msgid "Bad Hosts packets:" 
    634 msgstr "" 
    635  
    636 #: no_users.conf:87 ,default.conf:92 
    637 msgid "Bad UDP packets:" 
    638 msgstr "" 
    639  
    640649#: default.conf:130 
    641650msgid "Users:" 
    642651msgstr "" 
    643652 
    644 #: default.conf:114 
    645 msgid "TCP ports:" 
    646 msgstr "" 
    647  
    648 #: default.conf:74 
    649 msgid "Top User connections" 
    650 msgstr "" 
    651  
    652 #: no_users.conf:74 
     653#: no_users.conf:77 
    653654msgid "Source dropped packets:" 
    654655msgstr "" 
    655  
    656 #: no_users.conf:114 
    657 msgid "Destinations" 
    658 msgstr "" 
  • mirror/edenwall/nulog2/trunk/nulog-web/nulog.py

    r7811 r7907  
    306306 
    307307    tools.DATETIME_FORMAT = parser.get('Misc', 'datetime') 
     308    tools.NUFACE_URL = parser.get('Links', 'nuface_acl') 
    308309    csv.MAX_RESULTS = int(parser.get('Misc', 'csv_max_results')) 
    309310 
  • mirror/edenwall/nulog2/trunk/nulog-web/po/fr/LC_MESSAGES/nulog.po

    r7821 r7907  
    88"Project-Id-Version: nulog\n" 
    99"POT-Creation-Date: \n" 
    10 "PO-Revision-Date: 2008-01-17 10:22+0100\n" 
    11 "Last-Translator: Eric Leblond <eric@inl.fr>\n" 
     10"PO-Revision-Date: 2008-01-24 17:01+0100\n" 
     11"Last-Translator: Romain Bignon <romain@vaginus.org>\n" 
    1212"Language-Team:  <en@li.org>\n" 
    1313"MIME-Version: 1.0\n" 
     
    1616"X-Generator: KBabel 1.11.4\n" 
    1717 
    18 #: tools.py:447 
     18#: tools.py:453 
    1919#, python-format 
    2020msgid "%(key)s value may be tcp, udp or icmp (and not %(value)s)" 
    2121msgstr "La valeur de %(key)s doit être tcp, udp ou icmp (et non %(value)s)" 
    2222 
    23 #: tools.py:412 
    24 #: tools.py:482 
     23#: tools.py:418 tools.py:488 
    2524#, python-format 
    2625msgid "%s isn't a valid argument name" 
    2726msgstr "%s n'est pas un nom d'argument valide" 
    2827 
    29 #: tools.py:442 
     28#: tools.py:448 
    3029#, python-format 
    3130msgid "%s value may be an integer" 
    3231msgstr "%s doit être un entier" 
    3332 
    34 #: tools.py:432 
     33#: tools.py:438 
    3534#, python-format 
    3635msgid "%s value may be in range 1-65535" 
    3736msgstr "La valeur de %s doit être compris entre 1 et 65535" 
    3837 
    39 #: tools.py:419 
     38#: tools.py:425 
    4039#, python-format 
    4140msgid "'%(key)s' isn't a valid value for %(value)s argument" 
    4241msgstr "'%(key)s' n'est pas une valeur correcte pour l'argument '%(value)s'" 
    4342 
    44 #: xml/search.xml:62 
    45 #: xml/search.xml:64 
     43#: xml/search.xml:63 xml/search.xml:65 
    4644msgid "'dd/mm/yy' or<br/>'dd/mm/yy HH:MM:SS'" 
    4745msgstr "'jj/mm/aa' ou<br />'jj/mm/aa HH:MM:SS'" 
     46 
     47#: xml/edennavbar.xml:4 
     48msgid "/" 
     49msgstr "/" 
    4850 
    4951#: frags.py:174 
     
    5961msgstr "Nombre ACK" 
    6062 
    61 #: frags.py:122 
    62 #: table.py:219 
     63#: tools.py:188 
     64msgid "ACL" 
     65msgstr "ACL" 
     66 
     67#: frags.py:122 table.py:219 
    6368msgid "Active connection tracking" 
    6469msgstr "Connexions actives." 
     
    7277msgstr "Informations additionnelles" 
    7378 
    74 #: tools.py:167 
    75 #: xml/search.xml:23 
     79#: tools.py:168 xml/search.xml:23 
    7680msgid "Address" 
    7781msgstr "Adresse" 
    7882 
    79 #: frags.py:104 
    80 #: table.py:189 
    81 #: table.py:209 
     83#: frags.py:104 table.py:189 table.py:209 
    8284msgid "All" 
    8385msgstr "Tous" 
    8486 
    85 #: xml/search.xml:30 
    86 #: xml/search.xml:45 
     87#: xml/search.xml:30 xml/search.xml:45 
    8788msgid "Any" 
    8889msgstr "Tous" 
    8990 
    90 #: infopage.py:305 
    91 #: tools.py:184 
     91#: infopage.py:305 tools.py:185 
    9292msgid "Application" 
    9393msgstr "Application" 
    9494 
    95 #: tools.py:153 
     95#: tools.py:154 
    9696msgid "Applications" 
    9797msgstr "Applications" 
     
    105105msgstr "HÃŽtes rejetés :" 
    106106 
    107 #: no_users.conf:70 
    108 #: ,default.conf:80 
     107#: no_users.conf:73 ,default.conf:80 
    109108msgid "Bad TCP packets:" 
    110109msgstr "Paquets TCP rejetés :" 
    111110 
    112 #: no_users.conf:87 
    113 #: ,default.conf:92 
     111#: no_users.conf:91 ,default.conf:92 
    114112msgid "Bad UDP packets:" 
    115113msgstr "Paquets UDP rejetés :" 
    116114 
    117 #: tools.py:187 
    118 #: xml/search.xml:56 
     115#: tools.py:189 xml/search.xml:56 
    119116msgid "Begin" 
    120117msgstr "Début" 
     
    136133msgstr "Fermée" 
    137134 
    138 #: frags.py:127 
    139 #: table.py:224 
     135#: frags.py:127 table.py:224 
    140136msgid "Closed" 
    141137msgstr "Fermée" 
    142138 
    143 #: tools.py:151 
     139#: tools.py:152 
    144140msgid "Connected users" 
    145141msgstr "Utilisateurs connectés" 
     
    149145msgstr "Volumétrie de la connexion" 
    150146 
    151 #: tools.py:154 
     147#: tools.py:155 
    152148msgid "Connection tracking" 
    153149msgstr "Connexions actives" 
    154150 
    155 #: xml/edennavbar.xml:7 
     151#: xml/edennavbar.xml:13 
    156152msgid "Conntrack" 
    157153msgstr "Conntrack" 
     
    161157msgstr "Dest hÃŽte" 
    162158 
    163 #: infopage.py:232 
    164 #: tools.py:164 
     159#: infopage.py:232 tools.py:165 
    165160msgid "Dest port" 
    166161msgstr "Dest port" 
     
    170165msgstr "Destinataire" 
    171166 
    172 #: tools.py:166 
     167#: tools.py:167 
    173168msgid "Destination" 
    174169msgstr "Destination" 
     
    182177msgstr "Port de destination" 
    183178 
    184 #: no_users.conf:114 
    185 #, fuzzy 
    186 msgid "Destinations" 
    187 msgstr "Destinations :" 
    188  
    189 #: no_users.conf:80 
     179#: no_users.conf:120 
     180msgid "Destinations IP:" 
     181msgstr "IP Destinations :" 
     182 
     183#: no_users.conf:83 
    190184msgid "Destinations:" 
    191185msgstr "Destinations :" 
     
    200194msgstr "Rejeté" 
    201195 
    202 #: frags.py:107 
    203 #: table.py:214 
     196#: frags.py:107 table.py:214 
    204197msgid "Dropped" 
    205198msgstr "Rejeté" 
     
    209202msgstr "Paquets rejetés" 
    210203 
    211 #: no_users.conf:92 
    212 #, fuzzy 
    213 msgid "Dropped packets:" 
    214 msgstr "Paquets rejetés" 
    215  
    216 #: tools.py:188 
    217 #: xml/search.xml:57 
     204#: tools.py:190 xml/search.xml:57 
    218205msgid "End" 
    219206msgstr "Fin" 
     
    236223msgstr "Erreur : Impossible de récupérer la table." 
    237224 
    238 #: frags.py:117 
    239 #: table.py:199 
     225#: frags.py:117 table.py:199 
    240226msgid "Established" 
    241227msgstr "Établis." 
     
    249235msgstr "Fichier introuvable" 
    250236 
    251 #: tools.py:180 
     237#: tools.py:181 
    252238msgid "First packet" 
    253239msgstr "Premier paquet" 
     
    265251msgstr "Aide" 
    266252 
    267 #: xml/edennavbar.xml:2 
     253#: xml/edennavbar.xml:7 
    268254msgid "Home" 
    269255msgstr "Accueil" 
    270256 
    271 #: no_users.conf:40 
    272 #: ,default.conf:40 
     257#: no_users.conf:40 ,default.conf:40 
    273258msgid "Host information" 
    274259msgstr "Informations hÃŽte" 
     
    282267msgstr "Type ICMP" 
    283268 
    284 #: no_users.conf:123 
    285 #, fuzzy 
    286 msgid "IP Sources" 
    287 msgstr "Source" 
    288  
    289269#: infopage.py:146 
    290270msgid "In interface" 
     
    295275msgstr "Heure d'arrivée" 
    296276 
    297 #: tools.py:181 
     277#: tools.py:182 
    298278msgid "Last packet" 
    299279msgstr "Dernier paquet" 
     
    312292msgstr "Identifié comme %s" 
    313293 
    314 #: nulog.py:160 
    315 #: pages.py:150 
     294#: nulog.py:160 pages.py:150 
    316295msgid "Login" 
    317296msgstr "S'identifier" 
     
    337316msgstr "Marque" 
    338317 
    339 #: no_users.conf:107 
    340 #, fuzzy 
    341 msgid "Most TCP protocols:" 
    342 msgstr "Ports TCP" 
    343  
    344 #: xml/edennavbar.xml:3 
     318#: xml/edennavbar.xml:9 
    345319msgid "Network" 
    346320msgstr "Réseau" 
    347321 
    348 #: graph.py:267 
    349 #: table.py:86 
     322#: graph.py:267 table.py:86 
    350323msgid "No data" 
    351324msgstr "Aucune donnée" 
    352325 
    353 #: tools.py:311 
     326#: tools.py:317 
    354327msgid "No sort" 
    355328msgstr "Aucun tri" 
     
    363336msgstr "Rien" 
    364337 
    365 #: xml/edennavbar.xml:5 
     338#: xml/edennavbar.xml:11 
    366339msgid "Nuface" 
    367340msgstr "Nuface" 
    368341 
    369 #: xml/edennavbar.xml:6 
     342#: xml/edennavbar.xml:12 
    370343msgid "Nulog" 
    371344msgstr "Nulog" 
    372345 
    373346#: frags.py:175 
    374 msgid "Nulog can't fetch data from backend. Please check your configuration file" 
    375 msgstr "Nulog ne peut récupérer de donnée depuis le backend. Merci de vérifier votre fichier de configuration." 
    376  
    377 #: xml/nulog.xml:4 
     347msgid "" 
     348"Nulog can't fetch data from backend. Please check your configuration file" 
     349msgstr "" 
     350"Nulog ne peut récupérer de donnée depuis le backend. Merci de vérifier votre " 
     351"fichier de configuration." 
     352 
     353#: xml/404.xml:4 xml/nulog.xml:4 
    378354msgid "Nulog2.0: firewall logs analysis" 
    379355msgstr "Nulog2.0 : interface d'analyse des journaux du pare-feu" 
     
    383359msgstr "Ouverte" 
    384360 
    385 #: frags.py:114 
    386 #: table.py:194 
     361#: frags.py:114 table.py:194 
    387362msgid "Opened" 
    388363msgstr "Ouverte" 
     
    412387msgstr "ID du paquet" 
    413388 
    414 #: tools.py:152 
     389#: tools.py:153 
    415390msgid "Packet info" 
    416391msgstr "Informations paquet" 
    417392 
    418 #: tools.py:150 
    419 #: default.conf:51 
     393#: tools.py:151 no_users.conf:53 ,no_users.conf:137 ,default.conf:51 
    420394#: ,default.conf:153 
    421395msgid "Packet list" 
    422396msgstr "Liste des paquets" 
    423397 
    424 #: tools.py:179 
     398#: tools.py:180 
    425399msgid "Packets" 
    426400msgstr "Paquets" 
     
    434408msgstr "Paquets sortants" 
    435409 
    436 #: default.conf:97 
     410#: no_users.conf:96 ,default.conf:97 
    437411msgid "Packets:" 
    438412msgstr "Paquets" 
     
    446420msgstr "Mot de passe :" 
    447421 
    448 #: tools.py:457 
     422#: tools.py:463 
    449423msgid "Please give a correct IP address or hostname" 
    450424msgstr "Veuillez entrer une adresse IP ou un nom d'hÃŽte correct." 
     
    454428msgstr "Veuillez entrer un rendu correct !" 
    455429 
    456 #: no_users.conf:26 
    457 #: ,default.conf:26 
     430#: no_users.conf:26 ,default.conf:26 
    458431msgid "Port information" 
    459432msgstr "Informations port" 
    460433 
    461 #: tools.py:186 
     434#: tools.py:187 xml/search.xml:58 
    462435msgid "Prefix" 
    463436msgstr "Préfixe" 
    464437 
    465 #: tools.py:173 
     438#: tools.py:174 
    466439msgid "Proto" 
    467440msgstr "Proto" 
     
    504477msgstr "Tri" 
    505478 
    506 #: tools.py:313 
     479#: tools.py:319 
    507480#, python-format 
    508481msgid "Sorted by %s" 
    509482msgstr "Trié par %s" 
    510483 
    511 #: tools.py:165 
    512 #: xml/search.xml:40 
     484#: tools.py:166 xml/search.xml:40 
    513485msgid "Source" 
    514486msgstr "Source" 
    515487 
    516 #: default.conf:138 
     488#: no_users.conf:129 ,default.conf:138 
    517489msgid "Source IP:" 
    518490msgstr "Source" 
    519491 
    520 #: no_users.conf:74 
     492#: no_users.conf:77 
    521493msgid "Source dropped packets:" 
    522494msgstr "HÃŽtes sources rejetés :" 
    523495 
    524 #: tools.py:163 
    525 #: xml/search.xml:21 
     496#: tools.py:164 xml/search.xml:21 
    526497msgid "Source port" 
    527498msgstr "Port source" 
     
    539510msgstr "Port source" 
    540511 
    541 #: tools.py:172 
    542 #: xml/search.xml:24 
     512#: tools.py:173 xml/search.xml:24 
    543513msgid "State" 
    544514msgstr "État" 
     
    548518msgstr "État :" 
    549519 
    550 #: tools.py:189 
    551 #: xml/edennavbar.xml:4 
     520#: tools.py:191 xml/edennavbar.xml:10 
    552521msgid "System" 
    553522msgstr "SystÚme" 
     
    557526msgstr "Fenêtre TCP" 
    558527 
    559 #: tools.py:159 
     528#: tools.py:160 
    560529msgid "TCP dest port" 
    561530msgstr "Port dest TCP" 
    562531 
    563 #: tools.py:145 
     532#: tools.py:146 
    564533msgid "TCP ports" 
    565534msgstr "Ports TCP" 
    566535 
    567 #: default.conf:114 
     536#: no_users.conf:112 ,default.conf:114 
    568537msgid "TCP ports:" 
    569538msgstr "Ports TCP" 
    570539 
    571 #: tools.py:160 
     540#: tools.py:161 
    572541msgid "TCP source port" 
    573542msgstr "Port source TCP" 
     
    581550msgstr "TTL" 
    582551 
    583 #: no_users.conf:23 
    584 #: ,no_users.conf:54 
     552#: no_users.conf:23 ,no_users.conf:56 
    585553msgid "This feature is disabled because you don't use NuFW." 
    586 msgstr "Cette fonctionnalité est désactivée parce que vous n'utilisez pas NuFW." 
    587  
    588 #: tools.py:182 
     554msgstr "" 
     555"Cette fonctionnalité est désactivée parce que vous n'utilisez pas NuFW." 
     556 
     557#: tools.py:183 
    589558msgid "Time" 
    590559msgstr "Date" 
     
    606575msgstr "Taille totale :" 
    607576 
    608 #: tools.py:161 
     577#: tools.py:162 
    609578msgid "UDP dest port" 
    610579msgstr "Port dest UDP" 
    611580 
    612 #: tools.py:146 
     581#: tools.py:147 
    613582msgid "UDP ports" 
    614583msgstr "Ports UDP" 
    615584 
    616 #: tools.py:162 
     585#: tools.py:163 
    617586msgid "UDP source port" 
    618587msgstr "Port source UDP" 
     
    626595msgstr "URGP" 
    627596 
    628 #: graph.py:264 
    629 #: table.py:83 
     597#: graph.py:264 table.py:83 
    630598msgid "Unable to find this table" 
    631599msgstr "Impossible de trouver cette table" 
    632600 
    633 #: tools.py:169 
    634 #: tools.py:170 
     601#: tools.py:170 tools.py:171 
    635602msgid "User" 
    636603msgstr "Utilisateur" 
    637604 
    638 #: infopage.py:94 
    639 #: default.conf:18 
     605#: infopage.py:94 default.conf:18 
    640606msgid "User information" 
    641607msgstr "Informations sur l'utilisateur" 
    642608 
    643 #: xml/left.xml:47 
    644 #: default.conf:57 
     609#: xml/left.xml:47 default.conf:57 
    645610msgid "User session history" 
    646611msgstr "Historique des sessions utilisateurs" 
     
    650615msgstr "UserID" 
    651616 
    652 #: infopage.py:98 
    653 #: xml/search.xml:19 
     617#: infopage.py:98 xml/search.xml:19 
    654618msgid "Username" 
    655619msgstr "Nom d'utilisateur" 
    656620 
    657 #: tools.py:171 
     621#: tools.py:172 
    658622msgid "Username contains" 
    659623msgstr "Le nom d'utilisateur contient" 
     
    663627msgstr "Nom d'utilisateur:" 
    664628 
    665 #: tools.py:149 
     629#: tools.py:150 
    666630msgid "Users" 
    667631msgstr "Utilisateurs" 
    668632 
    669 #: default.conf:164 
     633#: default.conf:165 
    670634msgid "Users sessions:" 
    671635msgstr "Sessions des utilisateurs :" 
     
    679643msgstr "utilisateur(s) connecté(s)" 
    680644 
    681 #: tools.py:148 
     645#: tools.py:149 
    682646msgid "destination IP" 
    683647msgstr "IP Destination" 
     
    691655msgstr "entrées dans ulog" 
    692656 
    693 #: tools.py:394 
     657#: tools.py:400 
    694658msgid "for" 
    695659msgstr "pour" 
     
    707671msgstr "précédent" 
    708672 
    709 #: tools.py:147 
     673#: tools.py:148 
    710674msgid "source IP" 
    711675msgstr "IP source" 
    712  
  • mirror/edenwall/nulog2/trunk/nulog-web/tools.py

    r7752 r7907  
    4545 
    4646DATETIME_FORMAT = '%m-%y-%d %H:%M:%S' 
     47NUFACE_URL = None 
    4748 
    4849def parseDatetime(gvalue, endofday=False): 
     
    185186                          'tiny':       self.ArgType(filter=False), 
    186187                          'oob_prefix': self.ArgType(_('Prefix')), 
     188                          'acl':        self.ArgType(_('ACL'),             self._check_int,       self._data_acl), 
    187189                          'start_time': self.ArgType(_('Begin')), 
    188190                          'end_time':   self.ArgType(_('End')), 
     
    255257        else: 
    256258            return value 
     259 
     260    def _data_acl(self, value): 
     261 
     262        return tags.a(href=NUFACE_URL % value)[tags.img(src='img/acl.png')] 
    257263 
    258264    def _data_ip(self, value): 
  • mirror/edenwall/nulog2/trunk/tools/traffic_maker.py

    r7216 r7907  
    4545    apps = ['/usr/bin/ssh', '/usr/bin/firefox', '/usr/bin/irssi', '/bin/zsh', '/usr/bin/menareants/', '/usr/bin/bzflag', 
    4646            '/usr/local/bin/frozzen-bubble', '/home/gryzor/tachatte/tachatte.sh'] 
    47     prefixs = ['DROPPED', '', '', 'AUTHENTIFICATED', 'AUTHENTIFICATED'] 
     47    prefixs = [['DROPPED', 'FWD:5:DROPPED', 'IN:8:DROPPED'], 
     48               '', 
     49               '', 
     50               'AUTHENTIFICATED', 
     51               'AUTHENTIFICATED'] 
    4852    ports = [21,22,23,80,8080,6667,6666,5130,5461,113,447,69] 
    4953 
     
    105109        else: 
    106110            prefix = self.prefixs[state] 
     111            if isinstance(prefix, list): 
     112                prefix = choice(prefix) 
    107113            os = choice(self.OSs) 
    108114            app = choice(self.apps)