ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] вопрос по ipsec (связь теряется)
@ 2005-12-19 12:12 Vitaly Gorshkov
  0 siblings, 0 replies; only message in thread
From: Vitaly Gorshkov @ 2005-12-19 12:12 UTC (permalink / raw)
  To: community

Ситуация:
1) комп
   AltMAster 2.4 + Backports + updates

ipsec.conf
config setup
        interfaces="ipsec1=ppp0"
        klipsdebug=none
        plutodebug=none
        plutoload=%search
        plutostart=%search
conn %default
        keyingtries=0
        disablearrivalcheck=no
        auth=esp
        authby=rsasig
        compress=yes
        pfs=yes
        ah=hmac-md5-96
        esp=3des-md5-96
        ike=3des-md5-modp1536,3des-md5-modp1024,3des-sha-modp1536,3des-sha-modp1024
conn ru-prag-perehod
    auth=esp
    esp=3des-md5
    type=tunnel
    authby=secret
    left=x.x.x.x
    leftnexthop=x.x.x.x
    leftsubnet=192.168.2.0/24
    right=x.x.x.x
    rightnexthop=x.x.x.x
    rightsubnet=172.16.0.0/24
    spi=0x300
    auto=start


# rpm -qa|grep swan
openswan-1.0.9-alt0.M24.1

------------------------------------------------
2) комп
Slackware
# uname -r
2.4.26
FreeSwan

ipsec.conf
config setup
         interfaces="ipsec1=eth0"
         klipsdebug=none
         plutodebug=none


conn %default
        keyingtries=0
        disablearrivalcheck=no
        auth=esp
        authby=rsasig
        compress=yes
        pfs=yes

conn prag-ru-perehod
        auth=esp
        type=tunnel
        authby=secret
        left=x.x.x.x
        leftnexthop=x.x.x.x
        leftsubnet=192.168.2.0/24
        right=x.x.x.x
        rightnexthop=x.x.x.x
        rightsubnet=172.16.0.0/24
        spi=0x300
        #auto=add
        auto=start
---------------------------------------------------

Периодически (раз в день), связь теряется - машины в другой сети не
пингуется,
лечится ipsec setup

----------------------------------------------------------------

вот отличия ipsec auto -status

а)когда висит соединение:
..
000 "ru-prag-perehod":   newest ISAKMP SA: #1; newest IPsec SA: #2; eroute owner: #2
..
000 #2: "ru-prag-perehod" STATE_QUICK_I2 (sent QI2, IPsec SA established); EVENT_SA_REPLACE in 27930s; newest IPSEC; eroute owner
000 #2: "ru-prag-perehod" esp.78c3b689@x.x.x.x esp.9983ff97@x.x.x.x comp.22da@x.x.x.x comp.a164@x.x.x.x tun.1002@x.x.x.x tun.1001@x.x.x.x
000 #1: "ru-prag-perehod" STATE_MAIN_I4 (ISAKMP SA established); EVENT_SA_REPLACE in 2993s; newest ISAKMP

б) ipsec setup restart
ipsec auto --status
...
000 "ru-prag-perehod":   newest ISAKMP SA: #32; newest IPsec SA: #26; eroute owner: #26
..
000 #31: "ru-prag-perehod" STATE_MAIN_R3 (sent MR3, ISAKMP SA established); EVENT_SA_REPLACE in 456s
000 #26: "ru-prag-perehod" STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 12653s; newest IPSEC; eroute owner
000 #26: "ru-prag-perehod" esp.78c3b65e@x.x.x.x esp.63daaf5c@x.x.x.x comp.22af@x.x.x.x comp.e4a1@x.x.x.x tun.1008@x.x.x.x tun.1007@x.x.x.x
000 #32: "ru-prag-perehod" STATE_MAIN_R3 (sent MR3, ISAKMP SA established); EVENT_SA_REPLACE in 3288s; newest ISAKMP






-- 
С уважением,
 Vitaly                          mailto:vita55555@mail.ru
icq: 138491970




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-19 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-19 12:12 [Comm] вопрос по ipsec (связь теряется) Vitaly Gorshkov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git