Выставить default route для PPPD

Я уже наверное плешь проел с VPN. Но в продолжение к статье мне подсказали, что для того, что бы не прописывать в /etc/ppp/ip-up

route add default ppp0 

можно в настройках подключения соединени new_connection добавить опцию defaultroute. Но как показала практика, эта опция не работает, то есть роуты не прописывает под ppp0 соединение. Можно открыть сорцы pppd и увидеть

/********************************************************************
 *
 * defaultroute_exists - determine if there is a default route
 */

static int defaultroute_exists (struct rtentry *rt)

<SNIP>

/********************************************************************
 *
 * sifdefaultroute - assign a default route through the address given.
 */

int sifdefaultroute (int unit, u_int32_t ouraddr, u_int32_t gateway)
{
    struct rtentry rt;

    if (defaultroute_exists(&rt) && strcmp(rt.rt_dev, ifname) != 0) {
        if (rt.rt_flags & RTF_GATEWAY)
            error("not replacing existing default route via %I",
                  SIN_ADDR(rt.rt_gateway));
        else
            error("not replacing existing default route through %s",
                  rt.rt_dev);
        return 0;
    }

Итак, мы видим, что если по умолчанию уже прописаны, defaultroute от pppd не сработает.

По мотивам статьи из инета.



131 Комментариев

  1. nx | Март 3, 2010

    и, а где же решение? =)

  2. Gep | Март 3, 2010

    Прежнее решение остается пока что. Это кривовато, но работает. А defaultroute как положено не сможет заработать.

  3. nx | Март 3, 2010

    конечно сможет!
    поверь мне, тебе не нужен default route по умолчанию =)

    я могу сказать почему, но тогда это перестанет быть загадкой =)

  4. Gep | Март 3, 2010

    Я только что выяснил, что надо еще проставить опцию

    replacedefaultroute

    Должно заработать. Приду домой, проверю

  5. FranOrist | Май 31, 2019

    Cialis 20 Mg Lilly Buy Viagra Online Off Pharmacy Prices Pastillas Propecia Finasteride cialis 20mg price at walmart Will Cephalexin Make Canines Tired Vendo Viagra Bergamo Discount Cheap Clobetasol How To Buy Amex

  6. RandVow | Июнь 2, 2019

    Putting Amoxicillin In Formula Comprar Priligy Online Contrareembolso Xenical Sans Ordonnance Prix Best Canadian Pharmacy Cialis Kamagra At Amazon

  7. FranOrist | Июнь 12, 2019

    Compra Cialis Chile canadian cialis buy accutane online reviews

  8. RandVow | Июнь 15, 2019

    Esperienze Cialis cialis Cialis Pas Cher Lyon Reputable Online Pharmacies Canada Provera Internet Visa Cod Only

  9. FranOrist | Июнь 21, 2019

    Generika Viagra Erfahrungen Amoxicillin Canine Pharmaceutical Side Effects cialis online Amoxicillin And Epstein Barr Cheap Cialis Next Day Shipping

  10. FranOrist | Июнь 23, 2019

    Hydrochlorothiazide Next Day Delivery Clomid Apres Avortement cheapest cialis Vente De Viagra Pas Cher En Caen Kamagra Oral Jelly Wo Bestellen Online Zithromax

  11. Austrus | Июнь 25, 2019

    Algondones Pharmacies Clomid Usa Shippments Online online pharmacy Cephalexin And Mao Inhibitors Propecia Genuine Buy Prescription Lasix 40 Mg Online

  12. RandVow | Июнь 27, 2019

    Levitra Walgreens Cialis Anwendung Zeitraum Cialis Versus Propecia generic 5mg cialis best price Cialis Farmacie Online Diabetic And Taking Amoxicillin

  13. FranOrist | Июнь 28, 2019

    Generic Viagra Available In Canada Commande Viagra Ligne Doxcycline No Prescription where to buy cialis online safely Levitra In Farmacia Viagra Alkohol Gefahrlich Xl Pharmacy

  14. RandVow | Июнь 29, 2019

    Trusted Online Pharmacy Non Prescription Zithromax tadalafil cialis from india How Long Does Amoxicillin Stay Good Comprar Cialis Espana Sin Receta

  15. FranOrist | Июль 8, 2019

    Cialis Online Usa cialis prix belgique pharmacie Where To Buy Tab Isotretinoin Visa Kamagra Australia Mastrcard

  16. FranOrist | Июль 15, 2019

    Libido411 Tienda De Propecia Par 701 Clomid For Sale cialis 5 mg best price usa Propecia Libido Impotence Cialis Bauchschmerzen

  17. FranOrist | Июль 17, 2019

    Choisir Clomid Cialis Professional Belgique Libre buy levitra super active online Generic Viagra Healthy Man Propecia Success The Bald Truth Cialis Tadalafilo 20mg

  18. FranOrist | Июль 25, 2019

    Xenical 120 Mg Price Uk cialis Accutane Online For Sale Citoteque Como Comprar Rj Precio Cialis Caja

  19. Stepgok | Март 18, 2020

    Cialis 20mg Vs 40mg Best Dosage Cialis Generic Fluoxetine Flutine Purchase cialis 5mg Real Propecia Reviews

  20. Victorhes | Октябрь 19, 2020

    Haudks gotwml price cialis buy cialis online cheap generic cialis online strongly find that varied of these govern array reducing symptoms.

  21. JamesEloky | Октябрь 28, 2020

    which is still shameless and in use genetically cheap cialis online model exam IР Р†d by any chance online pharmacy canada alone.

  22. Smfzon | Ноябрь 16, 2020

    essays buy – college essay assistance fast custom essay

  23. Wgqqax | Ноябрь 17, 2020

    viagra without a doctor prescription – http://onlineplvc.com/ buy viagra online cheap http://onlineplvc.com/

  24. Nxddft | Ноябрь 18, 2020

    buy viagra – http://expedp.com/ sildenafil citrate http://expedp.com/#

  25. Cpzsdp | Ноябрь 18, 2020

    safe canadian pharmacy – http://canadaxpha.com/ canadian pharmacy cialis canadian pharmacy cialis

  26. Ilwvhg | Ноябрь 18, 2020

    tadalafil 20 – http://cialirpl.com/ tadalafil 20mg http://cialirpl.com/

  27. Bgfxgm | Ноябрь 18, 2020

    generic cialis 20mg http://tadalarxpl.com/ cialis 5mg Cialis free delivery Uytbwf fcprgx

  28. Zffmkx | Ноябрь 19, 2020

    otc ed pills – https://goedpls.com/ ed medications online buy ed pills

  29. Chyhbb | Ноябрь 19, 2020

    best ed drug – https://oxcial.com/ cialis coupon Cialis health store

  30. Swimef | Ноябрь 19, 2020

    generic viagra reviews – https://vigaspro.com/ viagra online viagra for sale

  31. Swjhzq | Ноябрь 20, 2020

    buy tadalafil http://tadalaed.com/ generic cialis online tadalafil buy Mklymd bitqzg

  32. Xfgeoa | Ноябрь 21, 2020

    viagra online canadian pharmacy – https://sildefinik.com/ viagra generic name female viagra

  33. Nnwmxo | Ноябрь 21, 2020

    gambling casino https://casaslotsg.com/ slot machine games gambling casino Uojjpi vbcphb

  34. Rjpaqk | Ноябрь 25, 2020

    tadalafil 40 mg https://okviacia.com/ online slots real money viagra overnight Yvijcj mmjfdy

  35. Puctta | Ноябрь 25, 2020

    generic cialis at walmart https://tadalapi.com/ doubleu casino 5 mg cialis Uehymt gaoxbw

  36. Jcbcnq | Ноябрь 26, 2020

    buying cialis online safely https://cilipili.com/ casino online games cialis for sale Zwgivb ongwzi

  37. Xfinxw | Ноябрь 26, 2020

    canadian pharmacy no rx https://pharstores.com/ canadian vet pharmacy canadian online pharmacy reviews Oosxir bwjmra

  38. Iplnln | Ноябрь 27, 2020

    pills for ed https://edpionline.com/ ed medication online ed treatment review Rhtebk zjdued

  39. Bhgsrh | Ноябрь 28, 2020

    online casinos usa https://casimmoney.com/ best real casino online casino Imzimr qsjhzv

  40. Plrrqy | Ноябрь 28, 2020

    free slots online https://casinogambx.com/ real money casino app play for real online casino games Tbatmv rsmeuu

  41. Gvmuaq | Ноябрь 29, 2020

    casino online slots https://casinobmoney.com/ real casino online online casino games for real money Icxdfc hscdyn

  42. Xjqtcr | Ноябрь 30, 2020

    generic prednisone https://prednispis.com/ prednisolone 40mg what medications not to take with prednisone Ddpwux gquufd

  43. Mvkdet | Ноябрь 30, 2020

    buy viagra colorado https://viapll.com/ viagra viagra buy viagra cheap Ajgxot odumap

  44. Blsmxo | Декабрь 1, 2020

    us viagra sales https://viagtb.com/ buy viagra online cheap usa pharmacy viagra Vfbsvj jnowhs

  45. Xpuawy | Декабрь 1, 2020

    get viagra https://sildpline.com/ buy viagra massachusetts low cost canadian viagra Pspmvg pmymqa

  46. Rkhufo | Декабрь 1, 2020

    cialis online prescription http://tadaldos.com/ cost of cialis mail order cialis Njqntd xfdmsv

  47. Lncvjt | Декабрь 2, 2020

    tadalafil 20mg best price https://saleciatad.com/ real cialis Rdouzk noclzb

  48. Romlfs | Декабрь 2, 2020

    cialis mail order purchasing cialis online buy discount cialis Gcveoq zqewrl

  49. Urvbck | Декабрь 3, 2020

    viagra from canadian pharmacy reliable canadian pharmacy canadian pharmacy world coupon Qzgpgu rujmzf

  50. Dyaaqj | Декабрь 4, 2020

    walgreens online pharmacy https://pharmedp.com/ online canadian pharmacy review Frjvnx gernsi

  51. Azpdai | Декабрь 5, 2020

    canadian pharmacy cialis reviews https://okpharmx.com/ canadian pharmacies Wsfukw ofvell

  52. Howvbh | Декабрь 5, 2020

    buy cleocin generic http://okbiotic.com/ buy cefadroxil generic Osqgja cxqfjv

  53. Fzprmg | Декабрь 6, 2020

    ciplox capsules http://antibiopl.com/ buy keflex online Nvwpun fygfzp

  54. Wvmffz | Декабрь 8, 2020

    minomycin price sildenafil best dosage buy minocin online Gzdbfe qdoqut

  55. Lndxhv | Декабрь 8, 2020

    buy trimox online viagra online buy sumycin Dsylhn qigwxw

  56. Sobeji | Декабрь 9, 2020

    order cefadroxil online https://sildviagfil.com/ ampicillin for sale Cklgea piphgb

  57. Ywvzlu | Декабрь 10, 2020

    ciplox capsules cialis generic online terramycin price Zgmasj xiigtz

  58. Asyzno | Декабрь 10, 2020

    tadalafil dosage https://edpciall.com/ order generic cialis online Lnjrlz iksoqw

  59. Rcjrym | Декабрь 13, 2020

    viagra for sale sildenafil pill cheap generic viagra Hbdtnt rnwhpf

  60. Gjxalo | Декабрь 14, 2020

    canadian neighbor pharmacy https://strongedpills.com/ canadian family pharmacy Nowefu eqodiw

  61. Tkxvnn | Декабрь 17, 2020

    online ed pills medicine for impotence erectile dysfunction drug Zmorsg znijwo

  62. Jofhkr | Декабрь 17, 2020

    levitra usa https://levitstrong.com/ vardenafil 10 mg Gwncjc okhrhs

  63. Czivdy | Декабрь 17, 2020

    levitra online https://edlevitp.com/ vardenafil pills Xcawkc ilnzga

  64. Piepce | Декабрь 21, 2020

    buy viagra south dakota https://xviaged.com/ best prices on viagra Bwcigs kndnue

  65. Vyxval | Декабрь 28, 2020

    erectile dysfunction causes https://edcivip.com/ ed pills comparison Ltscsx dzyyxq

  66. Buqlqw | Январь 15, 2021

    vardenafil pills http://supervardp.com/ otc ed pills Avzyqp kolual

  67. Qyckbu | Январь 15, 2021

    sildenafil online http://sildepills.com/ ed treatment drugs Uibwid curukn

  68. Cdhjri | Январь 16, 2021

    generic sildenafil online http://sildenafig.com/ medicine for erectile Plaqbo xpzkdz

  69. Qpactr | Январь 16, 2021

    buy tadalafil online reddit http://tadstrong.com/ top ed drugs Vvajpw qdxhdq

  70. Klntyt | Январь 16, 2021

    buy tadalafil online http://taedfil.com/ erection pills viagra online Ditzle wjkjsw

  71. Yruklc | Январь 17, 2021

    generic vardenafil online order http://vardnedp.com/ cure ed Zvzqxl pqgwwv

  72. Whdtvm | Январь 20, 2021

    sildenafil when to take http://shpilipills.com/ best ed medication Nslzie ygqcuz

  73. Aocexp | Январь 21, 2021

    fda approved viagra http://viardos.com/ what is impotence Ylzznw avvauh

  74. Ffnokp | Январь 22, 2021

    cialis generic online http://cicilisp.com/ best over the counter ed pills Jbrqdx nngdlu

  75. Fdczun | Январь 23, 2021

    canada online pharmacy http://tadalafpis.com/ latest treatment for erectile dysfunction Gubwjg hffuxw

  76. Lbgcleva | Январь 24, 2021

    canada viagra dapoxetine viagra line viagra and shelf life http://genqpviag.com/ – best online sites for viagra ’

  77. Wzzbvy | Январь 25, 2021

    real casinos online no deposit http://slotsgamb.com/ gambling casino online Fsauaq octmlb

  78. Xyyfbz | Январь 26, 2021

    buy term papers online http://essay2y.com/ essay helpers Zfbwlr ybppyd

  79. Cfhhqq | Январь 29, 2021

    pay for essay writing uk http://essaynyc.com/ pay for term paper Dckwul pbsyep

  80. Anhbqn | Январь 31, 2021

    what are antibiotics http://antibioticxp.com/ purchase essays Cnagbw kkebqj

  81. Dxlsax | Февраль 1, 2021

    antibiotics definition http://antibiopll.com/ custom research paper writing Mrygji nqggty

  82. Jdbxcleva | Февраль 2, 2021

    viagra alternatives differences between viagra levitra and cialis viagra walgreens http://llviabest.com/ – viagra super active generic ’

  83. Tkuish | Февраль 5, 2021

    sildenafil when to take http://usviagpll.com/ research paper assistance Ztdyoz hqimtq

  84. Pukpme | Февраль 6, 2021

    certified canadian pharmacy http://phapll.com/ research papers writing Aihrsl jvoaot

  85. Vyrcfx | Февраль 7, 2021

    ed drug http://strongpha.com/ buy a custom essay Ybhedu fznkqb

  86. Fwlqdz | Февраль 9, 2021

    buy cephalexin http://antibitc.com/ best website for writing essays Yesiuu ymqvku

  87. Rabdfh | Февраль 10, 2021

    cialis now http://ciapili.com/ college paper help Ujsaht jmmnxk

  88. Nptisv | Февраль 11, 2021

    purchase cialis online http://edpll.com/ help writing papers Rewtpo sslqnn

  89. NbnhEruch | Февраль 11, 2021

    purchase generic viagra in canada http://vigedon.com/ viagra 123

  90. Labxcleva | Февраль 12, 2021

    lek na potencjД™ cialis how much is cialis in uk 30 day cialis free trial

  91. Ahbzcleva | Февраль 12, 2021

    online payday loans laws texas speedy payday loans online advance loan office newtown

  92. Fqbbcleva | Февраль 16, 2021

    cash advance with credit card at atm payday loans in rochester minnesota payday loans east bay

  93. Jbbncleva | Февраль 16, 2021

    cialis dapoksetin legal cialis uk is cialis available in generic form

  94. KvaxMusy | Февраль 17, 2021

    payday advance van nuys ca first cash advance round rock payday loans tampa fl

  95. Ovxhxf | Февраль 19, 2021

    buy essays for college http://essaywrw.com/ i need help with my assignment Jjtbwa cvuebw

  96. Vqwcqd | Февраль 19, 2021

    writing paper online http://wrtessay.com/ write my paper for me Tylkbk wxdkcc

  97. Nallar | Февраль 23, 2021

    provigil for adhd http://modafinipls.com/ modafinil and weight loss Qqzqoh xawjtk

  98. Fkogud | Февраль 23, 2021

    provigil vs nuvigil http://provipls.com/ provigil a narcotic Akbryc estvvn

  99. Owqjrz | Февраль 24, 2021

    ivermectin pills human – buy ivermectin cream for humans stromectol tablets for humans for sale

  100. Ioqvtq | Февраль 25, 2021

    cost of ivermectin pill – ivermectin 500mg ivermectin 0.08

  101. NbmoEruch | Февраль 27, 2021

    where to buy cialis in australia http://buycialisxz.com/ cialis dapoxetine

  102. Xatsma | Февраль 27, 2021

    medicine for erectile – ed pills walmart ed medication

  103. FjjuEruch | Март 1, 2021

    generic viagra cost http://viagraonlinejc.com/ viagra military

  104. Abgccleva | Март 24, 2021

    https://thesiswritingtob.com/ – thesis writing service uk phd online thesis abstracts thesis topics in education

  105. Lmoppcleva | Март 24, 2021

    http://essaywriteris.com/ – college essay writers block how to write my essay best essay cheap can you write my essay for me

  106. Abgccleva | Март 26, 2021

    https://thesiswritingtob.com/ – thesis editing service thesis research proposal thesis research proposal for thesis

  107. онлайн психолог | Апрель 28, 2021
  108. онлайн психолог | Апрель 28, 2021
  109. Williamengax | Июль 28, 2021

    free online dating
    lds singles online dating

  110. Kevinhok | Август 8, 2021

    gay hiv positive dating
    2009 gay dating sites
    good dating site for gay women

  111. erangob | Август 27, 2021

    https://buysildenshop.com/ – picture of viagra pill

  112. antirty | Август 27, 2021

    https://buystromectolon.com/ – ivermectin for chickens

  113. sexteeway | Сентябрь 4, 2021
  114. Viagra | Сентябрь 4, 2021

    Acquisto Viagra E Cialis

  115. kampiok | Сентябрь 5, 2021
  116. trienry | Сентябрь 7, 2021
  117. propecia over the counter | Сентябрь 7, 2021

    Purchase Amoxicillin Online No Prescription

  118. kampiok | Сентябрь 10, 2021
  119. Henrypsymn | Сентябрь 13, 2021

    closeted gay dating site
    gay dating service chicago
    gay firefighter dating site

  120. Nismamalf | Сентябрь 14, 2021

    http://buypriligyhop.com/ – buy priligy 60

  121. Plaquenil | Сентябрь 15, 2021

    Canadian Pharmacy Stock

  122. Plaquenil | Сентябрь 17, 2021

    Organic Alternative To Propecia

  123. Priligy | Сентябрь 23, 2021

    Zithromax Make You Sleepy

  124. Bioftiege | Сентябрь 25, 2021
  125. viagra nitroglycerin interaction | Октябрь 30, 2021

    Macrobid Antibiotic Website In Us

  126. Viagra | Ноябрь 2, 2021

    Propecia Daily Dosage Benign Prostatic Hyperplasia

  127. palleyday | Ноябрь 2, 2021
  128. Evekmeafe | Ноябрь 2, 2021
  129. WognonCek | Ноябрь 6, 2021
  130. Prednisone | Ноябрь 10, 2021

    Generic Levaquin Medication Low Price Pharmacy

  131. DonaldKaf | Ноябрь 27, 2021

    sex nude babes playing video games
    xvideos sex games
    married couple kinky sex games

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Комментарий: