[Openswan Users] roadwarrior over pppoe

Toni Cosma tonis at alphanet.ro
Wed Aug 29 06:20:42 EDT 2007


 

Hi again,... 

 

- Default route (ip route show match 0/0)

            

default dev ppp0  scope link

 

- Configuration on ppp0 (ip addr list ppp0)

            9: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 1492 qdisc
pfifo_fast qlen 3

            link/ppp

            inet 89.123.122.76 peer 89.123.64.254/32 scope global ppp0

            

- The function defaultinterface from your running _startklips (tail -n +210
/usr/lib/ipsec/_startklips | head -22)

            

# interfaces=%defaultroute:  put ipsec0 on top of default route's interface

defaultinterface() {

        phys=`netstat -nr |

                awk '$1 == "0.0.0.0" && $3 == "0.0.0.0" { print $NF }'`

        if test " $phys" = " "

        then

                echo "no default route, %defaultroute cannot cope!!!"

                exit 1

        fi

        if test `echo " $phys" | wc -l` -gt 1

        then

                echo "multiple default routes, %defaultroute cannot cope!!!"

                exit 1

        fi

        next=`netstat -nr |

                awk '$1 == "0.0.0.0" && $3 == "0.0.0.0" { print $2 }'`

        if [ "$next" = "0.0.0.0" ] ; then

                next=`ip addr list $phys | grep -E "^ +inet6*.*scope global
$phys" |

                        awk '{ if($3=="peer")print $4; else print $2 }' |
awk -F / '{ print $1 }'`

        fi

        klipsinterface "ipsec0=$phys" $next

}

Bye all

 

-----Original Message-----
From: Paulo F. Sedrez [mailto:sedrez+openswan at sedrez.ods.org] 
Sent: Wednesday, August 29, 2007 12:23 PM
To: Toni Cosma
Cc: 'Paulo F. Sedrez'; petermcgill at goco.net; users at www.openswan.org
Subject: RE: [Openswan Users] roadwarrior over pppoe

 

On Wed, 2007-08-29 at 09:54 +0300, Toni Cosma wrote:

> Hi all,

> 

>  

> 

> I have patched openswan source with:

> 

>             root at B:/usr/src/openswan-2.4.9# patch -p1

> < ../openswan-2.4.9-stkl.patch

> 

> but at B side same error:

> 

> Aug 29 09:32:40 B ipsec_setup: KLIPS ipsec0 on ppp0

> 89.123.122.76/255.255.255.255 pointopoint 89.123.64.254

> 

> Aug 29 09:32:41 B ipsec_setup: ...Openswan IPsec started

> 

> Aug 29 09:32:41 B ipsec_setup: Starting Openswan IPsec 2.4.9...

> 

> Aug 29 09:32:41 B ipsec__plutorun: ipsec_auto: fatal error in

> "A-B_rw": %defaultroute requested but not known

 

That's weird. I have this here working fine (FC6 + openswan/klips 2.4.9

+ kernel 2.6.20-1.2962.fc6).

 

Could you please send me some information?

 

- Default route (ip route show match 0/0)

- Configuration on ppp0 (ip addr list ppp0)

- The function defaultinterface from your running _startklips 

(tail -n +210 /usr/lib/ipsec/_startklips | head -22)

 

Thank you.

 

-- 

Paulo F. Sedrez <sedrez+openswan at sedrez.ods.org>

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20070829/afd3dc89/attachment-0001.html 


More information about the Users mailing list