Vpn and PPPoE at the same time

Discussion in 'Tomato Firmware' started by zveroslav, Jun 15, 2007.

  1. zveroslav

    zveroslav LI Guru Member

    Hi all,
    I have WRT54GL with the last version of Tomato.
    I connect to my ISP through PPPoE.

    My question is - can I make a VPN connection to my workplace - so I can access files on my work computer. It doesn't matter what kind of vpn it will be - openvpn, pptp... the other side is linux and is currently running pptpd.

    So the router has to connect through PPPoE to get internet and then connect to my office VPN.

    Is this possible with tomato? if yes what script should I use?
  2. ifican

    ifican Network Guru Member

    The easiest thing for you to do is let the router handle your internet connection and then create a vpn from your machine to work, allowing for the fact that your work will be ok with and is set up to receive vpn tunnels.
  3. eric_stewart

    eric_stewart Super Moderator Staff Member Member

    You can do this with DD-WRT's VPN build. I don't know if Tomato can do it (which kinda puts into question why I'm posting, doesn't it?). With DD-WRT's VPN build (I'm using v23 SP2 which is stable) you can choose between OpenVPN or PPTP clients.

    I'm guessing that since Tomato is based on the same (or similar) Linux kernel it should be fairly easy to build/install a package if one doesn't already exist for the Tomato f/w.

  4. zveroslav

    zveroslav LI Guru Member

    yes, I know and I'm currently doing just that, but it would be nice if the router can handle the vpn so all my home computers can connect to my workplace network transparently without every one of them dialing a vpn connection...

    I was wondering if I can add a script to trigger the pptp client (I think there is one in tomato) - something like:

    pptp ip_address username password

    I found pptp in /usr/sbin
    when I type pptp it says:
    pptp-linux version 1.1.0
    pptp hostname [[--phone <phone number>] [--quirks ISP_NAME] -- ][ pppd options]

    Or using pppd option pty:
    pty " pptp hostname --nolaunchpppd [--phone <phone number>] [--quirks ISP_NAME]"
    Currently recognized ISP_NAMEs for quirks are BEZEQ_ISRAEL

    what I want to know is where to put the options - like compression, authentification etc. - something like /etc/ppp/options and /etc/ppp/chap-secrets
  5. roadkill

    roadkill Super Moderator Staff Member Member

    I'm Sorry I made a mistake the pptp-client which creates the tunnel does exists in Tomato
    but is not usable for pptp tunneling with encryption to my understanding.
    I'll look around for something that actually works...
  6. zveroslav

    zveroslav LI Guru Member

    I don't see how this will create a pptp connection...
    May be a part of the script is missing?

    Where do I put the vpn-server's IP, username, password etc. ?

    Besides - ppp0 is already used for my PPPoE connection.
    May be the vpn should be ppp1 ?
  7. azeari

    azeari LI Guru Member

    tomato doesn't support connecting as a pptp client. but it does support pptp tunneling(tunnelling a pptp connection through a NAT to a local machine)

    so in order to get it to work, you'll have to use the windows pptp stuff
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice