Configuration VPN
Résolu/Fermé
woodba
-
13 mai 2008 à 12:13
p_oum Messages postés 963 Date d'inscription mardi 6 mai 2008 Statut Membre Dernière intervention 2 avril 2012 - 13 mai 2008 à 19:53
p_oum Messages postés 963 Date d'inscription mardi 6 mai 2008 Statut Membre Dernière intervention 2 avril 2012 - 13 mai 2008 à 19:53
A voir également:
- Configuration VPN
- Ethernet n'a pas de configuration ip valide - Guide
- Vpn gratuit - Guide
- Configuration chromecast - Guide
- Panneau de configuration - Guide
- Retablir configuration usine chromecast - Guide
3 réponses
p_oum
Messages postés
963
Date d'inscription
mardi 6 mai 2008
Statut
Membre
Dernière intervention
2 avril 2012
87
13 mai 2008 à 12:25
13 mai 2008 à 12:25
Lu,
Quel est le message d'erreur ?
Post ta configuration, sa pourra nous aider (enfin peut-etre)
Sinon, verifie tes ACL (ajoute un permit pour tous le traffic icmp) et tes routes (genre du RIPv2)
Quel est le message d'erreur ?
Post ta configuration, sa pourra nous aider (enfin peut-etre)
Sinon, verifie tes ACL (ajoute un permit pour tous le traffic icmp) et tes routes (genre du RIPv2)
p_oum
Messages postés
963
Date d'inscription
mardi 6 mai 2008
Statut
Membre
Dernière intervention
2 avril 2012
87
13 mai 2008 à 16:13
13 mai 2008 à 16:13
Re,
Pour l'histoire du any any je n'est pas de solution car j'ai eu le mm genre de pb sur un PIX 501.
Par contre si tu veux ameliorer la securité retire access-list 100 permit any any sur les deux routeur (test qd mm si sa fonctionne tjrs !!!!!!!!!!!)
Si tu pense ton pb résolu noubli pas de le signaler en modifiant le status .........
Pour l'histoire du any any je n'est pas de solution car j'ai eu le mm genre de pb sur un PIX 501.
Par contre si tu veux ameliorer la securité retire access-list 100 permit any any sur les deux routeur (test qd mm si sa fonctionne tjrs !!!!!!!!!!!)
Si tu pense ton pb résolu noubli pas de le signaler en modifiant le status .........
p_oum
Messages postés
963
Date d'inscription
mardi 6 mai 2008
Statut
Membre
Dernière intervention
2 avril 2012
87
13 mai 2008 à 19:53
13 mai 2008 à 19:53
De rien
Voila un config de PIX utilisant une liason VPN la syntaxe n'est pas tous a fais la même mais sa peut être t'aider :
PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password *************** encrypted
passwd ********************* encrypted
hostname ******************
domain-name *****************
clock timezone CET 1
clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
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
fixup protocol tftp 69
names
name 192.168.18.81 inside
name 10.0.0.2 **********
object-group service WEB tcp
port-object eq www
port-object eq https
object-group network *******************
network-object 192.168.18.0 255.255.255.240
network-object 192.168.18.16 255.255.255.240
network-object 192.168.18.32 255.255.255.240
network-object 192.168.18.48 255.255.255.240
network-object 192.168.18.64 255.255.255.240
network-object 192.168.18.96 255.255.255.240
network-object 192.168.101.0 255.255.255.0
network-object 192.168.103.0 255.255.255.0
network-object 192.168.104.0 255.255.255.0
network-object 192.168.113.0 255.255.255.0
access-list in->outside permit tcp 192.168.18.80 255.255.255.240 any object-group WEB
access-list in->outside permit udp 192.168.18.80 255.255.255.240 any eq domain
access-list in->outside permit icmp any any source-quench
access-list in->outside permit icmp any any echo
access-list in->outside permit icmp any any echo-reply
access-list in->outside permit icmp any any unreachable
access-list in->outside permit icmp any any time-exceeded
access-list outside->in permit ip object-group ****************192.168.18.80 255.255.255.240
access-list outside->in permit tcp object-group ****************** 192.168.18.80 255.255.255.240
access-list outside->in permit icmp object-group *************** any source-quench
access-list outside->in permit icmp object-group ****************any echo
access-list outside->in permit icmp object-group ******************** any echo-reply
access-list outside->in permit icmp object-group ********************any unreachable
access-list outside->in permit icmp object-group ********************* any time-exceeded
access-list outside_crypto permit ip 192.168.18.80 255.255.255.240 object-group *******************
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 10.0.0.1 255.255.255.0
ip address inside inside 255.255.255.240
ip audit info action alarm
ip audit attack action alarm
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list outside_crypto
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
access-group outside->in in interface outside
access-group in->outside in interface inside
route outside 0.0.0.0 0.0.0.0 10.0.0.1 1
timeout xlate 0:05: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 sip-disconnect 0:02:00 sip-invite 0:03:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
http server enable
http 10.0.0.0 255.255.255.0 outside
http 192.168.18.96 255.255.255.240 outside
http 192.168.18.80 255.255.255.240 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-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto map outside_map 10 ipsec-isakmp
crypto map outside_map 10 match address outside_crypto
crypto map outside_map 10 set peer **************
crypto map outside_map 10 set transform-set ESP-AES-256-SHA
crypto map outside_map interface outside
isakmp enable outside
isakmp key ******** address **************netmask 255.255.255.255
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption aes-256
isakmp policy 10 hash sha
isakmp policy 10 group 5
isakmp policy 10 lifetime 86400
telnet 192.168.18.80 255.255.255.240 inside
telnet timeout 15
ssh 192.168.18.80 255.255.255.240 inside
ssh 192.168.18.96 255.255.255.240 inside
ssh timeout 60
console timeout 0
dhcpd address **************************** inside
dhcpd dns *******************************
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd domain ************
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
banner login WARNING !/If you're not authorize to connect, the competent authority will be contacted
banner motd If you're not authorize to connect, the competent authority will be contacted !!
Cryptochecksum:f2dd4ab8d9be24b876a59fc55f4d7fec
: end
Voila un config de PIX utilisant une liason VPN la syntaxe n'est pas tous a fais la même mais sa peut être t'aider :
PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password *************** encrypted
passwd ********************* encrypted
hostname ******************
domain-name *****************
clock timezone CET 1
clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
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
fixup protocol tftp 69
names
name 192.168.18.81 inside
name 10.0.0.2 **********
object-group service WEB tcp
port-object eq www
port-object eq https
object-group network *******************
network-object 192.168.18.0 255.255.255.240
network-object 192.168.18.16 255.255.255.240
network-object 192.168.18.32 255.255.255.240
network-object 192.168.18.48 255.255.255.240
network-object 192.168.18.64 255.255.255.240
network-object 192.168.18.96 255.255.255.240
network-object 192.168.101.0 255.255.255.0
network-object 192.168.103.0 255.255.255.0
network-object 192.168.104.0 255.255.255.0
network-object 192.168.113.0 255.255.255.0
access-list in->outside permit tcp 192.168.18.80 255.255.255.240 any object-group WEB
access-list in->outside permit udp 192.168.18.80 255.255.255.240 any eq domain
access-list in->outside permit icmp any any source-quench
access-list in->outside permit icmp any any echo
access-list in->outside permit icmp any any echo-reply
access-list in->outside permit icmp any any unreachable
access-list in->outside permit icmp any any time-exceeded
access-list outside->in permit ip object-group ****************192.168.18.80 255.255.255.240
access-list outside->in permit tcp object-group ****************** 192.168.18.80 255.255.255.240
access-list outside->in permit icmp object-group *************** any source-quench
access-list outside->in permit icmp object-group ****************any echo
access-list outside->in permit icmp object-group ******************** any echo-reply
access-list outside->in permit icmp object-group ********************any unreachable
access-list outside->in permit icmp object-group ********************* any time-exceeded
access-list outside_crypto permit ip 192.168.18.80 255.255.255.240 object-group *******************
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 10.0.0.1 255.255.255.0
ip address inside inside 255.255.255.240
ip audit info action alarm
ip audit attack action alarm
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list outside_crypto
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
access-group outside->in in interface outside
access-group in->outside in interface inside
route outside 0.0.0.0 0.0.0.0 10.0.0.1 1
timeout xlate 0:05: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 sip-disconnect 0:02:00 sip-invite 0:03:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
http server enable
http 10.0.0.0 255.255.255.0 outside
http 192.168.18.96 255.255.255.240 outside
http 192.168.18.80 255.255.255.240 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-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto map outside_map 10 ipsec-isakmp
crypto map outside_map 10 match address outside_crypto
crypto map outside_map 10 set peer **************
crypto map outside_map 10 set transform-set ESP-AES-256-SHA
crypto map outside_map interface outside
isakmp enable outside
isakmp key ******** address **************netmask 255.255.255.255
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption aes-256
isakmp policy 10 hash sha
isakmp policy 10 group 5
isakmp policy 10 lifetime 86400
telnet 192.168.18.80 255.255.255.240 inside
telnet timeout 15
ssh 192.168.18.80 255.255.255.240 inside
ssh 192.168.18.96 255.255.255.240 inside
ssh timeout 60
console timeout 0
dhcpd address **************************** inside
dhcpd dns *******************************
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd domain ************
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
banner login WARNING !/If you're not authorize to connect, the competent authority will be contacted
banner motd If you're not authorize to connect, the competent authority will be contacted !!
Cryptochecksum:f2dd4ab8d9be24b876a59fc55f4d7fec
: end
13 mai 2008 à 15:56
Mon VPN est donc opérationnel.
Simplement pour y arrivé j'ai un peu ouvert en grand les porte en mettant comme acl :
access-list 100 ip permit any any
Cela fonctionne naturellement mais la sécurité n'est pas se qu'il y a de mieux.
Se qui est curieux c'est que mes deux autres lignes sont necessaire pour que le VPN fonctionne bien !! (pourtant any any devrai duffir !)
access-list 100 permit ip host 217.1.1.1 host 217.1.1.4
access-list 100 permit ip 130.1.0.0 0.0.255.255 172.16.0.0 0.0.255.255
voici le schéma de mon installation :
http://www.monsterup.com/image.php?url=upload/1210685866.jpg
configuration du routeur 1 :
configuration du routeur 2 :