Kamis, 14 Februari 2008

VPN Configuration - Cisco PIX-515E (ipsec)

PIX Firewall:


- PIX has two standard interfaces, inside (level security: 100) and outside (level security: 0). We cannot change the security level name.
- PIX works like DIODA, left to right flow
- High Level Security to tinggi Low Level Security allow by default
- Show Level Security by command: # shown nameif
- PIX 515-E has third interface named e2. We can change level security name on this interface
- Access-list format pada PIX same with another cisco router, but PIX not use reverse-mask but PIX use subnetmask
- PDM (PIX Device Manager) is web management for PIX

Network Scheme Example:



: Saved
:
PIX Version 6.3(3)
interface ethernet0 auto
interface ethernet1 auto
interface ethernet2 auto shutdown
nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 intf2 security4
enable password 45FFT#$%543dr encrypted
passwd 34F%GERTEdfe encrypted
hostname pixfirewall
domain-name vpn.wahyunet.com
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
access-list 104 permit ip 192.168.1.0 255.255.255.0 192.168.2.0 255.255.255.0
pager lines 24
mtu outside 1500
mtu inside 1500
mtu intf2 1500
ip address outside 203.201.x.x 255.255.255.248
ip address inside 192.168.1.1 255.255.255.0
no ip address intf2
ip audit info action alarm
ip audit attack action alarm
ip local pool client1-pool 192.168.2.1
ip local pool client2-pool 192.168.2.2
ip local pool groupclient-pool 192.168.2.3-192.168.2.254
pdm history enable
arp timeout 14400
nat (inside) 0 access-list 104
route outside 0.0.0.0 0.0.0.0 203.201.x.1 1 (203.201.x.1 --> gateway internet)
timeout xlate 3:00: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 uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http 192.168.1.10 255.255.255.255 inside (192.168.1.10 ---> ip yang akses via browser pakai PDM)
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
sysopt connection permit-pptp
crypto ipsec transform-set myset esp-des esp-md5-hmac
crypto dynamic-map dynmap 10 set transform-set myset
crypto map mymap 10 ipsec-isakmp dynamic dynmap
crypto map mymap client configuration address initiate
crypto map mymap client configuration address respond
crypto map mymap interface outside
isakmp enable outside
isakmp key ******** address 0.0.0.0 netmask 0.0.0.0
isakmp identity address
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption des
isakmp policy 10 hash md5
isakmp policy 10 group 1
isakmp policy 10 lifetime 86400
isakmp policy 20 authentication pre-share
isakmp policy 20 encryption des
isakmp policy 20 hash md5
isakmp policy 20 group 2
isakmp policy 20 lifetime 86400
vpngroup client1 address-pool client1-pool
vpngroup client1 dns-server 192.168.1.9 ( 192.168.1.9 ---> DNS Server di LAN Pusat)
vpngroup client1 default-domain client1.wahyunet.com
vpngroup client1 idle-time 1800
vpngroup client1 password ********
vpngroup client2 address-pool client2-pool
vpngroup client2 dns-server 192.168.1.9 ( 192.168.1.9 ---> DNS Server di LAN Pusat)
vpngroup client2 default-domain client2.wahyunet.com
vpngroup client2 idle-time 1800
vpngroup client2 password ********
vpngroup groupclient address-pool groupclient-pool
vpngroup groupclient dns-server 192.168.1.9 ( 192.168.1.9 ---> DNS Server di LAN Pusat)
vpngroup groupclient default-domain groupclient.wahyunet.com
vpngroup groupclient idle-time 1800
vpngroup groupclient password ********
telnet 192.168.1.10 255.255.255.255 inside (agar IP 192.168.1.10 bisa akses terlnet)
telnet timeout 60
ssh timeout 5
console timeout 0
terminal width 80
Cryptochecksum:8c78f1ac9fe28eb25680baacd502ebbb
: end

Cisco VPN Client
Install Cisco VPN Client on client1, client2, dan groupclient.
This is example for client1
Host=203.201.x.x
Username = client1
Password = (fill with password that you type when your give command:
vpngroup client1 password 'thepassword')

Tidak ada komentar: