PIX 501 configuration

jacky90000 Messages postés 15 Statut Membre -  
Nico le Vosgien Messages postés 1580 Statut Contributeur -
Bonjour, alors voila mon probleme je dois configurer 2 pix 501 entre eux pour faire un VPN site a site mais je suis un debutant et je ne vois pas trop comment je pourrais faire ! J'ai deja mis les adresse outside et inside de chaque pix. Pour le moment mes 2 pix sont relier a 2 ordinateur differents et pour tester je voudrait effectuer un ping de l'ordi 1 a l'ordi 2 mais sa ne marche pas surement a cause de la configuration des pix. Que dois-je ajouter ?

2 réponses

  1. Nico le Vosgien Messages postés 1580 Statut Contributeur 266
     
    Bonjour,

    pour te dire ce qu'il faut éventuellement ajouter ou supprimer à ta conf, encore faudrait il savoir ce que tu y as mis ..
    0
  2. jacky90000 Messages postés 15 Statut Membre 1
     
    PIX Version 6.3(1)
    interface ethernet0 auto
    interface ethernet1 100full
    nameif ethernet0 outside security0
    nameif ethernet1 inside security100
    enable password 8Ry2YjIyt7RRXU24 encrypted
    passwd 2KFQnbNIdI.2KYOU encrypted
    hostname pix1
    domain-name chsld
    fixup protocol ftp 21
    fixup protocol h323 h225 1720
    fixup protocol h323 ras 1718-1719
    fixup protocol http 80
    fixup protocol ils 389
    fixup protocol rsh 514
    fixup protocol rtsp 554
    fixup protocol sip 5060
    fixup protocol sip udp 5060
    fixup protocol skinny 2000
    fixup protocol smtp 25
    fixup protocol sqlnet 1521
    names
    <--- More --->

    pager lines 24
    mtu outside 1500
    mtu inside 1500
    ip address outside 192.168.2.1 255.255.255.0
    ip address inside 192.168.0.254 255.255.255.0
    ip audit info action alarm
    ip audit attack action alarm
    pdm history enable
    arp timeout 14400
    nat (inside) 1 0.0.0.0 0.0.0.0 0 0
    timeout xlate 3:00:00
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
    timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
    timeout uauth 0:05:00 absolute
    aaa-server TACACS+ protocol tacacs+
    aaa-server RADIUS protocol radius
    aaa-server LOCAL protocol local
    http server enable
    http 192.168.0.1 255.255.255.255 inside
    no snmp-server location
    no snmp-server contact
    snmp-server community public
    no snmp-server enable traps
    floodguard enable
    <--- More --->

    telnet timeout 5
    ssh timeout 5
    console timeout 0
    terminal width 80
    Cryptochecksum:986a1f0af339434cfb2c2897cd84da11
    : end

    Voila voila ma configuration desolé j'avais cru l'avoir envoyer mais elle n'avait pas été prise en compte ....
    0
    1. Nico le Vosgien Messages postés 1580 Statut Contributeur 266
       
      il y a manifestement pas mal de choses à regarder mais, en premier lieu, je pense qu'il te faut te concentrer sur un point majeur : un firewall est généralement utilisé pour contrôler le passage d'un réseau à un autre ... hors ici, ton lan inside & outside est identique : ça ne peut fonctionner
      0
    2. jacky90000 Messages postés 15 Statut Membre 1
       
      Voila j'ai fais pas mal de modification et sa me donne tout ceci :

      pix1(config)# SH RU
      : Saved
      :
      PIX Version 6.3(1)
      interface ethernet0 auto
      interface ethernet1 100full
      nameif ethernet0 outside security0
      nameif ethernet1 inside security100
      enable password 8Ry2YjIyt7RRXU24 encrypted
      passwd 2KFQnbNIdI.2KYOU encrypted
      hostname pix1
      domain-name chsld
      fixup protocol ftp 21
      fixup protocol h323 h225 1720
      fixup protocol h323 ras 1718-1719
      fixup protocol http 80
      fixup protocol ils 389
      fixup protocol rsh 514
      fixup protocol rtsp 554
      fixup protocol sip 5060
      fixup protocol sip udp 5060
      fixup protocol skinny 2000
      fixup protocol smtp 25
      fixup protocol sqlnet 1521
      names
      <--- More --->

      object-group service standard_TCP tcp
      port-object range 1 1023
      object-group service Standard_udp udp
      port-object range 1 1023
      access-list inside_access_in permit ip any any
      access-list inside_nat0_outbound permit ip 192.168.0.0 255.255.255.0 192.168.1.0 255.255.255.0
      access-list outside_cryptomap_21 permit ip 192.168.0.0 255.255.255.0 192.168.1.0 255.255.255.0
      access-list outside_access_in permit ip any any
      pager lines 24
      mtu outside 1500
      mtu inside 1500
      ip address outside 192.168.2.1 255.255.255.0
      ip address inside 192.168.0.254 255.255.255.0
      ip audit info action alarm
      ip audit attack action alarm
      pdm location 192.168.0.0 255.255.255.0 inside
      pdm location 192.168.2.1 255.255.255.255 inside
      pdm location 192.168.1.1 255.255.255.255 outside
      pdm location 192.168.2.2 255.255.255.255 outside
      pdm history enable
      arp timeout 14400
      nat (inside) 0 access-list inside_nat0_outbound
      nat (inside) 0 0.0.0.0 0.0.0.0 0 0
      access-group outside_access_in in interface outside
      <--- More --->

      access-group inside_access_in in interface inside
      route outside 0.0.0.0 0.0.0.0 192.168.2.2 1
      timeout xlate 3:00:00
      timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
      timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
      timeout uauth 0:05:00 absolute
      aaa-server TACACS+ protocol tacacs+
      aaa-server RADIUS protocol radius
      aaa-server LOCAL protocol local
      http server enable
      http 192.168.0.1 255.255.255.255 inside
      no snmp-server location
      no snmp-server contact
      snmp-server community public
      no snmp-server enable traps
      floodguard enable
      sysopt connection permit-ipsec
      crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
      crypto map outside_map 21 ipsec-isakmp
      crypto map outside_map 21 match address outside_cryptomap_21
      crypto map outside_map 21 set peer 192.168.2.2
      crypto map outside_map 21 set transform-set ESP-DES-SHA
      crypto map outside_map interface outside
      isakmp enable outside
      <--- More --->

      isakmp key ******** address 192.168.2.2 netmask 255.255.255.255 no-xauth no-config-mode
      isakmp policy 20 authentication pre-share
      isakmp policy 20 encryption des
      isakmp policy 20 hash sha
      isakmp policy 20 group 2
      isakmp policy 20 lifetime 86400
      telnet timeout 5
      ssh timeout 5
      console timeout 0
      terminal width 80
      Cryptochecksum:9f1f07982e34294186615a5921ceb94b
      : end
      0
    3. Nico le Vosgien Messages postés 1580 Statut Contributeur 266
       
      Effectivement, il y a du changement !!!

      Tu n'y es pas allé avec le dos de la cuillère ....et j'imagine que si tu repostes ta conf, c'est que ça ne fonctionne pas ? :)

      A première vue, tu n'es plus très loin du but

      Comme ça me fatigue à l'idée de décortiquer toute ta conf, peux tu passer ces commandes ?

      show crypto isakmp sa
      show crypto IPSec sa
      debug crypto IPSec
      debug crypto isakmp

      Sinon, pour eviter de mélanger les problèmes, je pense que tu peux virer dans un premier temps

      nat (inside) 0 0.0.0.0 0.0.0.0 0 0
      access-group outside_access_in in interface outside
      access-group inside_access_in in interface inside
      0