Koozali.org: home of the SME Server

freeswan ipsec vpn problem - please help {more info added}

g00s3m4n

freeswan ipsec vpn problem - please help {more info added}
« on: June 06, 2005, 09:45:12 PM »
please forgive me for posting in both general and experienced user discussion, but i am desperate

hello

i have been battling all day with this. i have reinstalled both my boxes so they are both clean installs.

info:

box1 - server - id: jhb.domain.com - 10.145.1.10 - belongs to site1
box2 - client -id: ct.domain.com - 10.145.3.10 - belongs to site2

both sites have firewalls that forward ipsec traffic to them.

site1 - fixed ip 196.x.x.x
site2 - dyndns.org ip 165.x.x.x

here are my logs:

box1:

[root@box1 root]# service ipsec start
ipsec_setup: Starting FreeS/WAN IPsec 1.99...
^[[Aipsec_setup: Using /lib/modules/2.4.20-18.7/kernel/net/ipsec/ipsec.o
[root@box1 root]# tail -f /var/log/secure
Jun 6 17:35:05 box1 pluto[19184]: added connection description "net.local-net.10.145.3.0"
Jun 6 17:35:06 box1 pluto[19184]: added connection description "gate.local-gate.10.145.3.0"
Jun 6 17:35:06 box1 pluto[19184]: added connection description "gate.local-net.10.145.3.0"
Jun 6 17:35:06 box1 pluto[19184]: listening for IKE messages
Jun 6 17:35:06 box1 pluto[19184]: adding interface ipsec0/eth0 10.145.1.10
Jun 6 17:35:06 box1 pluto[19184]: loading secrets from "/etc/ipsec.secrets"
Jun 6 17:35:06 box1 pluto[19184]: "net.local-gate.10.145.3.0" #1: initiating Main Mode
Jun 6 17:35:07 box1 pluto[19184]: "net.local-gate.10.145.3.0" #1: Peer ID is ID_FQDN: '@ct.domain.com'
Jun 6 17:35:07 box1 pluto[19184]: "net.local-gate.10.145.3.0" #1: ISAKMP SA established
Jun 6 17:35:07 box1 pluto[19184]: "net.local-gate.10.145.3.0" #2: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS
Jun 6 17:35:14 box1 pluto[19184]: packet from 165.146.130.104:500: Quick Mode message is for a non-existent (expired?) ISAKMP SA
Jun 6 17:35:31 box1 pluto[19184]: "net.local-net.10.145.3.0" #3: responding to Quick Mode
Jun 6 17:35:31 box1 pluto[19184]: "net.local-gate.10.145.3.0" #1: cannot respond to IPsec SA request because no connection is known for 10.145.1.0/24===10.145.1.10[@jhb.domain.com]...165.x.x.x[@ct.domain.com]===10.145.3.10/32

box2

[root@box2 root]# service ipsec start
ipsec_setup: Starting FreeS/WAN IPsec 1.99...
ipsec_setup: Using /lib/modules/2.4.20-18.7/kernel/net/ipsec/ipsec.o
^[[A[root@box2 root]# tail -f /var/log/secure
Jun 6 12:49:25 box2 pluto[5879]: added connection description "net.local-gate.10.145.1.0"
Jun 6 12:49:25 box2 pluto[5879]: added connection description "net.local-net.10.145.1.0"
Jun 6 12:49:25 box2 pluto[5879]: added connection description "gate.local-gate.10.145.1.0"
Jun 6 12:49:25 box2 pluto[5879]: listening for IKE messages
Jun 6 12:49:25 box2 pluto[5879]: adding interface ipsec0/eth0 10.145.3.10
Jun 6 12:49:25 box2 pluto[5879]: loading secrets from "/etc/ipsec.secrets"
Jun 6 12:49:25 box2 pluto[5879]: "gate.local-net.10.145.1.0" #1: initiating Main Mode
Jun 6 12:49:26 box2 pluto[5879]: "gate.local-net.10.145.1.0" #1: Peer ID is ID_FQDN: '@jhb.domain.com'
Jun 6 12:49:26 box2 pluto[5879]: "gate.local-net.10.145.1.0" #1: ISAKMP SA established
Jun 6 12:49:26 box2 pluto[5879]: "gate.local-net.10.145.1.0" #2: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS
Jun 6 12:49:28 box2 pluto[5879]: packet from 196.x.x.x:500: Quick Mode message is for a non-existent (expired?) ISAKMP SA
Jun 6 12:49:28 box2 last message repeated 2 times
Jun 6 12:49:34 box2 pluto[5879]: "gate.local-net.10.145.1.0" #3: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS
Jun 6 12:50:08 box2 pluto[5879]: "gate.local-gate.10.145.1.0" #4: responding to Quick Mode
Jun 6 12:50:08 box2 pluto[5879]: "gate.local-net.10.145.1.0" #1: cannot respond to IPsec SA request because no connection is known for 165.x.x.x/32===10.145.3.10[@ct.domain.com]...196.x.x.x[@jhb.domain.com]===10.145.1.0/24

I know whats causing the issue, just unsure how to fix it. my servers only have 1 nic each. the remote ip is my firewall. when i email the settings to myself, it tells me that my remote ip is : 192.168.65.17. I have no idea where is gets those settings from.

please could someone shed some light?

thanks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: freeswan ipsec vpn problem - please help
« Reply #1 on: June 06, 2005, 09:49:23 PM »
Quote from: "g00s3m4n"
please forgive me for posting in both general and experienced user discussion, but i am desperate


The option is always open to you to pay for some expert support.

Quote

please could someone shed some light?


I think you'd be better off asking on a freeswan/openswan mailing list or forum.

g00s3m4n

freeswan ipsec vpn problem - please help {more info added}
« Reply #2 on: June 06, 2005, 10:07:50 PM »
i have tried, but it wont allow me to even access the lists part of the website

depending on how much we are talking, i'd be willing to consider the payment option