trendchiller
Mitglied
- Mitglied seit
- 3 Jun 2011
- Beiträge
- 380
- Punkte für Reaktionen
- 3
- Punkte
- 18
http://forums.juniper.net/t5/SRX-Services-Gateway/IKE-life-time-VS-IPSEC-life-time/td-p/140937 schrieb:IKE Phase -1 (ISAKMP) life time should be greater than IKE Phase-2 (IPSec) life time . 86400 sec (1 day) is a common default and is normal value for Phase 1 and 3600 (1 hour) is a common value for Phase 2
So sollte man einen Tag überstehen:
:Neugier ON: Wozu muss man eigentlich dauerhaft per VPN verbunden sein? :Neugier OFF:
14/02/17 17:38:55 ii : next tunnel DPD request in 15 secs for peer xxxxxxxxxxx
14/02/17 17:39:00 ii : phase1 sa is expired
14/02/17 17:39:00 ii : 89dfcc87242b856a:9b95edb3bdb33b26
14/02/17 17:39:00 DB : phase1 found
14/02/17 17:39:00 -> : send NAT-T:KEEP-ALIVE packet xxxxxxxxx:4500 -> xxxxxxxxxxxxxxxxxx
14/02/17 17:39:03 K! : unhandled pfkey message type EXPIRE ( 8 )
14/02/17 17:39:03 K! : unhandled pfkey message type EXPIRE ( 8 )
14/02/17 17:39:04 ii : phase2 sa is dead
14/02/17 17:39:04 ii : phase2 removal after expire time
14/02/17 17:39:04 DB : phase2 deleted ( obj count = 0 )
14/02/17 17:39:06 ii : phase1 sa is dead
14/02/17 17:39:06 ii : 89dfcc87242b856a:9b95edb3bdb33b26
14/02/17 17:39:06 DB : config deleted ( obj count = 1 )
14/02/17 17:39:06 ii : phase1 removal after expire time
14/02/17 17:39:06 DB : phase1 deleted ( obj count = 1 )
14/02/17 17:39:10 DB : phase1 found
14/02/17 17:39:10 ii : sending peer DPDV1-R-U-THERE notification
version {
revision = "$Revision: 1.30 $";
creatversion = "1.1";
}
pwcheck {
}
datapipecfg {
security = dpsec_quiet;
icmp {
ignore_echo_requests = no;
destunreach_rate {
burstfactor = 6;
timeout = 1;
}
timeexceeded_rate {
burstfactor = 6;
timeout = 1;
}
echoreply_rate {
burstfactor = 6;
timeout = 1;
}
}
masqtimeouts {
tcp = 15m;
tcp_fin = 2m;
tcp_rst = 3s;
udp = 5m;
icmp = 30s;
got_icmp_error = 15s;
any = 5m;
tcp_connect = 6m;
tcp_listen = 2m;
}
ipfwlow {
input {
}
output {
}
}
ipfwhigh {
input {
}
output {
}
}
NAT_T_keepalive_interval = 20;
}
targets {
policies {
name = "blabla.no-ip.org";
connect_on_channelup = no;
always_renew = no;
reject_not_encrypted = no;
dont_filter_netbios = yes;
localip = 0.0.0.0;
virtualip = 192.168.1.205;
remoteip = 0.0.0.0;
remotehostname = "blabla.no-ip.org";
localid {
user_fqdn = "i_pc_local";
}
mode = mode_aggressive;
phase1ss = "all/all/all";
keytype = keytype_pre_shared;
key = "key";
cert_do_server_auth = no;
use_nat_t = yes;
use_xauth = no;
use_cfgmode = no;
phase2localid {
ipaddr = 192.168.1.205;
}
phase2remoteid {
ipnet {
ipaddr = 192.168.1.0;
mask = 255.255.255.0;
}
}
phase2ss = "esp-all-all/ah-none/comp-all/pfs";
accesslist = "permit ip any 192.168.1.0 255.255.255.0";
wakeupremote = no;
}
}
policybindings {
}
// EOF
n:version:4
n:network-ike-port:500
n:network-mtu-size:1380
n:client-addr-auto:1
n:network-natt-port:4500
n:network-natt-rate:15
n:network-frag-size:540
n:network-dpd-enable:1
n:client-banner-enable:1
n:network-notify-enable:1
n:client-dns-used:0
n:client-dns-auto:1
n:client-dns-suffix-auto:1
n:client-splitdns-used:1
n:client-splitdns-auto:1
n:client-wins-used:0
n:client-wins-auto:1
n:phase1-dhgroup:2
n:phase1-keylen:256
n:phase1-life-secs:3600
n:phase1-life-kbytes:0
n:vendor-chkpt-enable:0
n:phase2-keylen:256
n:phase2-life-secs:3600
n:phase2-life-kbytes:0
n:policy-nailed:0
n:policy-list-auto:0
s:network-host:blabla.no-ip.org
s:client-auto-mode:pull
s:client-iface:virtual
s:network-natt-mode:enable
s:network-frag-mode:enable
s:auth-method:mutual-psk
s:ident-client-type:ufqdn
s:ident-server-type:address
s:ident-client-data:i_pc_local
b:auth-mutual-psk:key
s:phase1-exchange:aggressive
s:phase1-cipher:aes
s:phase1-hash:sha1
s:phase2-transform:esp-aes
s:phase2-hmac:sha1
s:ipcomp-transform:deflate
n:phase2-pfsgroup:2
s:policy-level:auto
s:policy-list-include:192.168.1.0 / 255.255.255.0
version {
revision = "$Revision: 1.30 $";
creatversion = "1.1";
}
pwcheck {
}
datapipecfg {
security = dpsec_quiet;
icmp {
ignore_echo_requests = no;
destunreach_rate {
burstfactor = 6;
timeout = 1;
}
timeexceeded_rate {
burstfactor = 6;
timeout = 1;
}
echoreply_rate {
burstfactor = 6;
timeout = 1;
}
}
masqtimeouts {
tcp = 15m;
tcp_fin = 2m;
tcp_rst = 3s;
udp = 5m;
icmp = 30s;
got_icmp_error = 15s;
any = 5m;
tcp_connect = 6m;
tcp_listen = 2m;
}
ipfwlow {
input {
}
output {
}
}
ipfwhigh {
input {
}
output {
}
}
NAT_T_keepalive_interval = 20;
}
targets {
policies {
name = "blabla.no-ip.org";
connect_on_channelup = no;
always_renew = no;
reject_not_encrypted = no;
dont_filter_netbios = yes;
localip = 0.0.0.0;
virtualip = 192.168.1.206;
remoteip = 0.0.0.0;
remotehostname = "blabla.no-ip.org";
localid {
user_fqdn = "i_pc_routing";
}
mode = mode_aggressive;
phase1ss = "all/all/all";
keytype = keytype_pre_shared;
key = "key";
cert_do_server_auth = no;
use_nat_t = yes;
use_xauth = no;
use_cfgmode = no;
phase2localid {
ipaddr = 192.168.1.206;
}
phase2remoteid {
ipnet {
ipaddr = 192.168.1.0;
mask = 255.255.255.0;
}
}
phase2ss = "esp-all-all/ah-none/comp-all/pfs";
accesslist = "permit ip any 192.168.1.0 255.255.255.0",
"reject udp any any eq 53",
"reject udp any any eq 500",
"reject udp any any eq 4500",
"permit ip any any";
wakeupremote = no;
}
}
policybindings {
}
// EOF
n:version:4
n:network-ike-port:500
n:network-mtu-size:1380
n:client-addr-auto:1
n:network-natt-port:4500
n:network-natt-rate:15
n:network-frag-size:540
n:network-dpd-enable:1
n:client-banner-enable:1
n:network-notify-enable:1
n:client-dns-used:0
n:client-dns-auto:1
n:client-dns-suffix-auto:1
n:client-splitdns-used:1
n:client-splitdns-auto:1
n:client-wins-used:0
n:client-wins-auto:1
n:phase1-dhgroup:2
n:phase1-keylen:256
n:phase1-life-secs:3600
n:phase1-life-kbytes:0
n:vendor-chkpt-enable:0
n:phase2-keylen:256
n:phase2-life-secs:3600
n:phase2-life-kbytes:0
n:policy-nailed:0
n:policy-list-auto:0
s:network-host:blabla.no-ip.org
s:client-auto-mode:pull
s:client-iface:virtual
s:network-natt-mode:enable
s:network-frag-mode:enable
s:auth-method:mutual-psk
s:ident-client-type:ufqdn
s:ident-server-type:address
s:ident-client-data:i_pc_routing
b:auth-mutual-psk:key
s:phase1-exchange:aggressive
s:phase1-cipher:aes
s:phase1-hash:sha1
s:phase2-transform:esp-aes
s:phase2-hmac:sha1
s:ipcomp-transform:deflate
n:phase2-pfsgroup:2
s:policy-level:auto
s:policy-list-include:192.168.1.0 / 255.255.255.0
OK, ich habs denn mit etwas Geduld hinbekommen, dass Windows-Clients connected bleiben.
14/08/01 08:01:42 ii : ipc client process thread begin ...
14/08/01 08:01:42 <A : peer config add message
14/08/01 08:01:42 <A : proposal config message
14/08/01 08:01:42 <A : proposal config message
14/08/01 08:01:42 <A : client config message
14/08/01 08:01:42 <A : xauth username message
14/08/01 08:01:42 <A : xauth password message
14/08/01 08:01:42 <A : local id 'vpnuser' message
14/08/01 08:01:42 <A : preshared key message
14/08/01 08:01:42 <A : remote resource message
14/08/01 08:01:42 <A : peer tunnel enable message
14/08/01 08:01:42 DB : peer added ( obj count = 1 )
14/08/01 08:01:42 ii : local address 172.xx.xx.xx selected for peer
14/08/01 08:01:42 DB : tunnel added ( obj count = 1 )
14/08/01 08:01:42 DB : new phase1 ( ISAKMP initiator )
14/08/01 08:01:42 DB : exchange type is aggressive
14/08/01 08:01:42 DB : 172.xx.xx.xx:500 <-> 176.xx.xx.xx:500
14/08/01 08:01:42 DB : 7b621352d7e53419:0000000000000000
14/08/01 08:01:42 DB : phase1 added ( obj count = 1 )
14/08/01 08:01:42 >> : security association payload
14/08/01 08:01:42 >> : - proposal #1 payload
14/08/01 08:01:42 >> : -- transform #1 payload
14/08/01 08:01:42 >> : -- transform #2 payload
14/08/01 08:01:42 >> : -- transform #3 payload
14/08/01 08:01:42 >> : -- transform #4 payload
14/08/01 08:01:42 >> : -- transform #5 payload
14/08/01 08:01:42 >> : -- transform #6 payload
14/08/01 08:01:42 >> : -- transform #7 payload
14/08/01 08:01:42 >> : -- transform #8 payload
14/08/01 08:01:42 >> : -- transform #9 payload
14/08/01 08:01:42 >> : -- transform #10 payload
14/08/01 08:01:42 >> : -- transform #11 payload
14/08/01 08:01:42 >> : -- transform #12 payload
14/08/01 08:01:42 >> : -- transform #13 payload
14/08/01 08:01:42 >> : -- transform #14 payload
14/08/01 08:01:42 >> : -- transform #15 payload
14/08/01 08:01:42 >> : -- transform #16 payload
14/08/01 08:01:42 >> : -- transform #17 payload
14/08/01 08:01:42 >> : -- transform #18 payload
14/08/01 08:01:42 >> : key exchange payload
14/08/01 08:01:42 >> : nonce payload
14/08/01 08:01:42 >> : identification payload
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local supports XAUTH
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local supports nat-t ( draft v00 )
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local supports nat-t ( draft v01 )
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local supports nat-t ( draft v02 )
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local supports nat-t ( draft v03 )
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local supports nat-t ( rfc )
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local supports FRAGMENTATION
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local supports DPDv1
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local is SHREW SOFT compatible
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local is NETSCREEN compatible
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local is SIDEWINDER compatible
14/08/01 08:01:42 >> : vendor id payload
14/08/01 08:01:42 ii : local is CISCO UNITY compatible
14/08/01 08:01:42 >= : cookies 7b621352d7e53419:0000000000000000
14/08/01 08:01:42 >= : message 00000000
14/08/01 08:01:42 -> : send IKE packet 172.xx.xx.xx:500 -> 176.xx.xx.xx:500 ( 1203 bytes )
14/08/01 08:01:42 DB : phase1 resend event scheduled ( ref count = 2 )
14/08/01 08:01:47 -> : resend 1 phase1 packet(s) [0/2] 172.xx.xx.xx:500 -> 176.xx.xx.xx:500
14/08/01 08:01:52 -> : resend 1 phase1 packet(s) [1/2] 172.xx.xx.xx:500 -> 176.xx.xx.xx:500
14/08/01 08:01:57 -> : resend 1 phase1 packet(s) [2/2] 172.xx.xx.xx:500 -> 176.xx.xx.xx:500
[B]14/08/01 08:02:02 ii : resend limit exceeded for phase1 exchange[/B]
14/08/01 08:02:02 ii : phase1 removal before expire time
14/08/01 08:02:02 DB : phase1 deleted ( obj count = 0 )
14/08/01 08:02:02 DB : policy not found
14/08/01 08:02:02 DB : policy not found
14/08/01 08:02:02 DB : policy not found
14/08/01 08:02:02 DB : policy not found
14/08/01 08:02:02 DB : policy not found
14/08/01 08:02:02 DB : policy not found
14/08/01 08:02:02 DB : removing tunnel config references
14/08/01 08:02:02 DB : removing tunnel phase2 references
14/08/01 08:02:02 DB : removing tunnel phase1 references
14/08/01 08:02:02 DB : tunnel deleted ( obj count = 0 )
14/08/01 08:02:02 DB : removing all peer tunnel references
14/08/01 08:02:02 DB : peer deleted ( obj count = 0 )
14/08/01 08:02:02 ii : ipc client process thread exit ...
14/08/01 12:33:33 -> : send IKE packet [I]meine interne adresse[/I]:500 -> [I]adresse der fritzbox[/I]:500 ( 551 bytes )
14/08/01 12:33:33 DB : phase1 resend event scheduled ( ref count = 2 )
14/08/01 12:33:34 <- : recv IKE packet [I]adresse der fritzbox[/I]:500 -> [I]meine interne adresse[/I]:500 ( 524 bytes )
Deine Konfiguration arbeitet in jedem Falle ohne NAT-T (lt. Protokoll erfolgt IKE über Port 500). In jedem Falle wäre (trotz Proxy) ein Versuch mit "NAT-Traversal: Force RFC" bei den Clienteinstellungen noch lohnenswert. Die automatische NAT-Erkennung scheitert wahrscheinlich irgendwie ... ich kann mir ein Firmennetzwerk ohne NAT zum Internet aber eher nicht vorstellen.Ohne Proxy kann ich es leider nicht testen, da aus dem Büro.