ตัวอย่าง การ config Cisco PIX515E Firewall

ตัวอย่าง network ตามรูป


Pix# sh run
: Saved
:
PIX Version 6.3(1)
interface ethernet0 auto
interface ethernet1 auto
interface ethernet2 auto

nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 dmz security50

enable password ./1fErujikkv encrypted
passwd ./6vujikkv encrypted

hostname Pix
domain-name company.com
clock timezone ICT 7

fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol ils 389
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

names
object-group service http-https tcp
port-object eq www
port-object eq https
object-group service http-https-pop3-smtp tcp
port-object eq www
port-object eq pop3
port-object eq https
port-object eq smtp
object-group service pop3-smtp tcp
port-object eq pop3
port-object eq smtp

access-list access_outside permit tcp any any object-group http-https-pop3-smtp
access-list access_outside permit tcp any any eq ssh
access-list access_outside permit tcp any any eq ftp
access-list access_outside permit tcp any any eq domain
access-list access_outside permit udp any any eq domain
access-list access_outside permit icmp any any

access-list access_dmz permit tcp any any object-group http-https-pop3-smtp
access-list access_dmz permit udp any any eq domain
access-list access_dmz permit tcp any any eq ftp
access-list access_dmz permit tcp any any eq ssh
access-list access_dmz permit icmp any any echo-reply
access-list access_dmz permit icmp any any

access-list access_inside permit tcp any any object-group http-https-pop3-smtp
access-list access_inside permit icmp any any
access-list access_inside permit udp any any eq domain
access-list access_inside permit tcp any any eq ftp
access-list access_inside permit tcp any any eq ssh

pager lines 24
logging on
logging timestamp
logging monitor alerts
logging buffered alerts
logging history alerts
mtu outside 1500
mtu inside 1500
mtu dmz 1500
ip address outside 203.100.200.2 255.255.255.0
ip address inside 172.16.10.254 255.255.0.0
ip address dmz 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
arp timeout 14400

global (outside) 1 203.100.200.30
nat (inside) 1 172.16.10.0 255.255.255.0 0 0
nat (dmz) 1 192.168.1.0 255.255.255.0 0 0

static (dmz,outside) 203.100.200.3 192.168.1.2 netmask 255.255.255.255 0 0
static (dmz,outside) 203.100.200.4 192.168.1.3 netmask 255.255.255.255 0 0
static (dmz,outside) 203.100.200.5 192.168.1.4 netmask 255.255.255.255 0 0

static (inside,outside) 203.100.200.6 172.16.10.2 netmask 255.255.255.255 0 0
static (inside,outside) 203.100.200.7 172.16.10.3 netmask 255.255.255.255 0 0

access-group access_outside in interface outside
access-group access_inside in interface inside
access-group access_dmz in interface dmz

route outside 0.0.0.0 0.0.0.0 203.100.200.1 1

http server enable
http 172.16.10.2 255.255.255.255 inside

ssh 203.100.200.222 255.255.255.255 outside
ssh 172.16.10.2 255.255.255.255 inside
ssh timeout 30

console timeout 30
username yoyo password P0HgamnfMH encrypted privilege 15
terminal width 80
Cryptochecksum:2f09f3d6a92c1f53846784a4449
: end