Toon posts:

Cisco Pix 501

Pagina: 1
Acties:
  • 610 views sinds 30-01-2008
  • Reageer

Verwijderd

Topicstarter
Hallo

Ik heb een configuratieprobleem met een PIX Cisco 501, ik heb een aantal port forward ingesteld en deze werken perfect.

Maar nu heb ik juist een smtp server gezet deze is bereikbaar op poort 25 op IP z.z.z.139 maar als hij mails verstuurt doet hij dit via z.z.z.140 wat dat eigenlijk ook z.z.z.139 zou moeten zijn.

Dit is zo met elke server, uitgaand gebruikt de pix altijd zijn eigen IP adres van de buitenwereld. Iemand een idee hoe ik dit kan veranderen?

CONFIG FILE VAN DE PIX
=======================

PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password password encrypted
passwd password encrypted
hostname name
domain-name domain.lcl
clock summer-time CET 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
no fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
access-list 90 permit ip x.x.x.0 255.255.255.0 y.y.y.0 255.255.255.0
access-list 101 permit tcp any host z.z.z.141 eq www
access-list 101 permit icmp any any
access-list 101 permit tcp any host z.z.z.139 eq www
access-list 101 permit tcp any host z.z.z.142 eq www
access-list 101 permit tcp any host z.z.z.139 eq smtp
access-list nonat permit ip x.x.x.0 255.255.255.0 y.y.y.0 255.255.255.0
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside z.z.z.140 255.255.255.248
ip address inside x.x.x.1 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) 1 interface
nat (inside) 0 access-list nonat
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp z.z.z.139 www x.x.x.10 www netmask 255.255. 255.255 0 0
static (inside,outside) tcp z.z.z.142 www x.x.x.5 www netmask 255.255.2 55.255 0 0
static (inside,outside) tcp z.z.z.141 www x.x.x.41 www netmask 255.255. 255.255 0 0
static (inside,outside) tcp z.z.z.139 smtp x.x.x.2 smtp netmask 255.255 .255.255 0 0
static (outside,inside) x.x.x.10 z.z.z.139 netmask 255.255.255.255 0 0
access-group 101 in interface outside
route outside 0.0.0.0 0.0.0.0 z.z.z.137 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
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 strong esp-3des esp-sha-hmac
crypto map toVPNhost 20 ipsec-isakmp
crypto map toVPNhost 20 match address 90
crypto map toVPNhost 20 set peer a.a.a.a
crypto map toVPNhost 20 set transform-set strong
crypto map toVPNhost interface outside
isakmp enable outside
isakmp key ******** address a.a.a.a netmask 255.255.255.255
isakmp policy 9 authentication pre-share
isakmp policy 9 encryption 3des
isakmp policy 9 hash sha
isakmp policy 9 group 1
isakmp policy 9 lifetime 86400
telnet timeout 5
ssh x.x.x.0 255.255.255.0 inside
ssh timeout 60
console timeout 0
terminal width 80

Verwijderd

Dit komt doordat je alleen poort 25 doorstuurt naar je mailserver. Het verkeer dat van je mailserver naar het internet gaat, hanteert de standaard dynamische NAT regel die ingesteld staat, en dus komt de mail vanaf IP adres x.x.x.140.

Als je een volledige NAT gebruikt, dus een heel adres reserveert voor je mailserver, komt het wel van datzelfde adres vandaan als je het stuurt.

  • recharge
  • Registratie: Maart 2002
  • Laatst online: 18-03-2025
Verwijderd schreef op donderdag 27 december 2007 @ 14:23:
<KNIP>
Maar nu heb ik juist een smtp server gezet deze is bereikbaar op poort 25 op IP z.z.z.139 maar als hij mails verstuurt doet hij dit via z.z.z.140 wat dat eigenlijk ook z.z.z.139 zou moeten zijn.

Dit is zo met elke server, uitgaand gebruikt de pix altijd zijn eigen IP adres van de buitenwereld. Iemand een idee hoe ik dit kan veranderen?

<KNIP>
Dit los je op met de toevoeging:
global (outside) 2 z.z.z.z.139 netmask 255.255.255.255
nat (inside) 2 x.x.x.2 255.255.255.255

Dat zorgt er voor dat sessie's richting het internet, geinitieerd door de server (x.x.x.2), met IP z.z.z.139 naar buiten gaan.

Verwijderd

Topicstarter
Zo simpel en toch ni gevonden :)

Bedankt, het werkt