[Openswan Users] info about pix-vpn

Lelio Parisi piccololean at yahoo.it
Thu Jul 14 22:51:26 CEST 2005


Hi! It's my first post...I hope someone can help me.
It's really important...I have a big big problem... I
try to explain as good as I can.
I've to make a VPN in a scenario like this:

PC1 (10.0.0.2)------
		   |
PC2 (10.0.0.3)---SWITCH------(10.0.0.1) PIX
(172.17.10.163)-----pseudo-public------(172.17.10.50)
LINUX with OPENSWAN
		   |
PC3 (10.0.0.4)------

(copy/past to a text file and see it fullscreen
however you can't see good sorry)
The PIX is a Cisco 515E with IPs 10.0.0.1 on inside
interface and 172.17.10.163 obtained by a dhcp
(however I can declare it manually). That LAN is
connected through a pseudo-public net (172.17.10.0) to
a Linux machine with openswan with IP 172.17.10.50. By
now the two IPs 172.17.10.50 and .163 are on the same
net, but one day they will be public... I don't know
if .50 could be "translated" as 10.0.1.1 so I can
connect another switch on the second ethernet card on
linux machine with 3 pcs connected as 10.0.1.2 and
10.0.1.3... 

My PIX configuration:
pixfirewall(config)# sh conf
: Saved
: Written by enable_15 at 07:38:40.401 UTC Thu Jul 14
2005
PIX Version 6.3(1)
interface ethernet0 100full
interface ethernet1 100full
interface ethernet2 auto shutdown
nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 intf2 security4
enable password kd4q8INnfTMGlrxA encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pixfirewall
domain-name ciscopix.com
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
access-list 100 permit ip 10.0.0.0 255.255.255.0
10.0.1.0 255.255.255.0
pager lines 24
mtu outside 1500
mtu inside 1500
mtu intf2 1500
ip address outside dhcp setroute
ip address inside 10.0.0.1 255.255.255.0
no ip address intf2
ip audit info action alarm
ip audit attack action alarm
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 10.0.0.0 255.255.255.0 0 0
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.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
service resetinbound
crypto ipsec transform-set myset esp-des esp-md5-hmac
crypto map linkmap 10 ipsec-isakmp
crypto map mymap 10 ipsec-isakmp
crypto map mymap 10 match address 100
crypto map mymap 10 set peer 172.17.10.50
crypto map mymap 10 set transform-set myset
crypto map mymap interface outside
isakmp enable outside
isakmp key ******** address 172.17.10.50 netmask
255.255.255.255
isakmp identity address
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 28000
telnet 192.168.1.2 255.255.255.255 inside
telnet 192.168.1.2 255.255.255.255 intf2
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 outside
ssh 0.0.0.0 0.0.0.0 inside
ssh timeout 60
console timeout 0
dhcpd address 10.0.0.2-10.0.0.30 inside
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:68f8ca7bb36f895b0ea468b0fd5b922a

My ipsec.conf:
version 2.0

config setup
        interfaces="ipsec0=eth0"
        klipsdebug=none
        #plutodebug=none
        #plutoload=%search
        #plutostart=%search
        uniqueids=yes

conn %default
        keyingtries=0
        disablearrivalcheck=no
        authby=rsasig

conn pix
        left=172.17.10.50
        leftsubnet=10.0.1.0/24
        right=172.17.10.163
        rightsubnet=10.0.0.0/24
        authby=secret
        pfs=no
        auto=add

My ipsec.secrets
172.17.10.50 172.17.10.163 : PSK "ifeelgood"

On the first time there was an error on starting pluto
because of plutodebug=none plutoload=%search
plutostart=%search but then I put a # so everythings
went well.
I restarted ipsec, so...
root at sid:/var/log# ipsec setup --restart
ipsec_setup: Stopping Openswan IPsec...
ipsec_setup: Starting Openswan IPsec U2.3.1/K2.6.7...
ipsec_setup: insmod
/lib/modules/2.6.7/kernel/net/ipv4/ah4.ko
ipsec_setup: insmod
/lib/modules/2.6.7/kernel/net/ipv4/esp4.ko
ipsec_setup: insmod
/lib/modules/2.6.7/kernel/crypto/sha1.ko
ipsec_setup: insmod
/lib/modules/2.6.7/kernel/crypto/md5.ko
ipsec_setup: insmod
/lib/modules/2.6.7/kernel/crypto/des.ko
root at sid:/var/log# ipsec auto --up pix
104 "pix" #1: STATE_MAIN_I1: initiate

Now I tried to ping from 172.17.10.50 on 10.0.0.1 but
nothing append...
I'm sure I've made something wrong, but I'm a
newbie... can someone help me? 
First of all I dont know if 
left=172.17.10.50
leftsubnet=10.0.1.0/24
is right... because I've only one eth now... can
172.17.10.50 be saw as 10.0.1.1? 
What is wrong in my confs? Thanks a lot!


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


More information about the Users mailing list