Bonjour a tous,
J'ai un petit problème sur la configuration d'un pix 501 sur mon reseau :
Architecture actuelle:
Livebox192.168.1.1<-->192.168.1.141 pix(dmz) 192.168.2.254 <--> reseau -- serveur 1 192.168.2.1
-- serveur 2 192.168.2.2
-- station de travail
Aujourd'hui j'ai une configue où l'ensemble des services dispo depuis internet se trouve sur le serveur 2
L'ensemble de mes station de travail ont accès a internet.
La dmz de la livebox pointe sur l'adresse 192.168.1.101.
Tous se passe bien.
Maintenant j'ai certains service comme le serveur web ou un acès SSH (par exemple ) qui vont migré de serveur (ils passent donc sur le serveur 1)
et là c'est la cata
ci dessous ma config actuelle :
Spoiler :
:
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 pixfirewall
domain-name ciscopix.com
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 access-list acl-out permit gre any host 192.168.1.101 access-list acl-out permit tcp any host 192.168.1.101 eq pptp access-list acl-out permit tcp any host 192.168.1.101 eq smtp access-list acl-out permit tcp any host 192.168.1.101 eq 3389 access-list acl-out permit tcp any host 192.168.1.101 eq www access-list acl-out permit tcp any host 192.168.1.101 eq https access-list acl-out permit tcp any host 192.168.1.101 eq pop3 access-list acl-out permit tcp any host 192.168.1.101 eq imap4 access-list acl-out permit tcp any host 192.168.1.101 eq ident access-list acl-out permit tcp any host 192.168.1.101 eq 465 access-list acl-out permit tcp any host 192.168.1.101 eq 993 access-list acl-out permit tcp any host 192.168.1.101 eq 995 pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 192.168.1.141 255.255.255.0
ip address inside 192.168.2.254 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 2 192.168.1.150-192.168.1.250
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) 192.168.1.101 192.168.2.2 netmask 255.255.255.255 0 0 access-group acl-out in interface outside
route outside 0.0.0.0 0.0.0.0 192.168.1.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 192.168.2.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
telnet 192.168.2.0 255.255.255.0 inside
telnet timeout 5
ssh 192.168.2.0 255.255.255.0 inside
ssh timeout 5
console timeout 5
dhcpd ping_timeout 750
username ****** password ***** encrypted privilege 15
terminal width 80
Cryptochecksum:****
: end
|
Bon, çà fait trois ans que j'y est pas touché et je suis loin d'ête un expert en la matière.
je me suis fait deux ou trois test sans succès en debutant par ajouter
access-list acl-out permit tcp any host 192.168.1.101 eq ssh
static (inside,outside) tcp 192.168.1.101 192.168.2.1 netmask 255.255.255.255 0 0
auquelle le pix m'a repondu : ERROR: duplicate of existing static (ce qui est pas faux ^^)
du coup je me suis lancé dans une refonte de la conf :
Spoiler :
:
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 pixfirewall
domain-name ciscopix.com
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 access-list acl-out permit tcp any host 192.168.2.1 eq ssh access-list acl-out permit gre any host 192.168.2.2 access-list acl-out permit tcp any host 192.168.2.2 eq pptp access-list acl-out permit tcp any host 192.168.2.2 eq smtp access-list acl-out permit tcp any host 192.168.2.2 eq 3389 access-list acl-out permit tcp any host 192.168.2.2 eq www access-list acl-out permit tcp any host 192.168.2.2 eq https access-list acl-out permit tcp any host 192.168.2.2 eq pop3 access-list acl-out permit tcp any host 192.168.2.2 eq imap4 access-list acl-out permit tcp any host 192.168.2.2 eq ident access-list acl-out permit tcp any host 192.168.2.2 eq 465 access-list acl-out permit tcp any host 192.168.2.2 eq 993 access-list acl-out permit tcp any host 192.168.2.2 eq 995 pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 192.168.1.141 255.255.255.0
ip address inside 192.168.2.254 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 2 192.168.1.150-192.168.1.250
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface ssh 192.168.2.1 ssh netmask 255.255.255.255 0 0 static (inside,outside) tcp interface smtp 192.168.2.2 smtp netmask 255.255.255.255 0 0
static (inside,outside) tcp interface pptp 192.168.2.2 pptp netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 3389 192.168.2.2 3389 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface https 192.168.2.2 https netmask 255.255.255.255 0 0
static (inside,outside) tcp interface www 192.168.2.2 www netmask 255.255.255.255 0 0
static (inside,outside) tcp interface pop3 192.168.2.2 pop3 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface imap4 192.168.2.2 imap4 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface ident 192.168.2.2 ident netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 465 192.168.2.2 465 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 993 192.168.2.2 993 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 995 192.168.2.2 995 netmask 255.255.255.255 0 0
access-group acl-out in interface outside
route outside 0.0.0.0 0.0.0.0 192.168.1.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 192.168.2.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
telnet 192.168.2.0 255.255.255.0 inside
telnet timeout 5
ssh 192.168.2.0 255.255.255.0 inside
ssh timeout 5
console timeout 5
dhcpd ping_timeout 750
username **** password ***** encrypted privilege 15
terminal width 80
Cryptochecksum:*****
: end
|
et là, bing badaboum, plus rien ne fonctionne, plus rien d'accessible depuis l'exterieur et plus d'accès internet depuis l'interieur (j'avais bien switché la dmz de la livebox sur la 192.168.1.141)
du coup si un utilisateur avreti pouvait jetter un coup d'oeil a ma future config et me dire où je me suis planté, çà serait très gentil de sa part.
Message édité par inalum le 15-04-2013 à 09:53:06