{"id":594,"date":"2010-03-30T15:57:00","date_gmt":"2010-03-30T14:57:00","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=594"},"modified":"2010-03-30T19:21:34","modified_gmt":"2010-03-30T18:21:34","slug":"basic-cisco-pix-configuration","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=594","title":{"rendered":"Basic Cisco PIX Configuration"},"content":{"rendered":"<p>Here is a basic PIX configuration, which achieves the following:<\/p>\n<p>&#8211;\u00a0 NAT overload from an inside network to an outside network<br \/>\n&#8211;\u00a0 Accept incoming PPTP VPN connections from ouside clients<br \/>\n&#8211;\u00a0 Turns on the web-based GUI on the PIX<!--more--><\/p>\n<blockquote><p>\n: Saved<br \/>\n:<br \/>\nPIX Version 6.3(4)<br \/>\ninterface ethernet0 auto<br \/>\ninterface ethernet1 100full<br \/>\n:These two lines activate the outside (Ethernet0) and inside (Ethernet1) interfaces<br \/>\nnameif ethernet0 outside security0<br \/>\nnameif ethernet1 inside security100<br \/>\n:These two lines assign names to the interfaces<br \/>\nenable password &#8212;&#8212; encrypted<br \/>\n:Sets the password for privileged mode<br \/>\npasswd &#8212;&#8212;&#8211; encrypted<br \/>\n:Sets the telnet password<br \/>\nhostname pixfirewall<br \/>\ndomain-name ciscopix.com<br \/>\nfixup protocol dns maximum-length 512<br \/>\nfixup protocol ftp 21<br \/>\nfixup protocol h323 h225 1720<br \/>\nfixup protocol h323 ras 1718-1719<br \/>\nfixup protocol http 80<br \/>\nfixup protocol rsh 514<br \/>\nfixup protocol rtsp 554<br \/>\nfixup protocol sip 5060<br \/>\nfixup protocol sip udp 5060<br \/>\nfixup protocol skinny 2000<br \/>\nno fixup protocol smtp 25<br \/>\nfixup protocol sqlnet 1521<br \/>\nfixup protocol tftp 69<br \/>\n:Fixup protocols allow advanced applications to work through NAT. All the above fixup protocol configuration is in the PIX by default.<br \/>\nnames<br \/>\naccess-list 101 permit ip 192.168.1.0 255.255.255.0 192.168.2.0 255.255.255.0<br \/>\naccess-list 102 permit icmp any any<br \/>\naccess-list 102 permit ip 192.168.2.0 255.255.255.0 192.168.1.0 255.255.255.0<br \/>\naccess-list 103 permit ip any any<br \/>\n:Same access-list syntax as a router. These are used below.<br \/>\npager lines 24<br \/>\nmtu outside 1500<br \/>\nmtu inside 1500<br \/>\nip address outside x.x.x.x 255.255.255.248<br \/>\n:Sets the outside interface IP address<br \/>\nip address inside 192.168.1.1 255.255.255.0<br \/>\n:Sets the inside interface IP address<br \/>\nip audit info action alarm<br \/>\nip audit attack action alarm<br \/>\nip local pool pptp-pool 192.168.2.10-192.168.2.50<br \/>\n:Defines a local DHCP pool of addresses for the PIX to give to incoming PPTP VPN clients<br \/>\npdm logging informational 100<br \/>\npdm history enable<br \/>\n:This tracks access to the PDM (the web-based GUI) built-in to the PIX<br \/>\narp timeout 14400<br \/>\nglobal (outside) 1 interface<br \/>\n:This is a HUGE command. It turns on NAT translation for all addresses matching NAT rule 1 (shown below) to be translated through the outside interface (to the Internet, in this case)<br \/>\nnat (inside) 0 access-list 101<br \/>\n:This creates NAT rule 0 which tells NAT not to translate addresses that are defined in access list 101 (shown above). This keeps NAT from translating any communication between internal clients (192.168.1.0\/24) and VPN clients (192.168.2.0\/24).<br \/>\nnat (inside) 1 0.0.0.0 0.0.0.0 0 0<br \/>\n:This creates NAT rule 1 which matches ALL addresses coming from the inside interface<br \/>\nconduit permit icmp any any<br \/>\n:Conduits are the old form of access-lists. This one permits all ICMP messages to the PIX<br \/>\nroute outside 0.0.0.0 0.0.0.0 x.x.x.x<br \/>\n:Sets a default route to the ISP router (represented with x.x.x.x)<br \/>\ntimeout xlate 0:05:00<br \/>\ntimeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00<br \/>\ntimeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00<br \/>\ntimeout uauth 0:05:00 absolute<br \/>\naaa-server TACACS+ protocol tacacs+<br \/>\naaa-server TACACS+ max-failed-attempts 3<br \/>\naaa-server TACACS+ deadtime 10<br \/>\naaa-server RADIUS protocol radius<br \/>\naaa-server RADIUS max-failed-attempts 3<br \/>\naaa-server RADIUS deadtime 10<br \/>\naaa-server LOCAL protocol local<br \/>\nhttp server enable<br \/>\nhttp 192.168.1.0 255.255.255.0 inside<br \/>\n:Turns on the HTTP interface to the PIX, but only allows internal users (192.168.1.0\/24) to access it. This enables the PDM (the web-based GUI) on the PIX<br \/>\nno snmp-server location<br \/>\nno snmp-server contact<br \/>\nsnmp-server community public<br \/>\nno snmp-server enable traps<br \/>\nfloodguard enable<br \/>\nsysopt connection permit-pptp<br \/>\n:Also a very huge command. This allows PPTP connections to the PIX firewall without the need for an access-list permitting PPTP. You can also use commands like sysopt connection permit-ipsec to permit IPSEC VPN connections<br \/>\ntelnet 192.168.1.0 255.255.255.0 inside<br \/>\n:Allows telnet access to the PIX only from the internal subnet<br \/>\ntelnet timeout 5<br \/>\nssh timeout 5<br \/>\nconsole timeout 0<br \/>\nvpdn group 1 accept dialin pptp<br \/>\n:Allows PIX to accept PPTP connections<br \/>\nvpdn group 1 ppp authentication pap<br \/>\nvpdn group 1 ppp authentication chap<br \/>\nvpdn group 1 ppp authentication mschap<br \/>\n:Allows PPTP users to authenticate using any of the above methods (listed from weakest to strongest)<br \/>\nvpdn group 1 ppp encryption mppe auto<br \/>\nvpdn group 1 client configuration address local pptp-pool<br \/>\n:Points the PIX to hand out IP addresses to incoming VPN clients from the DHCP pool called &#8220;pptp-pool&#8221; (shown above in the config)<br \/>\nvpdn group 1 client configuration dns 192.168.1.252<br \/>\nvpdn group 1 client configuration wins 192.168.1.251<br \/>\n:Points the VPN clients to the right DNS and WINS server addresses<br \/>\nvpdn group 1 pptp echo 60<br \/>\n:Sends an &#8220;echo&#8221; (kinda like a keepalive) once every 60 seconds. If a response is not heard, VPN is torn down<br \/>\nvpdn group 1 client authentication local<br \/>\n:Authenticates VPN users using a local user database (shown below)<br \/>\nvpdn username jonesr password *********<br \/>\nvpdn username cepa password *********<br \/>\nvpdn username bob password *********<br \/>\n:Three VPN users allowed to connect<br \/>\nvpdn enable outside<br \/>\n:Turns on VPN connectivity on the outside interface<br \/>\ndhcpd lease 3600<br \/>\ndhcpd ping_timeout 750<br \/>\nusername cisco password &#8212;&#8212;&#8211; encrypted privilege 15<br \/>\n:If I telnet with this username\/password, I go straight to privileged mode<br \/>\nterminal width 80<br \/>\n: end<\/p><\/blockquote>\n<p>Source: J. Ciaora at <a href=\"http:\/\/www.ciscoblog.com\/archives\/2005\/12\/basic_pix_confi.html\" target=\"_blank\">http:\/\/www.ciscoblog.com\/archives\/2005\/12\/basic_pix_confi.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a basic PIX configuration, which achieves the following: &#8211;\u00a0 NAT overload from an inside network to an outside network &#8211;\u00a0 Accept incoming PPTP VPN connections from ouside clients &#8211;\u00a0 Turns on the web-based GUI on the PIX<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83,13],"tags":[34],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/594"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=594"}],"version-history":[{"count":6,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/594\/revisions"}],"predecessor-version":[{"id":606,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/594\/revisions\/606"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}