Guest User!

You are not Sophos Staff.

PPP Dialup Working

G'Day All...

I couln't work out if I should put this in STABLE or UNSTABLE, so I put it here... Since I am working with 1.820.

I have just got PPP Dialup to work. I am logged onto the INTERNET now through my ASTARO firewall, and it is working fine (or will once I get EMAIL sorted out). There were a few gotcha's... And MANY MANY MANY dead ends.

1. The PPPD under ASTARO needs to be upgraded. It needs to be 2.4.0b1 or higher. Otherwise you get problems with invalid arguments for tcsetattr and PPPIOCGFLAGS. Believe me - Upgrade.

2. When you do, also also compile CHAT. It is needed.

3. If you want to do it yourself copy a chroot environment (pppoe) and create a new one. Start there...

I will get around to documenting things in the next few days. Right now I have to work out why mail isn't working

Darryl
  • G'Day... 

    More on getting ASYNC PPP to work... After copying the CHROOT environement, and copying the CHAT and PPPD files and renaming the start_pppoe.sh to start_ppp.sh

    This file needs a few mods...

    The line 
        logger -p daemon.info "DSL :`chroot $CHROOT /usr/sbin/pppoe -I $ETH -A  | grep -v \"\-\-\" `"
    Needs to be commented out. This line is the line that creates a stream with a PTY.

           chroot $CHROOT /usr/sbin/pppd debug -detach lock modem crtscts asyncmap 00000000 defaultroute 139.130.45.62:139.130.45.1 name vk2tds debug /dev/ttyS1 115200 remotename ppp0 ipparam ppp0 require-chap remotename cc1 holdoff 5 linkname ppp0 connect "/usr/sbin/chat -v -f /chat-ppp0"

    Edit this line to suit... I think it uses the /var/chroot-ppp/etc/ppp/options file but I am not sure how much of it... All I know is that it works with the mods. Also edit the PAP and CHAP secrets file in the same dir

    You will also need a CHAT file... I put mine in /var/chroot-ppp/ and called it chat-ppp0. It contained 
    'ABORT' 'BUSY'
    'ABORT' 'ERROR'
    'ABORT' 'NO CARRIER'
    'ABORT' 'NO DIALTONE'
    'ABORT' 'Invalid Login'
    'ABORT' 'Login incorrect'
    '' 'ATZ'
    'OK' 'ATDT0246404900'
    'CONNECT' ''
    'TIMEOUT' '5'
    '~--' ''

    Where the phone number is obvious :-). In addition you will need to create a CHROOTed device for /dev/ttyS0 or ttyS1 or whatever. You will probably need to copy mknod from somewhere to do this. mknod c 4 64 dev/ttyS0 from memory.


    Comment out the file 
          chroot $CHROOT /usr/sbin/pppd pty "/usr/sbin/pppoe -I $ETH -m 1452"

    And to repeat, YOU MUST GET A NEW COPY OF PPPD, version 2.4.0b1 OR BETTER. MUST MUST MUST. The version with ASL will not work with serial.

    OK. This is a COMPLETE HACK. I am sure that ASTARO will tell you that this is not supported, and I will tell you that I have no relationship with them other than I use their product... 

    I do not think that this adds any security issues, but you can never tell. Also make sure to remove whatever tools you put on the server to get this running. For me that was a copy of minicom (running loopback serial) and a few other tools [cp in the CHROOT environment].

    Don't forget to add a file to /etc/rc.d to start up on startup.

    I am not sure how this copes with the modem handing up... The firewall crashes before that happens (too much CPU load I suspect)... Also I do not know if the daemon will restart if it suicides.

    Of course also I may have missed something... That is always a danger, but I can tell you that I have had it working. 

    Sorry for the poorly formatted message...

    Darryl
  • hi darryl,

    can you pack a ready-to-run tar.gz with the parts and docs ? 

    I could put it up on docs.astaro.org  

    /tom
  • Hi Darryl,

    thx for your ppp(oe?) hacking. Now i want build a package with your infos for doc.astaro.org but didnt find neither a version 2.4.0b1 of ppp nor of pppoe.
    Please explain 
     a little bit more.
  • G'Day

    PPPd [and chat if you do not have it] can be obtained from any distribution with a 2.4 kernal. I will place a copy of these files on my WWW site and let you know by private email tonight.

    It might be an idea to upgrade the PPPd on PPPOE too...

    Darryl

    Just found another gotcha... you need to have 
     /usr/local/bin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

    run at some stage after startup. This cannot be automatoc

    [ 25 July 2001: Message edited by: Darryl Smith ]
  • No package at the moment... Follow the instructions and it should be OK

    Darryl
  • hi everybody,
    could someone explane me step after step the
    entire procedure to implementing the ppp-dialup feature on ASL 2.0 beta3 ?
    Many thanks in advance from Florence 
    micio
  • Hi Darryl,
    I would try by myself to install ppp dial-up
    on ASL box and there are some steps that I 
    can't do because I don't know Linux very well.
    I've got the file "ppp-2.4.1.tar.gz",is the right file to upgrade PPPD in ASL and how can I do this?
    For the rest I think to haven't problems(I hope).
    So,could you explane me how upgrade PPPD in ASL?
    many thanks in advance: micio

    [ 19 August 2001: Message edited by: micio ]