Thursday, May 23, 2013

PPTP VPN Fails Frequently?

I have upped my Ubuntu to Raring Ringtail 13.04. Everything was just awesome. I set up my workspace. Now, it was the time to code. Woohoo! Connected to PPTP VPN to checkout code.  While I was checking out the code, VPN disconnected. Then on, each time I connect to VPN, it gets disconnected in a minute or so. Never stayed long enough to do something useful. When I switched from ethernet to another broadbad wi-fi, PPTP was stable. So, there was something wrong with my ethernet setting.

After a lot of head banging and, hit and trial, I landed on this post on a forum. It was not very encouraging, plus it was really old. I gave it a try anyway and voilà! it worked! The trick is to lower MTU value. MTU is maximum transmission unit, to quote Wikipedia:
In computer networking, the maximum transmission unit (MTU) of a communications protocol of a layer is the size (in bytes) of the largest protocol data unit that the layer can pass onwards. MTU parameters usually appear in association with a communications interface (NIC, serial port, etc.). Standards (Ethernet, for example) can fix the size of an MTU; or systems (such as point-to-point serial links) may decide MTU at connect time.
 I have set MTU to 1200 down from 1500. Using sudo ifconfig eth0 mtu 1200 command in Ubuntu.
$ sudo ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:24:d8:d8:32:09
          inet addr:  Bcast:  Mask:
          inet6 addr: feff::224:e8ff:fe88:3209/64 Scope:Link
          RX packets:142813 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97325 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:174397037 (174.3 MB)  TX bytes:8177616 (8.1 MB)

#Execute command
$ sudo ifconfig eth0 mtu 1200

#After (successfully connected to VPN and stable)
$ sudo ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:24:d8:d8:32:09
          inet addr:  Bcast:  Mask:
          RX packets:142851 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97372 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:174401881 (174.4 MB)  TX bytes:8184649 (8.1 MB)


  1. Drake Says,

    Actually I was not faced in such problem of failing pptp vpn frequently but don't know why you are facing in such problem. May be there is something wrong with your setup that's why checkup the entire setup. Thanks


  2. افضل شركة نقل اثاث بالمدينة المنورة تساعدك على نقل اثاثك بامان فلا داعى للقلق مع افضل شركة نقل اثاث بجدة

    عزيزى العميل انت من محبى التنقل باستمرار بالتالى انت بحاجة ماسة وضروية الى الاستعانة بالمختصين في نقل العفش خاصة ارخص شركة نقل اثاث بالرياض لان الاستعانة باى من عمالة الشوارع الغير مدربة والتي لا تمتلك خبرة كافية في نقل العفش او الحفاظ علية وليس هذا فقط فقد يؤدى الاستعانة بعمالة الشوارع الى حدوث حالة فقدان وتكسير للاثاث بالتالى التاثير الضار عليك عزيزى العميل

    لا تقلق مطلقاً الان بشأن نقل اي منقولات خاصة بك طالما استعنت بشركة الاول لـ نقل الأثاث في الرياض وخارج الرياض فنحن ليس الوحيدون ولكننا متميزون عن اى مؤسسة أخرى داخل وخارج الدمام وشهرتنا كافضل شركة نقل عفش بينبع
    نقل اثاث بجدة

  3. Best Cleaning Services In NYC For Your Apartment

    Improve your home's interior with services from our شركة تنظيف خزانات بالرياض organization in Rancho Cucamonga, California. I require many times to get everything caught up. I clean alone..if after a few times I skip something or something does not get done to your liking tell me, leave me a note and it will be corrected. Clean floors, stacked dishes, and dust-free surfaces make every home look its best. Nursing is usually a career for people who want to help others. Boss usually my tip told HER I was doing the good job her customer wanted/required.

    We also have clients that struggle to pay for our cleaning services, and if they work with us, we will work with them. Various other higher qualified duties, such as duct washing, outdoor شركة تنظيف فلل بالرياض عمالة فلبينية screen washing, gutter washing, and recovery washing (after a deluge or fireplace) are also very best remaining to specialists. One of the readers likened housekeepers to nursing staff.

    Mind you I'm shifting out therefore certainly I possess additional washing and agreement appointments to have a tendency to even though still needing to get in the road to move back to افضل شركة تنظيف بالرياض Southern California. And if you're utilizing a coupon or a offer, determine the regular-priced price for the provider, in case you're excited with their work and need them to return.

    In all these years it offers under no circumstances changing products..I enable 4-5 hours per home. The males decided that فني مكيفات بالرياض was all right-after it was more than. I think the smartest clients are the one's that have their house cleaned out before a party or when having out of city guests. End up being a much better and quicker cleaner with these smart concepts that make use of why-didn't-I-think-of-that equipment and innovative methods that help consider the function out of your task list.

    Our washing female is certainly paid 30.00 per hour, 5 hours , every two weeks. 3 hours of washing for $130 + paper towels and washing items and I have got to drain my vacuum. $25-30 an hour for an efficient solution, شركة تنظيف منازل بالرياض noting you can get non-professionals who will do it for $15 an hour, they will take 5 hours to do what a professional can do in 2, so $75 @$15p/h is definitely not really that cheap compared to $50 @$25p/h.


  4. ان عمليه التنظيف تكون من اصعب المهام التى تتطلب الدقه الشديده والجهد المتواصل شركة تنظيف منازل بجازان
    مع شركة نسيم الجنوب شركة تنظيف بجازان
    توفر لك كل سبل الراحه شركة نقل عفش بجازان
    من كافه اعمال التنظيف بجميع المراحل اليومية
    شركة مكافحة حشرات بجازان
    ان شركة نسيم الجنوب من اعرق الشركات
    شركة مكافحة النمل الابيض بجازان فى اعمال التنظيف مع شركة نسيم الجنوب وداعا تمام للتعب والجهد والمشقهه

    شركة تنظيف سجاد وموكيت بجازان
    ونعم للراحه وتوفير الوقت ان الشركة تمتلك افضل انواع المعدات
    شركة تنظيف كنب بجازان بالبخار
    التى تستخدم فى عمليه التنظيف
    شركة اعمال لياسة بجازان
    كما ايضا تمتلك افضل العماله المدربة
    شركة اعمال سباكة بجازان
    على اكمل وجهه ختى تقدم لك خدمه تتناسب اسم الشركة
    شركة اعمال سباكة بجازان كما ايضا يتوفر كل انواع المواد التى تمتلك الجوده فى اعمال التنظيف