Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accepting mail from an ip range only

Status
Not open for further replies.

wfbtr

Technical User
Jun 16, 2004
288
US
Hello-
i have a PIX 501 and would like to only accept mail from my outsourced Spam solution (postini). they gave me their ip ranges which are:
64.18.0.0 - 64.18.15.255 (mask 255.255.240.0)
207.126.144.0 - 207.126.159.255 (mask 255.255.240.0)

my config:
PIX Version 6.2(2)
nameif ethernet0 outside security0
nameif ethernet1 inside security100
hostname xxx
domain-name xx.com
clock timezone PST -8
clock summer-time PDT recurring
fixup protocol ftp 21
fixup protocol http 80
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol ils 389
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sqlnet 1521
fixup protocol sip 5060
fixup protocol skinny 2000
no fixup protocol smtp 25
names
access-list 101 permit ip 192.168.102.0 255.255.255.0 10.1.1.0 255.255.255.0
access-list 101 permit ip 192.168.102.0 255.255.255.0 192.168.103.0 255.255.255.0
access-list 102 permit ip 192.168.102.0 255.255.255.0 192.168.103.0 255.255.255.0
access-list 103 permit tcp any host x.x.128.10 eq smtp
access-list 103 permit tcp any host x.x.128.10 eq www
access-list 103 permit tcp any host x.x.128.10 eq https
access-list localtovpnclient permit ip 0.0.0.0 255.255.255.0 192.168.102.0 255.255.255.0
access-list nonatinside permit ip 0.0.0.0 255.255.255.0 192.168.102.0 255.255.255.0
access-list nonatinside permit ip 192.168.102.0 255.255.255.0 192.168.102.96 255.255.255.224
access-list nonatinside permit ip 192.168.102.0 255.255.255.0 192.168.103.0 255.255.255.0
access-list fromoutside permit tcp 192.168.102.0 255.255.255.0 host 192.168.102.2
access-list fromoutside permit udp 192.168.102.0 255.255.255.0 host 192.168.102.2 eq domain
access-list carlsbad_splitTunnelAcl permit ip 192.168.102.0 255.255.255.0 any
access-list outside_cryptomap_dyn_30 permit ip any 192.168.102.96 255.255.255.224
access-list icmp permit icmp any any echo-reply
access-list icmp permit icmp any any source-quench
access-list icmp permit icmp any any unreachable
access-list icmp permit icmp any any time-exceeded
pager lines 24
interface ethernet0 10baset
interface ethernet1 10full
mtu outside 1500
mtu inside 1500
ip address outside x.x.128.10 255.255.255.248
ip address inside 192.168.102.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool xxx 10.1.1.1-10.1.1.5
ip local pool vpnclientpool 192.168.102.100-192.168.102.120
pdm location 0.0.0.0 255.255.255.0 inside
pdm location 192.168.102.2 255.255.255.255 inside
pdm location 192.168.102.0 255.255.255.0 outside
pdm location 192.168.103.0 255.255.255.0 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list nonatinside
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp x.x.128.10 255.255.255.255 0 0
static (inside,outside) tcp x.x.128.10 https 192.168.102.2 https netmask 255.255.255.255 0 0
static (inside,outside) tcp x.x.128.10 smtp 192.168.102.2 smtp netmask 255.255.255.255 0 0
access-group 103 in interface outside
route outside 0.0.0.0 0.0.0.0 x.x.128.9 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h323 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
aaa-server west protocol radius
aaa-server west (inside) host 192.168.102.2 w3stbuz@ timeout 5
http server enable
http 192.168.102.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
tftp-server inside 192.168.102.2 /
floodguard enable
sysopt connection permit-ipsec
sysopt connection permit-pptp
no sysopt route dnat
crypto ipsec transform-set myset esp-des esp-md5-hmac
crypto dynamic-map mydynmap 30 match address outside_cryptomap_dyn_30
crypto dynamic-map mydynmap 30 set transform-set myset
crypto map mymap 10 ipsec-isakmp
crypto map mymap 10 match address 102
crypto map mymap 10 set peer x.x.60.249
crypto map mymap 10 set peer x.x.60.250
crypto map mymap 10 set transform-set myset
crypto map mymap 20 ipsec-isakmp dynamic mydynmap
crypto map mymap client authentication west
crypto map mymap interface outside
isakmp enable outside
isakmp key ******** address x.x.60.249 netmask 255.255.255.255
isakmp identity address
isakmp keepalive 15 5
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption des
isakmp policy 10 hash md5
isakmp policy 10 group 2
isakmp policy 10 lifetime 86400
isakmp policy 30 authentication pre-share
isakmp policy 30 encryption des
isakmp policy 30 hash md5
isakmp policy 30 group 1
isakmp policy 30 lifetime 86400
vpngroup carlsbad address-pool vpnclientpool
vpngroup carlsbad dns-server 192.168.102.2
vpngroup carlsbad wins-server 192.168.102.2
vpngroup carlsbad default-domain xx.local
vpngroup carlsbad split-tunnel carlsbad_splitTunnelAcl
vpngroup carlsbad idle-time 1800
vpngroup carlsbad password ********
telnet 192.168.102.0 255.255.255.0 inside
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 outside
ssh timeout 30
vpdn group 1 accept dialin pptp
vpdn group 1 ppp authentication pap
vpdn group 1 ppp authentication chap
vpdn group 1 ppp authentication mschap
vpdn group 1 ppp encryption mppe 40
vpdn group 1 client configuration address local jabuza
vpdn group 1 pptp echo 60
vpdn group 1 client authentication local
 
64.18.0.0 - 64.18.15.255 (mask 255.255.240.0)
207.126.144.0 - 207.126.159.255 (mask 255.255.240.0)

access-list Outside_In permit tcp 64.18.0.0 255.255.240.0 host <mailserverip> eq smtp
access-list Outside_In permit tcp 207.126.144.0 255.255.240.0 host <mailserverip> eq smtp

access-group Outside_In in interface outside

Computer/Network Technician
CCNA
 
thanks lloyd-
and the mailserverip is my external address, correct?
 
I'm assuming it would be this address, as you have it static'd for smtp.

x.x.128.10

Computer/Network Technician
CCNA
 
thanks a lot.
much appreciated.
 
will the access-group mess up my other access-group? (the 103)
 
you'll want to make those two lines part of 103, remove the line in 103 about smtp, and use the two i gave you.

Computer/Network Technician
CCNA
 
access-list 103 permit tcp 64.18.0.0 255.255.240.0 host x.x.128.10 eq smtp
access-list 103 permit tcp 207.126.144.0 255.255.240.0 host x.x.128.10 eq smtp
access-list 103 permit tcp any host x.x.128.10 eq www
access-list 103 permit tcp any host x.x.128.10 eq https

Computer/Network Technician
CCNA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top