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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with configuring PIX Firewall

Status
Not open for further replies.

CCES

IS-IT--Management
Nov 15, 2005
13
US
Hi all,

I would really appreciate if someone could take a look on my conf and let me know if I need anything else.

Basically I want only smtp to be opened and everything else closed.

Thanks a lot,
Alex

PIX Version 6.3(5)
interface ethernet0 100full
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname ****
domain-name *****.***
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.2.101 ****
access-list inside_access_in permit ip 192.168.2.0 255.255.255.0 any
access-list inside_access_in permit ip 192.168.3.0 255.255.255.0 any
access-list inbound permit tcp any interface outside eq smtp
access-list inbound permit tcp any interface outside eq www
access-list outside_access_in deny icmp any any
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside **.***.***.*** 255.255.255.248
ip address inside 192.168.2.100 255.255.255.0
ip verify reverse-path interface outside
ip verify reverse-path interface inside
ip audit info action alarm drop
ip audit attack action alarm drop
pdm location 192.168.3.0 255.255.255.0 inside
pdm location 192.168.2.0 255.255.255.0 outside
pdm location 192.168.3.0 255.255.255.0 outside
pdm location **** 255.255.255.255 inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 192.168.2.0 255.255.255.0 0 0
nat (inside) 1 192.168.3.0 255.255.255.0 0 0
static (inside,outside) tcp interface smtp **** smtp netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 255.255.255.255 0 0
access-group outside_access_in in interface outside
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 **.***.***.*** 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 local
no snmp-server enable traps
floodguard enable
sysopt noproxyarp outside
sysopt noproxyarp inside
telnet timeout 5
ssh timeout 5
console timeout 5
dhcpd address ****-192.168.2.254 inside
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
terminal width 80
Cryptochecksum:463e15fecb06a3990bc95dc526fd8135
: end
[OK]
 
for some reason you ACL have been misnamed - use the ACL named "inbound" in your :
access-group outside_access_in in interface outside
i.e.
no access-group outside_access_in in interface outside
access-group inbound in interface outside


Also use the "interface ethernet0 100full" with caution as this might lead to duplex mismacth - verify proper operation

otherwise it looks great !

HTH
Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top