[Openswan Users] no public interfaces found on 2.6.37

Ozai ozai.tien at gmail.com
Tue Apr 24 07:14:20 EDT 2012


Dear Sirs,

I found that the virtual interface ipsec0 did not attach to real interfaces 
"eth0.1".Because it did not have the ipv4 address.Does it cause the issues 
of 'no public interfaces found'?Please help,thanks'.

# cat ipsec.conf

config setup
        dumpdir=/var/run/pluto/
        interfaces="ipsec0=eth0.1"
        oe=off
        protostack=klips

conn %default
                keyexchange=ike
                ike=3des-md5-modp1024
                esp=3des-md5
                auth=esp
                type=tunnel
                authby=secret
                auto=start

conn sample
                left=111.243.154.145
                leftsubnet=192.168.1.0/24
                right=111.243.154.196
                rightsubnet=192.168.2.0/24
====================================================
# ifconfig

eth0.1    Link encap:Ethernet  HWaddr 00:04:ED:01:00:05
          inet addr:172.17.21.64  Bcast:172.17.21.255  Mask:255.255.255.0
          inet6 addr: fe80::204:edff:fe01:5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1035 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:162237 (158.4 KiB)  TX bytes:768 (768.0 B)

ipsec0    Link encap:Ethernet  HWaddr 00:04:ED:01:00:05
          inet6 addr: fe80::204:edff:fe01:5/64 Scope:Link
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
==========================================
# ipsec setup start
/lib/libexec/ipsec/setup: line 65: id: not found
[: 0: unknown operand
ipsec_setup: Starting Openswan IPsec 2.6.37...

ipsec_setup: head: invalid option -- 1

ipsec_setup: BusyBox v1.17.2 (2012-04-24 18:18:46 CST) multi-call binary.

ipsec_setup: Usage: head [OPTIONS] [FILE]...

ipsec_setup: Print first 10 lines of each FILE (or stdin) to stdout.

ipsec_setup: With more than one FILE, precede each with a filename header.

ipsec_setup: Options:

ipsec_setup:    -n N[kbm]       Print first N lines

ipsec_setup: N may be suffixed by k (x1024), b (x512), or m (x1024^2).

ipsec_setup: head: invalid option -- 1

ipsec_setup: BusyBox v1.17.2 (2012-04-24 18:18:46 CST) multi-call binary.

ipsec_setup: Usage: head [OPTIONS] [FILE]...

ipsec_setup: Print first 10 lines of each FILE (or stdin) to stdout.

ipsec_setup: With more than one FILE, precede each with a filename header.

ipsec_setup: Options:

ipsec_setup:    -n N[kbm]       Print first N lines

ipsec_setup: N may be suffixed by k (x1024), b (x512), or m (x1024^2).

ipsec_setup: [: 1000: unknown operand


ipsec_setup: ipsec0 -> NULL mtu=0(0) -> 0

Jan  1 00:04:04 pluto[1822]: Starting Pluto (Openswan Version 2.6.37; Vendor 
ID
OEu\134d\134jy\134\134ap) pid:1822

Best Regards,
Ozai
----- Original Message ----- 
From: "Ozai" <ozai.tien at gmail.com>
To: "Tuomo Soini" <tis at foobar.fi>; <users at lists.openswan.org>
Sent: Thursday, April 19, 2012 6:51 PM
Subject: Re: [Openswan Users] no public interfaces found on 2.6.37


> Dear Sirs,
>
> This question did not seem to solve.Can someone give me the 
> suggestions,thank's.
>
> Best Regards,
> Ozai
> ----- Original Message ----- 
> From: "Tuomo Soini" <tis at foobar.fi>
> To: <users at lists.openswan.org>
> Sent: Wednesday, April 18, 2012 11:30 PM
> Subject: Re: [Openswan Users] no public interfaces found on 2.6.37
>
>
>> On Wed, 18 Apr 2012 18:21:26 +0800
>> "Ozai" <ozai.tien at gmail.com> wrote:
>>
>>> Dear Sirs,
>>>
>>> I merged the openswan(2.6.37) into embedded linux(2.6.30 mips).When I
>>> started the ipsec.I got the error message 'no public interfaces
>>> found' as below.Please help,how can I solve this question.thank's.
>>>
>>> Best Regards,
>>> Ozai
>>>
>>> # cat ipsec.conf
>>>
>>> config setup
>>>         dumpdir=/var/run/pluto/
>>>         interfaces=ipsec0=ppp0.1
>>
>> This would be (if your interface really is "ppp0.1" ?):
>>
>> interfaces="ipsec0=ppp0.1"
>>
>>>         oe=off
>>>         protostack=klips
>>>
>>> conn %default
>>>                 keyexchange=ike
>>>                 ike=3des-md5-modp1024
>>
>> This would be:
>>
>> ike=3des-md5;modp1024
>>
>>>                 esp=3des-md5
>>
>> And this:
>>
>> phase2alg=3des-md5;modp1024
>>
>>
>> -- 
>> Tuomo Soini <tis at foobar.fi>
>> Foobar Linux services
>> +358 40 5240030
>> Foobar Oy <http://foobar.fi/>
>> _______________________________________________
>> Users at lists.openswan.org
>> https://lists.openswan.org/mailman/listinfo/users
>> Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy
>> Building and Integrating Virtual Private Networks with Openswan:
>> http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155
> 



More information about the Users mailing list