Re: [Vserver] PPP inside VServer

From: Eugene Roux <eroux_at_damn.org.za>
Date: Mon 28 Aug 2006 - 13:46:04 BST
Message-Id: <1156769164.12300.0.camel@norbert>

Hi Herbert,

On Fri, 2006-08-25 at 01:30 +0200, Herbert Poetzl wrote:
> On Thu, Aug 24, 2006 at 09:15:09PM +0200, Eugéne Roux wrote:
> > Hi Baltasar,
> >
> > On 24 Aug 2006, at 5:14 PM, Baltasar Cevc wrote:
> >
> > >I'm not sure, but that may be a priviledge problem - try if it works
> > >when adding the appropirate capabilities if you haven't done so yet
> > >(I think it should be CAP_NET_ADMIN). However adding that capability
> > >is a security issue as the guest is allowed to change too many
> > >network settings then.
> >
> > I assumes so initially as well, but since I got little out of the
> > system, I decided to throw CAPS at it in the hope that I could tighten
> > up to the express limit it required once I got it working.
> >

<snip />

> > Accessing these modems using "cu -l /dev/modem" works fine, but when I
> > try and bring up a PPP link I get the following:
>
> > root@vs01-vc01:/# /usr/sbin/pppd.org user root call FOOCHAT
> > chat: Aug 22 12:07:35 CONNECT 1800000
> > Serial connection established.
> > Using interface ppp0
> > Connect: ppp0 <--> /dev/modem
> > Could not determine remote IP address: defaulting to 10.64.64.64
> > ioctl(SIOCSIFDSTADDR): Cannot assign requested address(99)
> > Connection terminated.
> > Connect time 0.1 minutes.
> > Sent 126 bytes, received 150 bytes.
> > root@vs01-vc01:/#
>
> could you run that through strace -fF please and
> narrow the syscalls down to the relevant ones
> around the ioctl(SIOCSIFDSTADDR)?

3840 fcntl64(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=1020, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=1020, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=1028, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=1020, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=1020, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=1028, len=1}) = 0
3840 ioctl(4, JFFS_PRINT_HASH or PPPIOCGFLAGS, 0xbfd30dd4) = 0
3840 ioctl(4, PPPIOCSFLAGS, 0xbfd30dd4) = 0
3840 ioctl(5, SIOCGIFCONF, {32, {{"eth0:vc01", {AF_INET, inet_addr("10.121.23.187")}}}}) = 0
3840 ioctl(5, SIOCGIFFLAGS, {ifr_name="eth0:vc01", ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST}) = 0
3840 ioctl(5, SIOCGIFNETMASK, {ifr_name="eth0:vc01", ifr_netmask={AF_INET, inet_addr("255.255.255.255")}}) = 0
3840 ioctl(5, SIOCSIFADDR, 0xbfd30dac) = 0
3840 ioctl(5, SIOCSIFDSTADDR, 0xbfd30dac) = -1 EADDRNOTAVAIL (Cannot assign requested address)
3840 time(NULL) = 1156758026
3840 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=98, ...}) = 0
3840 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=98, ...}) = 0
3840 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=98, ...}) = 0
3840 send(3, "<27>Aug 28 11:40:26 pppd[3840]: "..., 90, MSG_NOSIGNAL) = 90
3840 write(1, "ioctl(SIOCSIFDSTADDR): Cannot as"..., 58) = 58
3840 write(1, "\n", 1) = 1
3840 time(NULL) = 1156758026
3840 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=98, ...}) = 0
3840 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=98, ...}) = 0
3840 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=98, ...}) = 0
3840 send(3, "<28>Aug 28 11:40:26 pppd[3840]: "..., 62, MSG_NOSIGNAL) = 62
3840 write(1, "Interface configuration failed", 30) = 30
3840 write(1, "\n", 1) = 1
3840 ioctl(5, SIOCDEVPRIVATE, 0xbfd30ce4) = 0
3840 gettimeofday({1156758026, 338020}, NULL) = 0
3840 fcntl64(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=1028, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=1028, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=1028, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=1028, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=1020, len=1}) = 0
3840 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=1020, len=1}) = 0

Hope this helps...
        Eugéne

-- 
Eugéne Roux                "Fairy tales do not tell children the dragons
Cynical Romantic,                  exist.  Children already know dragons
Romantic Philosopher,              exist.  Fairy tales tell children the
Philosophising Cynic             dragons can be killed." G.K. Chesterton

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

Received on Mon Aug 28 18:44:08 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 28 Aug 2006 - 18:44:14 BST by hypermail 2.1.8