Networking Forums

Networking Forums > Computer Networking > Linux Networking > IPSec for wireless lan w. freeswan and Zyxel Zywall10

Reply
Thread Tools Display Modes

IPSec for wireless lan w. freeswan and Zyxel Zywall10

 
 
Mark Bergman
Guest
Posts: n/a

 
      01-19-2004, 11:26 PM

I'm trying to set up IPsec communication between clients on my wireless LAN
and a Zyxel Prestige 312 (now known as a Zywall10). My access point doesn't do
IPSec, so I'm trying to terminate the IPSec vpn at the firewall, to pass
unencrypted traffic to either the internet or to my wired LAN.

My intention is to prevent unauthorized wireless clients from getting
access to my LAN (wired or wireless) or to my WAN connection. Wireless LAN
clients would need access to hosts on the wired LAN, as well as access to
the internet. No traffic origininating on the WAN needs inbound access
to the wireless LAN. Non-IPSec traffic to and from the access point
(172.16.1.2) will be permitted by the firewall rules.

---------------------------------------------------------------------------
{internet}-----[cable modem]--+
| DHCP-assigned IP
|
[zyxel 312]
172.25.1.1 | 172.16.1.1
("real" IP) | (alias IP)
|
|
|
[ hub ]
| |
| +------[WLAN AP]- - - - -{wireless LAN}
| 172.16.1.2 172.16.1.0/24
|
{wired LAN}
172.25.1.0/24
---------------------------------------------------------------------------

Environment:
Zyxel Prestige 312
------------------
ZyNOS F/W Version: V3.52(WA.4)

wired lan (gateway address): 172.25.1.1/24
wireless lan, as an "IP Alias": 172.16.1.1/24

----------------------------------
Firewall rules, Packet Direction: Lan to Lan/Zywall

Rule Src Dest Proto/port Policy
1 0.0.0.0 172.16.1.2 any/any forward
2 172.16.1.2 0.0.0.0 any/any forward
3 172.16.1.3-255 0.0.0.0 50,51,IKE forward
4 0.0.0.0 172.16.1.3-255 50,51,IKE forward
5 172.16.1.0/24 0.0.0.0 any/any drop
----------------------------------

Zyxel VPN configuration:
Index #= 1 Name= wlan
Active= Yes Keep Alive= Yes Nat Traversal= No
Local ID type= IP Content=
My IP Addr= 0.0.0.0
Peer ID type= IP Content= 172.16.1.101
Secure Gateway Address= 172.16.1.101
Protocol= 0
Local: Addr Type= SINGLE
IP Addr Start= 172.16.1.1 End/Subnet Mask= N/A
Port Start= 0 End= N/A
Remote: Addr Type= RANGE
IP Addr Start= 172.16.1.100 End/Subnet Mask= 172.16.1.255
Port Start= 0 End= N/A
Enable Replay Detection= No
Key Management= IKE

Phase 1
Negotiation Mode= Main
PSK= my-secret-key-goes-right-here
Encryption Algorithm= 3DES
Authentication Algorithm= MD5
SA Life Time (Seconds)= 28800
Key Group= DH2

Phase 2
Active Protocol= ESP
Encryption Algorithm= 3DES
Authentication Algorithm= MD5
SA Life Time (Seconds)= 28800
Encapsulation= Tunnel
Perfect Forward Secrecy (PFS)= None


Wireless client:
----------------
Linux: RH9, 2.4.24
Kernel compiled with Crypto options
Freeswan 2.04
no iptables/pf/ipchains rules
eth0:1 (ipsec0): 172.16.1.100/24

/etc/ipsec.conf:
config setup
interfaces="ipsec0=eth0:1"
klipsdebug=none
plutodebug=all
conn %default
keyingtries=8
conn wlan
left=172.16.1.101
right=172.16.1.1
rightsubnet=0.0.0.0/0
pfs=no
auto=start
authby=secret
auth=esp
esp=3des-md5-96



When I attempt to start ipsec on the wireless client, I get the following
messages:

ipsec_setup: Starting FreeS/WAN IPsec 2.04...
ipsec_setup: Using /lib/modules/2.4.24/kernel/ipsec.o
kernel: klips_info:ipsec_init: KLIPS startup, FreeS/WAN IPSec version: 2.04
/etc/hotplug/net.agent: invoke ifup ipsec0
/etc/hotplug/net.agent: invoke ifup ipsec1
/etc/hotplug/net.agent: invoke ifup ipsec2
ipsec_setup: KLIPS debug `none'
kernel:
/etc/hotplug/net.agent: invoke ifup ipsec3
ipsec_setup: KLIPS ipsec0 on eth0:1 172.16.1.101/255.255.255.0 broadcast 172.16.255.255
ipsec_setup: ...FreeS/WAN IPsec started
ipsec__plutorun: 104 "wlan" #1: STATE_MAIN_I1: initiate
ipsec__plutorun: ...could not start conn "wlan"

If I sniff traffic, I see ISAKMP "Identity Protection", "Quick Mode",
and "Informational" messages being exchanged between the client
(172.16.1.101) and the 172.16.1.1 IP of the router (ipsec-gw), however
the SA is never formed. I suspect that the problem is actually with
the router configuration--it's not clear to me what values I should be
entering for each field, particularly since the router will be the end
point of a VPN on it's own LAN.


Ethereal packet trace:
No. Source Destination Protocol Info
16 172.16.1.101 ipsec-gw ISAKMP Identity Protection (Main Mode)
17 ipsec-gw 172.16.1.101 ISAKMP Identity Protection (Main Mode)
18 172.16.1.101 ipsec-gw ISAKMP Identity Protection (Main Mode)
19 ipsec-gw 172.16.1.101 ISAKMP Identity Protection (Main Mode)
20 172.16.1.101 ipsec-gw ISAKMP Identity Protection (Main Mode)
21 ipsec-gw 172.16.1.101 ISAKMP Identity Protection (Main Mode)
22 172.16.1.101 ipsec-gw ISAKMP Quick Mode
23 ipsec-gw 172.16.1.101 ISAKMP Informational
24 ipsec-gw 172.16.1.101 ISAKMP Informational
25 172.16.1.101 ipsec-gw ISAKMP Informational
26 172.16.1.101 ipsec-gw ISAKMP Quick Mode

The router logs show:
Source IP |Destination IP |Note
172.16.1.101 |172.16.1.1 |IKE Recv Main Mode request from [172.16.1.101]
172.16.1.101 |172.16.1.1 |IKE Recv:[SA]
172.16.1.1 |172.16.1.101 |IKE Send:[SA][VID]
172.16.1.101 |172.16.1.1 |IKE Recv:[KE][NONCE]
172.16.1.1 |172.16.1.101 |IKE Send:[KE][NONCE]
172.16.1.101 |172.16.1.1 |IKE Recv:[ID][HASH]
172.16.1.101 |172.16.1.1 |IKE Build Phase 1 ID
172.16.1.1 |172.16.1.101 |IKE Send:[ID][HASH][NOTFY:INIT_CONT
172.16.1.101 |172.16.1.1 |IKE Recv:[HASH][SA][NONCE][ID][ID]
172.16.1.101 |172.16.1.1 |IKE Start Phase 2: Quick Mode
172.16.1.101 |172.16.1.1 |IKE !! Verifying Remote ID failed:
172.16.1.101 |172.16.1.1 |IKE Recv ID: SUBNET, [172.16.1.101]-[255.255.255.255]
172.16.1.101 |172.16.1.1 |IKE vs. My Remote [172.16.1.100]-[172.16.1.255]
172.16.1.1 |172.16.1.101 |IKE Send:[HASH][NOTFY:ERR_ID_INFO]
172.16.1.1 |172.16.1.101 |IKE Send:[HASH][DEL]

I'd be happy to send more information--including the barf output--either to
the newsgroup or directly. I'd really appreciate any suggestions.

************************************************** *
**** E-mail replies preferred. I will summarize. **
************************************************** *
Thanks,

Mark
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPSec VPN with 2 * Zyxel Zywall 2 Plus jjg Linux Networking 0 03-01-2010 05:00 PM
IPSec (i.e. Freeswan 2.x), Linux kernel 2.6 no longer masquerading (NAT'ing) connections John T. Ellis Linux Networking 1 05-25-2004 06:56 AM
dynamic w2k ipsec to freeswan Alexander Joelly Linux Networking 1 01-23-2004 09:53 PM
Win2k --> firewall --> ipsec /freeswan --> remote network Eel Linux Networking 0 01-14-2004 02:14 AM
freeswan IPSec Shashank Khanvilkar Linux Networking 2 08-13-2003 12:51 AM



1 2 3 4 5 6 7 8 9 10 11