Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PPOE Config Problems

I cannot seem to get an ADSL connection using the chroot-pppoe environment.  The ISP has given us static IPs and we have done the following so far without success.

set the default router to 0.0.0.0 added the first ISP assigned IP to the ETH1 interface.

copied the dev environment from chroot-pptp to chroot-ppoe (cp -a /var/chroot-pptp/dev/* /var/chroot-pppoe/dev

added the following lines to the /etc/modules.conf file:
alias tty-ldisc-3 ppp_async
alias char-major-108 ppp_generic
alias ppp0 ppp

edited the /var/chroot-pppoe/start_pppoe.sh file and changed the line ETH=eth0 to ETH=eth1

in /var/chroot-pppoe/etc/ppp/options we have edited the file and changed the line "user" to reflect our ISP assigned username (user me@myisp.com)

in /var/chroot-pppoe/etc/ppp/pap-secrets we have edited the file and changed the line to reflect our ISP assigned username and password (me@myisp.com * myisppassword)

in /var/chroot-pppoe/etc/ppp/chap-secrets we have edited the file and changed the line to reflect our ISP assigned username and password (me@myisp.com * myisppassword)

we then updated iptables with the command:
iptables -t nat -I POSTROUTING -o ppp0 -s OUR_LOCAL_NET -j MASQUERADE

We then executed /var/chroot-pppoe/start_ppoe.sh

So far we have been unsuccessful in getting a DSL connection to work.  We have seen errors stating "Couldn't attach tty to PPP unit 0: Invalid argument
pppoe: read (asyncReadFromPPP): Input/output error", "Couldn't open pty slave /dev/pts/1: No such file or directory
bash: Couldnt attach tty to PPP unit 0: Invalid argument
pppoe: read (asyncReadFromPPP): Input/output error Couldnt: No such file or directory" 
 
Has anyone gotten past these issues and successfully established a PPOE connection with static IP addresses on ETH1?, also has anyone added a script to automatically update iptables and start the pppoe script upon boot.

Any help is appreciated.  Thanks.


This thread was automatically locked due to age.
Parents
  • hi Tester,   
    quote:

    pppoe: read (asyncReadFromPPP): Input/output error", "Couldn't open pty slave /dev/pts/1: No such file or directory
    bash: Couldnt attach tty to PPP unit 0: Invalid argument
    pppoe: read (asyncReadFromPPP): Input/output error Couldnt: No such file or directory" 



    /dev/pts/1 is not there, only /dev/pts/0. I did not put the preliminary ppoe chroot together, so I am unsure about the usage of those PTY's (I think they are used to link pppd and ppoed). May try to get them to use /dev/pts/0 or make the /dev/pts/1 with mknod (included in the ASL pluspack).

    /tom
Reply
  • hi Tester,   
    quote:

    pppoe: read (asyncReadFromPPP): Input/output error", "Couldn't open pty slave /dev/pts/1: No such file or directory
    bash: Couldnt attach tty to PPP unit 0: Invalid argument
    pppoe: read (asyncReadFromPPP): Input/output error Couldnt: No such file or directory" 



    /dev/pts/1 is not there, only /dev/pts/0. I did not put the preliminary ppoe chroot together, so I am unsure about the usage of those PTY's (I think they are used to link pppd and ppoed). May try to get them to use /dev/pts/0 or make the /dev/pts/1 with mknod (included in the ASL pluspack).

    /tom
Children
  • Thanks for the reply, here is what I've done so far:

    I created the device pts/1 with the following command after I had installed the plus pack.
    /opt/bin/mknod -m 0622 /var/chroot-pppoe/dev/pts/1 c 136 1
    I then changed the group to tty (gid) using /bin/chgrp 5 /var/chroot-pppoe/dev/pts/1
    I then restarted the machine and invoked the script to bring up a pppoe connection, this is what I received:

    Couldn't attach tty to PPP unit 0: Invalid argument
    pppoe: ioctl(SIOCGIFHWADDR): No such device

    Any ideas why pppoe is not known as a device.

    Thanks.
  • Hi, Tester100, Have you solved this problem?

    Thank you.
  • Hi,

    Have you install the pppoe-package provided on docs.astaro.org /hacking /pppoe ?

    Seems you didn't, /dev/pts problem specific to pppoe package installed with CD of astaro 2.0 (don't know for 2.016) and not a functional version.

    Hopes help u.
  • Hi all,

    package chroot-pppoe.tar.gz from docs.astaro.org works for me since 2.016...
    Is your /var/chroot-pppoe/proc really mounted?