
gahenders at gmail
Jul 1, 2012, 5:16 PM
Post #6 of 26
(3010 views)
Permalink
|
|
Re: Connection disconnected after 30 seconds
[In reply to]
|
|
Interesting. Which version were you using? When I run your configuration under 517 I get: ./vpnc: Vendor nortel only accepts nat traversal modes: none nortel-udp defaults to "none" and the connection fails with: do_phase2: S7.7 QM_packet3 sent - run script [2012-07-01 19:45:54] generating 52 bytes keymat (cnt=3) generating 52 bytes keymat (cnt=3) S7 setup_link (phase 2 + main_loop) [2012-07-01 19:45:54] S7.0 run interface setup script [2012-07-01 19:45:54] add host XXX.XXX.XXX.XXX: gateway XXX.XXX.XXX.XXX add net XXX.XXX.XXX.XXX: gateway XXX.XXX.XXX.XXX delete net default: gateway XXX.XXX.XXX.XXX add net default: gateway XXX.XXX.XXX.XXX S7.8 setup ipsec tunnel [2012-07-01 19:45:54] delete net default: gateway XXX.XXX.XXX.XXX tun0 add net default: gateway XXX.XXX.XXX.XXX delete host XXX.XXX.XXX.XXX: gateway XXX.XXX.XXX.XXX tun0 Couldn't open socket of ESP. Maybe something registered ESP already. Please try '--natt-mode force-natt' or disable whatever is using ESP. socket(PF_INET, SOCK_RAW, IPPROTO_ESP): Protocol wrong type for socket On Sun, Jul 1, 2012 at 7:18 PM, Gerald Nunn <gnunn [at] gexperts> wrote: > I had a similar problem but it wasn't related to the QOTD, if I commented > out the NAT Traversal Mode so it didn't select nortel-udp and instead went > with the default it worked fine for me. The customer whose VPN I am using > had upgraded their VPN and while it had worked fine before it stopped > working until I made that change. Here's my full configuration file: > > IPSec gateway xxx.xxx.xxx.xxx > IPSec ID xxxxxx > IPSec secret xxxxxx > Xauth username xxxxxxx > IKE Authmode PIN-token > Xauth PIN XXXX > #NAT Traversal Mode nortel-udp > Vendor nortel > Perfect Forward Secrecy dh5 > IKE DH Group dh5 > #Nortel Client ID 27 > > Gerald > > On Sun, Jul 1, 2012 at 7:11 PM, Glen Henderson <gahenders [at] gmail> wrote: >> >> No luck on setting the client id. I get the same behaviour. >> >> In actual fact the connection seems to be complete and working fine. >> I am (briefly) able to access web-based resources that are hidden >> being the VPN. Everything is OK until the connection drops somewhere >> between 20 and 30 seconds in. I have run a packet trace on the >> outside of the link and I do see an extra set of ISAKMP exchanges >> right around the time I get disconnected. Unfortunately, I cannot see >> what is going on during these exchanges since a) the packets are >> encrypted and b) VPNC has since spawned off another process to work in >> the background and I no longer see the debug output: >> >> S7.9 main loop (receive and transmit ipsec packets) >> [2012-07-01 19:02:22] >> rx.key_cry: eda4825c 7c704275 fdb260f1 5cf01d30 >> rx.key_md: >> 418be725 a9cd4958 95d7b474 13353436 c23d11e8 >> tx.key_cry: 3cf3ce3c a82fd20d 20721d6d 17744ce7 >> tx.key_md: >> 531ac235 ea90d59b 94ead547 f831f003 3a62b325 >> remote -> local spi: 0x526b1793 >> local -> remote spi: 0xf3adbc51 >> VPNC started in background (pid: 8011)... >> >> Is there a way to get the debug output of this background process? >> Does that get redirected somewhere? >> >> Cheers >> Glen >> >> On Sun, Jul 1, 2012 at 6:26 AM, Antonio Borneo <borneo.antonio [at] gmail> >> wrote: >> > Hi Glen, >> > >> > I'm putting the mailing list in copy, since other users of vpnc-nortel >> > could face same issue. >> > >> > My experience is that the accept/decline button acts on client only. >> > No message is sent back to the server. >> > The QOTD server just provides fixed reply to any telnet session and >> > close the connection at the end of the message. >> > >> > Try to set a higher value for "--nortel-client-id". Default is 10 or >> > "V04_15". >> > The maximum value 65535 "VEXTRA" is used by the Linux client >> > cvc_linux, but I'm not sure can work with every Nortel concentrator. >> > >> > Best Regards, >> > Antonio Borneo >> > >> > On Sun, Jul 1, 2012 at 12:01 PM, Glen Henderson <gahenders [at] gmail> >> > wrote: >> >> After thinking it over, I realize that clicking the accept button may >> >> not send anything on the network. The "accept/decline" button in the >> >> Windows client may simply terminate the connection at the client end. >> >> There may not be anything at the server end waiting for a formal >> >> 'accept' of the AUP. If that is the case, I am back to trying to >> >> figure out why my connection is terminating after a brief period of >> >> connectivity (around 30 secs). I am assuming that since I am getting >> >> the AUP message from the QOTD, everything is OK from the server's >> >> perspective. >> >> >> >> I have traced the successful windows packet exchanges and the only >> >> unusual things I see after the QOTD exchange are: >> >> >> >> 1. an IGMPv3 membership report >> >> 2. Some NBNS multi-home registration >> >> >> >> That is about it. From the system log it appears that the connection >> >> is terminated by the peer. >> >> >> >> >> >> On Sat, Jun 30, 2012 at 9:36 PM, Glen Henderson <gahenders [at] gmail> >> >> wrote: >> >>> You are definitely sending me on the right track. By querying that >> >>> QOTD server I received the typical "acceptable use policy" message >> >>> that I see presented to me when I connect using my Windows-based >> >>> Nortel client. After connecting using the Windows Nortel client a >> >>> dialog box with "Accept" or "Close" options is presented, implying >> >>> that I need to send a message somewhere to indicate that I accept the >> >>> AUP. When I telneted to the QOTD server, the AUP message was printed >> >>> out and then the telnet session closed. >> >>> >> >>> Do you have any insights on where I would send a "I accept" message in >> >>> such a scenario? I am assuming that since the Nortel VPN does not get >> >>> the "I accept" message it is dropping my connection. >> >>> >> >>> This is significant progress though. I appreciate the help. >> >>> >> >>> Cheers >> >>> Glen >> >>> >> >>> On Sat, Jun 30, 2012 at 7:40 PM, Antonio Borneo >> >>> <borneo.antonio [at] gmail> wrote: >> >>>> On Sun, Jul 1, 2012 at 4:49 AM, Glen Henderson <gahenders [at] gmail> >> >>>> wrote: >> >>>>> >> >>>>> I have seen this issue referenced before but I have not yet come >> >>>>> across a resolution. I am using vpnc version 517 on Mac connecting to a >> >>>>> Nortel VPN using token based authentication in nortel-udp NAT mode. I am >> >>>>> able to connect and ping remote resources but after 30 seconds or so my >> >>>>> session is disconnected. I saw mention a while back that there may be an >> >>>>> unsupported NAT mode at work here. Is this a known issue or should I upload >> >>>>> some debug logs to help diagnose this problem. >> >>>>> >> >>>>> Cheers >> >>>>> Glen >> >>>>> Gahenders [at] gmail >> >>>> >> >>>> Hi Glen, >> >>>> it seams I forgot to commit one patch about "Quote Of The Day" server >> >>>> in Nortel branch. >> >>>> I need to recover the old patch to rebase and commit it. >> >>>> In the mean time, here are some info for you to check. >> >>>> >> >>>> Using the official Nortel client and after the IPSec connection is >> >>>> established, a pop-up window is opened containing a message prepared >> >>>> by your network administrator. >> >>>> A QOTD server is responsible to send the content of the pop-up window >> >>>> to the client. >> >>>> Current vpnc-nortel does not decode the QOTD server info, does not >> >>>> contact the server, does not print the pop-up message. >> >>>> The QOTD server is inside the vpn protected network, so can only be >> >>>> accessed when IPSec connection is active. >> >>>> >> >>>> Network administrator can instruct the concentrator to check the >> >>>> version of the client. >> >>>> If version is older than expected, the concentrator replaces the QOTD >> >>>> message with an automatic error message reporting the lowest allowed >> >>>> version of the client. >> >>>> To print the error message, the concentrator have to complete the >> >>>> set-up of IPSec network, let client connect to QOTD server (inside >> >>>> the >> >>>> protected network), then drop the connection after 30 seconds >> >>>> timeout. >> >>>> >> >>>> I think this is the reason of your issue. >> >>>> >> >>>> Now, how to verify: >> >>>> run vpnc-nortel with flag "--debug 3" and perform a complete >> >>>> connection (that would be dropped in 30 seconds). >> >>>> Search inside the output the dumped packet with header: >> >>>> "S6.2 phase2_config receive modecfg" >> >>>> Inside this packet look for following lines: >> >>>> t.attributes.type: 400e (unknown) >> >>>> t.attributes.u.lots.length: 0004 >> >>>> t.attributes.u.lots.data: 0a000115 >> >>>> This is the info you need to connect to the QOTD server. >> >>>> The attribute type "400e" is QOTD server; following data reports IP >> >>>> address of the server. >> >>>> In my case it is 10.0.1.21, written in hex format. >> >>>> >> >>>> Now you have all info you need. >> >>>> Connect again to your server and be ready to use the 30 seconds of >> >>>> working connection to type in a shell (of course, replace with the IP >> >>>> address you get): >> >>>> telnet 10.0.1.21 17 >> >>>> You will get the error message from the server. >> >>>> >> >>>> Once you know what is the client version that is expected, just tune >> >>>> the config file of your vpnc with proper field "Nortel Client ID" or >> >>>> try with command line flag "--nortel-client-id". >> >>>> You can print all the available codes with "vpnc --nortel-client-id >> >>>> list" >> >>>> >> >>>> Let me know if this works >> >>>> >> >>>> Best Regards >> >>>> Antonio Borneo >> _______________________________________________ >> vpnc-devel mailing list >> vpnc-devel [at] unix-ag >> https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel >> http://www.unix-ag.uni-kl.de/~massar/vpnc/ > > > > _______________________________________________ > vpnc-devel mailing list > vpnc-devel [at] unix-ag > https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel > http://www.unix-ag.uni-kl.de/~massar/vpnc/ > _______________________________________________ vpnc-devel mailing list vpnc-devel [at] unix-ag https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel http://www.unix-ag.uni-kl.de/~massar/vpnc/
|