Tomato OpenVPN Guide

Discussion in 'Tomato Firmware' started by herod98, Mar 14, 2011.

  1. herod98

    herod98 Networkin' Nut Member

  2. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    One clarification: Choosing TCP vs UDP should have nothing to do with the application type you're using. OpenVPN tunnels TCP and UDP traffic over whichever protocol you choose. Tunneling TCP over TCP is extremely inefficient, so TCP should only be chosen if you absolutely have to. That should only be if you have to go through an HTTP proxy, trick a firewall, or have a very flaky connection and have problems with UDP. If you have the option, you should absolutely 100% use UDP.
  3. herod98

    herod98 Networkin' Nut Member

    Hi SgtPepper

    Thankyou for the clarification;

    I was wondering why choosing UDP supported TCP!

    I'll update post accordingly.


  4. switchIt

    switchIt Networkin' Nut Member

    great work ! thanks .-)
  5. trezno

    trezno LI Guru Member

    I get a twofold speed increase when using TCP instead of UDP trough the VPN. I wonder why this is, when TCP over TCP is that inefficient?

    It seems my Tomato WRT54GL is better in utilizing CPU as when using TCP it use close to 100% CPU and I get speeds close to 3mbit, when using UDP I only get 1mbit and CPU usage is around 40%.
  6. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    That's very interesting. I was making my comment from a general OpenVPN/protocol standpoint (and based on discouragement from the OpenVPN folks themselves about using TCP), but I've never done any benchmarking comparing the two. If there is something intrinsic to our hardware platform that turns that advice on its head, I need to adjust my advice.

    That said, as I mentioned in my comment, one time that you should use TCP instead of UDP is if you have a bad connection between the server and client and see problems (including performance) due to it. You may fall into that category.
  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