[Openswan Users] OpenWrt, inet: Unknown host

Paul Wouters paul at xelerance.com
Fri Mar 23 15:09:46 EDT 2007


On Fri, 23 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.

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