IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Réseau Discussion :

besoin d'aide sur snort.conf


Sujet :

Réseau

  1. #1
    Futur Membre du Club
    Inscrit en
    Avril 2007
    Messages
    10
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 10
    Points : 6
    Points
    6
    Par défaut besoin d'aide sur snort.conf
    salut

    j'ai quelques questions conçernant la configuration de snort!

    j'ai un exposé où je doit manipuler "snort" et "asterisk" ( pour implementer un système d'alerte vocale pour les intrusions réseaux )

    j'ai suivi ce document http://www.howtoforge.com/intrusion-...on-ubuntu-7.10 " ( Pourriez vous lire ce tutoriel afin de mieux me comprendre? )

    je me suis arrêté sur cette commande " vim /etc/snort/snort.conf "
    et la je ne sais pas se que je dois mettre comme configuration

    J'ai ADSL easy " algérie " mes @ip changent à chaque fois que je me reconnecte.
    41.201.x.x\?? !! ( "x" change à chaque nouvelle connexion )

    Autre chose l'encadreur demande de faire en sorte que snort soit configuré pour une détection de ping ou quelque chose comme ça :s

    J'aimerais donc savoir ce que je dois modifier de début à la fin sur le fichier snort.conf ( des explications precises pour quelqu'un qui ne connait rien de rien :s )
    et ce que je dois faire pour arriver au but demandé par l'encadreur

  2. #2
    Rédacteur
    Avatar de CedrX
    Inscrit en
    Avril 2007
    Messages
    1 111
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 1 111
    Points : 1 525
    Points
    1 525
    Par défaut
    Malheureusement nous ne pouvons pas te fournir un fichier snort.conf tout fait.
    Il faudrait que tu commences par en créer un et ensuite poser des questions sur les points qui te paraissent obscurs.

    Enfin le lien que tu donnes dans ton premier post n'était pas bon je l'ai corrigé.

  3. #3
    Futur Membre du Club
    Inscrit en
    Avril 2007
    Messages
    10
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 10
    Points : 6
    Points
    6
    Par défaut
    j'ai eux plusieurs problemes sur le lancement de snort!
    et sa fait des mois que je bloque sur se logiciel ! alors qu'il me reste asterisk et ensuite le systeme ( faire tout sa avant le mois Mai, projet fin d'étude )

    j'ai trouvé que le probleme c'est que je c'est pas exactement ( malgré tout les recherche que j'ai fait ) quelle sont les ligne a modifier et a ajouté et les regle a mettre pour que sa fonctionne parfaitement !

    SVP aidez moi!

  4. #4
    Futur Membre du Club
    Inscrit en
    Avril 2007
    Messages
    10
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 10
    Points : 6
    Points
    6
    Par défaut
    salut !! j'ai relier deux pc avec un cable croisé !! j'ai terminé où je me ss arreté

    mais je me suis bloqué sur un probleme, sur cette étape ( je suis toujour le meme doc )

    12. Time to test Snort
    In the terminal type:
    # snort -c /etc/snort/snort.conf
    If everything went well you should see an ascii pig.
    To end the test hit ctrl + c.

    pour moi il m'affiche a la fin fatal error ( alors que je suivez bien le doc ) SVP AIDEZ MOI

    :~/snorttmp/snort-2.8.3.2/etc# snort -c /etc/snort/snort.conf
    Running in IDS mode

    --== Initializing Snort ==--
    Initializing Output Plugins!
    Initializing Preprocessors!
    Initializing Plug-ins!
    Parsing Rules file /etc/snort/snort.conf
    PortVar 'HTTP_PORTS' defined : [ 80 ]
    PortVar 'SHELLCODE_PORTS' defined : [ 0:79 81:65535 ]
    PortVar 'ORACLE_PORTS' defined : [ 1521 ]
    Frag3 global config:
    Max frags: 65536
    Fragment memory cap: 4194304 bytes
    Frag3 engine config:
    Target-based policy: FIRST
    Fragment timeout: 60 seconds
    Fragment min_ttl: 1
    Fragment ttl_limit (not used): 5
    Fragment Problems: 1
    Stream5 global config:
    Track TCP sessions: ACTIVE
    Max TCP sessions: 8192
    Memcap (for reassembly packet storage): 8388608
    Track UDP sessions: INACTIVE
    Track ICMP sessions: INACTIVE
    Log info if session memory consumption exceeds 1048576
    Stream5 TCP Policy config:
    Reassembly Policy: FIRST
    Timeout: 30 seconds
    Min ttl: 1
    Maximum number of bytes to queue per session: 1048576
    Maximum number of segs to queue per session: 2621
    Options:
    Static Flushpoint Sizes: YES
    Reassembly Ports:
    21 client (Footprint)
    23 client (Footprint)
    25 client (Footprint)
    42 client (Footprint)
    53 client (Footprint)
    80 client (Footprint)
    110 client (Footprint)
    111 client (Footprint)
    135 client (Footprint)
    136 client (Footprint)
    137 client (Footprint)
    139 client (Footprint)
    143 client (Footprint)
    445 client (Footprint)
    513 client (Footprint)
    514 client (Footprint)
    1433 client (Footprint)
    1521 client (Footprint)
    2401 client (Footprint)
    3306 client (Footprint)
    HttpInspect Config:
    GLOBAL CONFIG
    Max Pipeline Requests: 0
    Inspection Type: STATELESS
    Detect Proxy Usage: NO
    IIS Unicode Map Filename: /etc/snort/unicode.map
    IIS Unicode Map Codepage: 1252
    DEFAULT SERVER CONFIG:
    Server profile: All
    Ports: 80 8080 8180
    Server Flow Depth: 300
    Client Flow Depth: 300
    Max Chunk Length: 500000
    Max Header Field Length: 0
    Inspect Pipeline Requests: YES
    URI Discovery Strict Mode: NO
    Allow Proxy Usage: NO
    Disable Alerting: NO
    Oversize Dir Length: 500
    Only inspect URI: NO
    Normalize HTTP Headers: NO
    Normalize HTTP Cookies: NO
    Ascii: YES alert: NO
    Double Decoding: YES alert: YES
    %U Encoding: YES alert: YES
    Bare Byte: YES alert: YES
    Base36: OFF
    UTF 8: OFF
    IIS Unicode: YES alert: YES
    Multiple Slash: YES alert: NO
    IIS Backslash: YES alert: NO
    Directory Traversal: YES alert: NO
    Web Root Traversal: YES alert: YES
    Apache WhiteSpace: YES alert: NO
    IIS Delimiter: YES alert: NO
    IIS Unicode Map: GLOBAL IIS UNICODE MAP CONFIG
    Non-RFC Compliant Characters: NONE
    Whitespace Characters: 0x09 0x0b 0x0c 0x0d
    rpc_decode arguments:
    Ports to decode RPC on: 111 32771
    alert_fragments: INACTIVE
    alert_large_fragments: ACTIVE
    alert_incomplete: ACTIVE
    alert_multiple_requests: ACTIVE
    Portscan Detection Config:
    Detect Protocols: TCP UDP ICMP IP
    Detect Scan Type: portscan portsweep decoy_portscan distributed_portscan
    Sensitivity Level: Low
    Memcap (in bytes): 10000000
    Number of Nodes: 36900

    Tagged Packet Limit: 256
    Loading dynamic engine /usr/local/lib/snort_dynamicengine/libsf_engine.so... done
    Loading all dynamic preprocessor libs from /usr/local/lib/snort_dynamicpreprocessor/...
    Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_dns_preproc.so... done
    Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_ftptelnet_preproc.so... done
    Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//lib_sfdynamic_preprocessor_example.so... done
    Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_dcerpc_preproc.so... done
    Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_ssh_preproc.so... done
    Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_smtp_preproc.so... done
    Loading dynamic preprocessor library /usr/local/lib/snort_dynamicpreprocessor//libsf_ssl_preproc.so... done
    Finished Loading all dynamic preprocessor libs from /usr/local/lib/snort_dynamicpreprocessor/
    FTPTelnet Config:
    GLOBAL CONFIG
    Inspection Type: stateful
    Check for Encrypted Traffic: YES alert: YES
    Continue to check encrypted data: NO
    TELNET CONFIG:
    Ports: 23
    Are You There Threshold: 200
    Normalize: YES
    Detect Anomalies: NO
    FTP CONFIG:
    FTP Server: default
    Ports: 21
    Check for Telnet Cmds: YES alert: YES
    Identify open data channels: YES
    FTP Client: default
    Check for Bounce Attacks: YES alert: YES
    Check for Telnet Cmds: YES alert: YES
    Max Response Length: 256

    SMTP Config:
    Ports: 25 587 691
    Inspection Type: Stateful
    Normalize: EXPN RCPT VRFY
    Ignore Data: No
    Ignore TLS Data: No
    Ignore SMTP Alerts: No
    Max Command Line Length: Unlimited
    Max Specific Command Line Length:
    ETRN:500 EXPN:255 HELO:500 HELP:500 MAIL:260
    RCPT:300 VRFY:255
    Max Header Line Length: Unlimited
    Max Response Line Length: Unlimited
    X-Link2State Alert: Yes
    Drop on X-Link2State Alert: No
    Alert on commands: None

    DCE/RPC Decoder config:
    Autodetect ports ENABLED
    SMB fragmentation ENABLED
    DCE/RPC fragmentation ENABLED
    Max Frag Size: 3000 bytes
    Memcap: 100000 KB
    Alert if memcap exceeded DISABLED
    Reassembly increment: DISABLED

    DNS config:
    DNS Client rdata txt Overflow Alert: ACTIVE
    Obsolete DNS RR Types Alert: INACTIVE
    Experimental DNS RR Types Alert: INACTIVE
    Ports: 53
    SSLPP config:
    Encrypted packets: not inspected
    Ports:
    443 465 563 636 989
    992 993 994 995

    +++++++++++++++++++++++++++++++++++++++++++++++++++
    Initializing rule chains...
    2830 Snort rules read
    2830 detection rules
    0 decoder rules
    0 preprocessor rules
    2830 Option Chains linked into 215 Chain Headers
    0 Dynamic rules
    +++++++++++++++++++++++++++++++++++++++++++++++++++

    +-------------------[Rule Port Counts]---------------------------------------
    | tcp udp icmp ip
    | src 122 12 0 0
    | dst 2382 163 0 0
    | any 68 50 50 20
    | nc 22 8 15 18
    | s+d 3 3 0 0
    +----------------------------------------------------------------------------

    +-----------------------[thresholding-config]----------------------------------
    | memory-cap : 1048576 bytes
    +-----------------------[thresholding-global]----------------------------------
    | none
    +-----------------------[thresholding-local]-----------------------------------
    | gen-id=1 sig-id=3152 type=Threshold tracking=src count=5 seconds=2
    | gen-id=1 sig-id=2495 type=Both tracking=dst count=20 seconds=60
    | gen-id=1 sig-id=2924 type=Threshold tracking=dst count=10 seconds=60
    | gen-id=1 sig-id=2496 type=Both tracking=dst count=20 seconds=60
    | gen-id=1 sig-id=2494 type=Both tracking=dst count=20 seconds=60
    | gen-id=1 sig-id=3527 type=Limit tracking=dst count=5 seconds=60
    | gen-id=1 sig-id=2275 type=Threshold tracking=dst count=5 seconds=60
    | gen-id=1 sig-id=3273 type=Threshold tracking=src count=5 seconds=2
    | gen-id=1 sig-id=3542 type=Threshold tracking=src count=5 seconds=2
    | gen-id=1 sig-id=2923 type=Threshold tracking=dst count=10 seconds=60
    | gen-id=1 sig-id=2523 type=Both tracking=dst count=10 seconds=10
    | gen-id=1 sig-id=3543 type=Threshold tracking=src count=5 seconds=2
    +-----------------------[suppression]------------------------------------------
    | none
    -------------------------------------------------------------------------------
    Rule application order: activation->dynamic->pass->drop->alert->log
    Log directory = /var/log/snort
    Verifying Preprocessor Configurations!
    Warning: flowbits key 'realplayer.playlist' is checked but not ever set.
    Warning: flowbits key 'ms_sql_seen_dns' is checked but not ever set.
    Warning: flowbits key 'smb.tree.create.llsrpc' is set but not ever checked.
    Warning: flowbits key 'dce.bind.veritas' is set but not ever checked.
    35 out of 512 flowbits in use.
    ***
    *** interface device lookup found: eth0
    ***

    Initializing Network Interface eth0
    Decoding Ethernet on interface eth0
    database: compiled support for ( mysql )
    database: configured to use mysql
    database: user = root
    database: password is set
    database: database name = snort
    database: host = localhost
    database: sensor name = 192.168.0.1
    database: mysql_error: Table 'snort.sensor' doesn't exist
    database: mysql_error: Table 'snort.sensor' doesn't exist
    SQL=INSERT INTO sensor (hostname, interface, detail, encoding, last_cid) VALUES ('192.168.0.1','eth0',1,0, 0)
    database: mysql_error: Table 'snort.sensor' doesn't exist
    database: Problem obtaining SENSOR ID (sid) from snort->sensor
    ERROR: When this plugin starts, a SELECT query is run to find the sensor id for the
    currently running sensor. If the sensor id is not found, the plugin will run
    an INSERT query to insert the proper data and generate a new sensor id. Then a
    SELECT query is run to get the newly allocated sensor id. If that fails then
    this error message is generated.

    Some possible causes for this error are:
    * the user does not have proper INSERT or SELECT privileges
    * the sensor table does not exist

    If you are _absolutely_ certain that you have the proper privileges set and
    that your database structure is built properly please let me know if you
    continue to get this error. You can contact me at (roman@danyliw.com).

    Fatal Error, Quitting..

  5. #5
    Futur Membre du Club
    Inscrit en
    Avril 2007
    Messages
    10
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 10
    Points : 6
    Points
    6
    Par défaut
    salut

    il faut faire quoi pour évité cette fatal erreur

Discussions similaires

  1. besoin d'aide sur trigger
    Par devalender dans le forum SQL
    Réponses: 2
    Dernier message: 18/07/2004, 23h28
  2. [D7] Besoin d'aide sur un PChar
    Par bobby-b dans le forum Langage
    Réponses: 6
    Dernier message: 30/06/2004, 17h42
  3. Filemaker ... besoin d'aide sur les Plugin
    Par joange dans le forum Autres SGBD
    Réponses: 3
    Dernier message: 22/04/2004, 11h16
  4. [intermedia] besoin d'aide sur script PL/SQL
    Par SteelBox dans le forum PL/SQL
    Réponses: 8
    Dernier message: 05/01/2004, 20h59
  5. [CR] besoin d'aide sur les formules
    Par GuillaumeDSA dans le forum Formules
    Réponses: 4
    Dernier message: 10/07/2003, 13h19

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo