[vpn-help] Command Line VPN connection

KrishnaMohan Bandi krishnamohan.bandi at gmail.com
Tue Dec 13 07:40:47 CST 2011


The command is ikec -r xxxx -a, where xxxx is vpn configuration file
that has all the information about what to connect to, the tunnel ip
address and various other parameters that you would see in the
ikea/qikea GUI.


On 13 December 2011 13:34, Giovanni . <giplusplus at gmail.com> wrote:
> Hi,
>
> great! It was exactly what I was looking for.
> I downloaded the 2.2.0 beta 2 version and compiled it. Iked works fine, but
> when I start ikec I receive the following error:
>
> root at gateway01:~/.ike# ikec -r 93.62.182.170 -a
> ii : ## : VPN Connect, ver 2.2.0
> ## : Copyright 2009 Shrew Soft Inc.
> ## : press the <h> key for help
> *** glibc detected *** ikec: munmap_chunk(): invalid pointer: 0x00015b68 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0x403a4774]
> /usr/local/lib/libss_idb.so.2.2.0(_ZN6_BDATA3insEPvjj+0x68)[0x4004057c]
> /usr/local/lib/libss_idb.so.2.2.0(_ZN6_BDATA3insEPcjj+0x34)[0x400406e4]
> /usr/local/lib/libss_ike.so.2.2.0(_ZN15_CONFIG_MANAGER13file_vpn_loadER7_CONFIG+0xec)[0x40031c98]
> /usr/local/lib/libss_ike.so.2.2.0(_ZN7_CLIENT11config_loadEv+0xf0)[0x40027608]
> ikec(main+0xb0)[0x930c]
> /lib/libc.so.6(__libc_start_main+0x18c)[0x4035ebec]
> ======= Memory map: ========
> 00008000-0000b000 r-xp 00000000 08:01 67313      /usr/local/bin/ikec
> 00012000-00013000 rw-p 00002000 08:01 67313      /usr/local/bin/ikec
> 00013000-00034000 rwxp 00013000 00:00 0          [heap]
> 40000000-4001a000 r-xp 00000000 08:01 210097     /lib/ld-2.6.1.so
> 4001a000-40020000 rw-p 4001a000 00:00 0
> 40021000-40022000 r--p 00019000 08:01 210097     /lib/ld-2.6.1.so
> 40022000-40023000 rw-p 0001a000 08:01 210097     /lib/ld-2.6.1.so
> 40023000-40036000 r-xp 00000000 08:01 86445
> /usr/local/lib/libss_ike.so.2.2.0
> 40036000-4003d000 ---p 00013000 08:01 86445
> /usr/local/lib/libss_ike.so.2.2.0
> 4003d000-4003e000 rw-p 00012000 08:01 86445
> /usr/local/lib/libss_ike.so.2.2.0
> 4003e000-40043000 r-xp 00000000 08:01 86449
> /usr/local/lib/libss_idb.so.2.2.0
> 40043000-4004a000 ---p 00005000 08:01 86449
> /usr/local/lib/libss_idb.so.2.2.0
> 4004a000-4004b000 rw-p 00004000 08:01 86449
> /usr/local/lib/libss_idb.so.2.2.0
> 4004b000-40050000 r-xp 00000000 08:01 86451
> /usr/local/lib/libss_ith.so.2.2.0
> 40050000-40057000 ---p 00005000 08:01 86451
> /usr/local/lib/libss_ith.so.2.2.0
> 40057000-40058000 rw-p 00004000 08:01 86451
> /usr/local/lib/libss_ith.so.2.2.0
> 40058000-4005a000 r-xp 00000000 08:01 86453
> /usr/local/lib/libss_log.so.2.2.0
> 4005a000-40061000 ---p 00002000 08:01 86453
> /usr/local/lib/libss_log.so.2.2.0
> 40061000-40062000 rw-p 00001000 08:01 86453
> /usr/local/lib/libss_log.so.2.2.0
> 40062000-40165000 r-xp 00000000 08:01 49076      /usr/lib/libcrypto.so.0.9.8
> 40165000-4016c000 ---p 00103000 08:01 49076      /usr/lib/libcrypto.so.0.9.8
> 4016c000-40180000 rw-p 00102000 08:01 49076      /usr/lib/libcrypto.so.0.9.8
> 40180000-40183000 rw-p 40180000 00:00 0
> 40183000-40195000 r-xp 00000000 08:01 210087     /lib/libpthread-2.6.1.so
> 40195000-4019c000 ---p 00012000 08:01 210087     /lib/libpthread-2.6.1.so
> 4019c000-4019d000 r--p 00011000 08:01 210087     /lib/libpthread-2.6.1.so
> 4019d000-4019e000 rw-p 00012000 08:01 210087     /lib/libpthread-2.6.1.so
> 4019e000-401a0000 rw-p 4019e000 00:00 0
> 401a0000-401c0000 r-xp 00000000 08:01 86408
> /usr/local/lib/libedit.so.0.0.38
> 401c0000-401c7000 ---p 00020000 08:01 86408
> /usr/local/lib/libedit.so.0.0.38
> 401c7000-401c9000 rw-p 0001f000 08:01 86408
> /usr/local/lib/libedit.so.0.0.38
> 401c9000-401cc000 rw-p 401c9000 00:00 0
> 401cc000-401d2000 r-xp 00000000 08:01 210088     /lib/librt-2.6.1.so
> 401d2000-401d9000 ---p 00006000 08:01 210088     /lib/librt-2.6.1.so
> 401d9000-401da000 r--p 00005000 08:01 210088     /lib/librt-2.6.1.so
> 401da000-401db000 rw-p 00006000 08:01 210088     /lib/librt-2.6.1.so
> 401db000-40282000 r-xp 00000000 08:01 50792      /usr/lib/libstdc++.so.6.0.9
> 40282000-4028a000 ---p 000a7000 08:01 50792      /usr/lib/libstdc++.so.6.0.9
> 4028a000-4028d000 r--p 000a7000 08:01 50792      /usr/lib/libstdc++.so.6.0.9
> 4028d000-4028f000 rw-p 000aa000 08:01 50792      /usr/lib/libstdc++.so.6.0.9
> 4028f000-40295000 rw-p 4028f000 00:00 0
> 40295000-4032f000 r-xp 00000000 08:01 210091     /lib/libm-2.6.1.so
> 4032f000-40336000 ---p 0009a000 08:01 210091     /lib/libm-2.6.1.so
> 40336000-40337000 r--p 00099000 08:01 210091     /lib/libm-2.6.1.so
> 40337000-40338000 rw-p 0009a000 08:01 210091     /lib/libm-2.6.1.so
> 40338000-40342000 r-xp 00000000 08:01 210093     /lib/libgcc_s.so.1
> 40342000-40349000 ---p 0000a000 08:01 210093     /lib/libgcc_s.so.1
> 40349000-4034a000 rw-p 00009000 08:01 210093     /lib/libgcc_s.so.1
> 4034a000-40443000 r-xp 00000000 08:01 210175     /lib/libc-2.6.1.so
> 40443000-4044b000 ---p 000f9000 08:01 210175     /lib/libc-2.6.1.so
> 4044b000-4044d000 r--p 000f9000 08:01 210175     /lib/libc-2.6.1.so
> 4044d000-4044e000 rw-p 000fb000 08:01 210175     /lib/libc-2.6.1.so
> 4044e000-40451000 rw-p 4044e000 00:00 0
> 40451000-40453000 r-xp 00000000 08:01 210103     /lib/libdl-2.6.1.so
> 40453000-4045a000 ---p 00002000 08:01 210103     /lib/libdl-2.6.1.so
> 4045a000-4045b000 r--p 00001000 08:01 210103     /lib/libdl-2.6.1.so
> 4045b000-4045c000 rw-p 00002000 08:01 210103     /lib/libdl-2.6.1.so
> 4045c000-4048f000 r-xp 00000000 08:01 49221
> /usr/lib/libncurses.so.5.0.4
> 4048f000-40497000 ---p 00033000 08:01 49221
> /usr/lib/libncurses.so.5.0.4
> 40497000-4049f000 rw-p 00033000 08:01 49221
> /usr/lib/libncurses.so.5.0.4
> 4049f000-404a0000 rw-p 4049f000 00:00 0
> 404a0000-404a6000 r-xp 00000000 08:01 210102     /lib/libnss_compat-2.6.1.so
> 404a6000-404ad000 ---p 00006000 08:01 210102     /lib/libnss_compat-2.6.1.so
> 404ad000-404ae000 r--p 00005000 08:01 210102     /lib/libnss_compat-2.6.1.so
> 404ae000-404af000 rw-p 00006000 08:01 210102     /lib/libnss_compat-2.6.1.so
> 404af000-404bf000 r-xp 00000000 08:01 210107     /lib/libnsl-2.6.1.so
> 404bf000-404c6000 ---p 00010000 08:01 210107     /lib/libnsl-2.6.1.so
> 404c6000-404c7000 r--p 0000f000 08:01 210107     /lib/libnsl-2.6.1.so
> 404c7000-404c8000 rw-p 00010000 08:01 210107     /lib/libnsl-2.6.1.so
> 404c8000-404ca000 rw-p 404c8000 00:00 0
> 404ca000-404d2000 r-xp 00000000 08:01 210182     /lib/libnss_nis-2.6.1.so
> 404d2000-404d9000 ---p 00008000 08:01 210182     /lib/libnss_nis-2.6.1.so
> 404d9000-404da000 r--p 00007000 08:01 210182     /lib/libnss_nis-2.6.1.so
> 404da000-404db000 rw-p 00008000 08:01 210182     /lib/libnss_nis-2.6.1.so
> 404db000-404e4000 r-xp 00000000 08:01 210109     /lib/libnss_files-2.6.1.so
> 404e4000-404eb000 ---p 00009000 08:01 210109     /lib/libnss_files-2.6.1.so
> 404eb000-404ec000 r--p 00008000 08:01 210109     /lib/libnss_files-2.6.1.so
> 404ec000-404ed000 rw-p 00009000 08:01 210109     /lib/libnss_files-2.6.1.so
> bef5c000-bef71000 rwxp befeb000 00:00 0          [stack]
> Aborted
>
>
> 93.62.182.170 is the file containing the site definition, which you can find
> in my first message.
>
> I receive the same message on another linux machine (CentOS 5.2 x84_64).
>
> Thanks.
>
> Giovanni.
>
> On Tue, Dec 13, 2011 at 8:39 AM, KrishnaMohan Bandi
> <krishnamohan.bandi at gmail.com> wrote:
>>
>> I should have mentioned the version I've used to run the ikec from command
>> line. It's 2.2.0 beta version and it worked for me
>>
>> On 13 Dec 2011 03:55, "Kevin VPN" <kvpn at live.com> wrote:
>>
>> On 12/12/2011 12:07 PM, Giovanni . wrote:
>> >
>> > Hi,
>> >
>> > I have a Linux box with no X server / qt libra...
>>
>> Hi Giovanni,
>>
>> I've never tried it, but I think that if you use the Shrew 2.2.0 betas
>> that there is a CLI interface available.  I think the program is 'ikec'.
>>
>>
>> _______________________________________________
>> vpn-help mailing list
>> vpn-help at lists.shrew.net
>> http...
>>
>>
>> _______________________________________________
>> vpn-help mailing list
>> vpn-help at lists.shrew.net
>> http://lists.shrew.net/mailman/listinfo/vpn-help
>>
>



More information about the vpn-help mailing list