[Openswan Users] OpenWrt, inet: Unknown host

Paul Wouters paul at xelerance.com
Tue Mar 27 14:17:15 EDT 2007


On Tue, 27 Mar 2007, Marcus Carlson wrote:

> > > > > The setup:
> > > > > OpenWrt Whiterussian with openswan 2.4.6 (installed with ipkg).
> > > > > ipsec.conf:
> > > > > conn mytunnel
> > > > >          right=ip.of.ri.ght
> > > > >          left=%defaultroute
> > > > > ipsec_setup: ifconfig: inet: Unknown host
> > > > that I've never seen before.
> > > Could it be something with busybox and/or the scripts cut the wrong piece
> > > from
> > > ifconfig?
> >
> > I am running openwrt 0.9 with openswan on a few boxes, and do not see that
> > error.
> >
> > > > > 022 "mytunnel": We cannot identify ourselves with either end of this
> > > > > connection.
> > > > Did you add interfaces="ipsec0=ppp0" ?
> > > > I did not see a ppp device on your ifconfig line. Is your pptp/ppoe
> > > > connection
> > > > up? Perhaps you need a different interfaces= lines?
> > > Not using ppoe, standard ethernet with static ip. I've tried setting
> > > interface
> > > to the different interfaces (br0, vlan1). Atm the interface line is
> > > remarked.
> > > Also when ifconfig -a I can see that the ipsec0 interface has the same MAC
> > > address as vlan1 (which should be right, I think)
> >
> > You can always add ipsec0 to br0, ipsec1 to vlan1, to ensure all physical
> > devices have an ipsecX device.
>
> Tried setting interfaces to the following:
> interfaces="ipsec0=br0 ipsec1=vlan1"
>
> When doing ipsec restart I get two (!) Unknown host

> ipsec_setup: ifconfig: inet: Unknown host
>
> ipsec_setup: ifconfig: inet: Unknown host

Odd. I bet the "ip route list" output differs from the normal output.

> replace gets;
>
> root at OpenWrt:~$ ipsec auto --replace mycon
> ipsec_auto: fatal error in "mycon": %defaultroute requested but not known
>
> Any other idea?

try this:

interfaces="%defaultroute"

Paul
-- 
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