Archive for the Category » random «

Thursday, September 17th, 2015 | Author:
  • Ingxenye 1 – Isingeniso – Ukubeka Queues Simple (Lokhu okuthunyelwe)
  • Ingxenye 2 – Thembeke Eveza traffic – Ukubeka Mangle Rules (Kuyeza maduze TM)
  • Ingxenye 3 – Ukushintsha Izinto Eziza Kuqala and Limits – Ukubeka Umugqa Trees (Kuyeza maduze TM)
  • Ingxenye 4 – Monitoring Usage – Ngobutjha Queues – Limiting Abusive Devices (Kuyeza maduze TM)
  • Ingxenye 5 – ??? Profit ???

Isingeniso

The first problem one usually comes across after being tasked with improving an Internet connection is that the connection is overutilised. Ngokuvamile, akekho owaziyo ukuthi kungani, ngubani, noma yini ebangela inkinga – except of course everyone blames the ISP. Ngezinye izikhathi kuba ISP – but typically you can’t prove that without having an alternative connection immediately available. I currently manage or help manage four “Amasayithi / isakhiwo” ukuthi ukusetshenziswa QoS ukuphatha kwabo lwenethiwekhi Internet. Omunye uwukuthi emsebenzini wami, two are home connections, and the last one is a slightly variable one – Ngokuvamile nje uxhumano ekhaya kodwa kungenjalo, for a weekend every few months, it becomes a 140-Indoda (futhi ekhula) LAN. Fun. 🙂

MikroTik RouterOS futhi

MikroTik'S RouterOS is very powerful in the right hands. Many other routers support QoS but not with the fine-grain control MikroTik provides. Alternatively you could utilise other Linux-based router OS’s, njenge DD-WRT, Smoothwall, Ukuxazulula, njalonjalo. Eziningi zalezi ngokuvamile zidinga ukuthi unayo iseva spare amanga noma a ehambisanayo hardware router. Mikrotik uthengisa RouterBoards ukuthi babe RouterOS builtin – futhi akubizi.

Okuhlangenwe nakho kwami ​​with routers kuyinto ngokuyinhloko Cisco futhi MikroTik – and my experience with QoS is primarily with Abela sika NetEnforcer / NetXplorer izinhlelo kanye MikroTik. Ethandwa kakhulu MikroTik Amadivayisi in isipiliyoni sami (ngaphandle omakhalekhukhwini babo abazinikezele yesikhathi eside) bebelokhu yabo rb750 (nguqulo entsha okuthiwa “eHex“) futhi rb950-amabhodi esekelwe. Banayo abanye abaningi available and are relatively inexpensive. In historical comparison with Cisco’s premium devices, Ngiye zazivame ukuchaza Amadivayisi MikroTik sika njengoba “90% izici at 10% izindleko”. Njengoba kulo mhlahlandlela okuhloswe ngokuyinhloko ngaso SME / Home ukusetshenziswa, inexpensive makes more sense. If you’re looking at getting a MikroTik device, uqaphele ukuthi MikroTik routers ukwenza hhayi typically include DSL modems, Kanjalo imishini yakho ekhona ngokuvamile kusadingeka. Phawula futhi ukuthi lokhu hhayi isifundo on kokumisa idivayisi MikroTik kusuka ekuqaleni. Kukhona inala Abaqondisi iyatholakala inthanethi ukuthi kakade.

Theory zibe practice – izinyathelo zokuqala

Ukuze usethe up QoS kahle, you need to have an idea of a policy that takes into account the following:

  • The jikelele speed uxhumano
  • Mangaki abasebenzisi / Amadivayisi uzobe usebenzisa uxhumano
  • The users/devices/services/protocols that should be prioritised for latency and/or throughput

Ukuze kuzuzwe lokhu okungenhla izibonelo yami, I bayocabanga okulandelayo:

  • The MikroTik umiselwe ukucushwa network ezenzakalelayo lapho inethiwekhi wendawo 192.168.88.0/24 futhi uxhumano Inthanethi Ilungiselelwe nge PPPoE.
  • I speed uxhumano 10 / 2Mbps (10 Mbps thwebula speed; 2 Mbps speed upload)
  • Kuzoba khona 5 abasebenzisi abaningi njengoba 15 Amadivayisi (amakhompuyutha / amaphilisi / mobile phones / WiFi njll)
  • Okulandwayo ejwayelekile zidinga kuqala kanye throughput kodwa ongaphakeme ezibalulekile kanye latency
  • Gaming/Skype/Administrative protocols require high priority with both latency and throughput
  • No abasebenzisi kufanele eqhulwini phezu kwabanye

The first and probably quickest step is to set up what RouterOS refers to as a Umugqa Simple.

Ngenze script iDemo ukuthi engiye igcinwa kwi MikroTik Amadivayisi yami wamisa emigqeni elula. Kuyinto kanje:

:ngoba x kusukela 1 ukuze 254 do ={
 /emugqeni elula Igama add ="internet-usage- $ x" DST ="pppoe" max-limit = 1900k / 9500k target ="192.168.88.$x"
}

Okushiwo ngenhla akwenzayo umkhawulo isivinini esiphezulu iyiphi idivayisi ngabanye angasebenzisa “1900k” (1.9Mb) ulayishe futhi “9500k” (9.5Mb) thwebula.

Amanothi:

  • Isizathu kungani imikhawulo max kukhona at 95% of the line’s maximum speed is that this guarantees no single device can fully starve the connection, negatively affecting the other users. With a larger userbase I would enforce this limit further. Ngokwesibonelo, kanye 100 abasebenzisi isevisi 20MB I Abeke lokhu umkhawulo kuya 15Mb noma ngisho nje kuphela 1MB. Lokhu kuncike ngokuphelele indlela “eyihlazo” abasebenzisi kanye, njengoba wena ukuthola kuphi futhi kanjani wahlukunyezwa kakhulu kwenzeka, you can adjust it appropriately.
  • The Isiqalo “internet-ukusetshenziswa” egameni ipharamitha kungenziwa egcizelele. Ngokuvamile ngibeka lezi ukuba ubheke igama emagcekeni. Ngokwesibonelo, with premises named “alpha” futhi “beta”, I ngeke ngokuvamile abeke “internet-alpha” futhi “internet-beta”. Lokhu kusiza ngokomzwelo wemvelo sehlukanise izingosi.
  • Umngcele DST ine “pppoe” in the isibonelo. Lokhu kufanele ukufaka endaweni kanye igama interface that provides the Internet connection.

Ukuqinisekisa oyifisayo script ukuba kufaneleke ukuba ukucushwa yakho. Gcina script kuze MikroTik futhi uyisebenzise – noma unamathisele ngqo ukugcina MikroTik ukuba akhiphe it.

In my next post I will go over setting up what RouterOS refers to as Mangle Imithetho. Lezi mithetho ukukhonza ukuhlonza / ahlukanisa kwenethiwekhi ukuze enze QoS zikanokusho-grained kungenzeka.

Abelana
Category: random  | Leave a Comment
Thursday, September 17th, 2015 | Author:

Inqubomgomo, Isikhathi, Imali

Angithandi oda debit. Angikaze wayethanda umqondo wokuthi omunye inhlangano can, at intando, thatha cishe yisiphi isamba semali yami (kahle … konke kuyatholakala). Uzakwabo waveza nkinga MTN ngabe agwemeka ngangingakaze ngiziphathe kabi usebenzisa debit order. Mhlawumbe “lula” Isici into embi okunjalo akukhona.

Ngicabanga umbuzo penultimate nangu ufuna noma cha lula futhi ongamethemba nezikhungo (kuleli cala ngemali yakho) – noma uma ungeke ukubethemba futhi bazimisele ukudela lokho esivumelana. Esimweni sami, nakuba mina namanje imibuzo lula, Ngafunda kabuhlungu ngayo MTN ukuthi isibili kungaba esingesihle ukuba umhlaba yakho exhunyiwe kuyehla “esiqhingini esikude” isimo. Cishe wonke umuntu namuhla uhambisana lula factor.

Convenience

Ngokolunye uhlangothi, Manje kudala, I had a dispute with Planet Fitness lapho lula kwaba inkemba esika nhlangothi zombili. I libike ibhizinisi umkhuba wabo kwiKhomishana Consumer Complaints (kusukela kabusha ihlelwe njengoba National Consumer Commission) and never got feedback from them. The gist of the issue is that Planet Fitness’s sales agent lied to me and a friend in order to get more commission/money out of my pocket.

Ngingumfana Ukutholwa Vitality ilungu onikeza izinzuzo eziningi, kuhlanganise rates encishisiwe on brand Premium – Yebo ikakhulukazi kwezempilo, as Discovery is a Medical Aid/Health Insurance provider. Kalula nje, Ukutholwa Kuyathakazelisa. Izinzuzo Vitality lingephandle gym ubulungu elibuye kuhlanganisa Planet Fitness. You still have to pay something, a token elincane izinhlobo, ukuze Discovery, ngoba ubulungu ejimini. Kodwa, ngemva kwakho konke, Bafuna ukuba ngibe enempilo, so they don’t mind footing the bulk of the bill. Kodwa, ngokusobala, lokhu kusho Planet Fitness’ yokuthengisa agents musa uthole ikhomishana!

Ngakho yini umphumela? Umphumela uba ukuthi yokuthengisa agent PF wanginikeza figure eqolo for a “Based Vitality-” ubulungu. Waqamba amanga. Wabe beningazi mina asayine line uphosa for lentengo amahlombe a “njalo” ubulungu (yebo, kwaba empeleni ngaphezu ngisho ubulungu njalo kuzodingeka izindleko), ending up about 4 futhi 5 kaningi njengoba ubulungu Vitality-based.

Epiphanies

Some time in 2011 I ekugcineni wisened kuze izindleko ebengikuthunyiwe ukuba ukukhokha. Ukutholwa Ngiyaqiniseka ngeke ajabule kakhulu ngalokhu fiasco. I wakhuluma Manager endaweni yokuzivocavoca, mina waqinisekiswa ukuthi yonke inkontileka ngabe kulahlwe. Angisona eyodwa for udlame … ngaphandle uma for sport yayo … in an Octagon … kodwa kokuhamba kwami ​​5 Manager ukubuza ukuthi kungani oda Kwemali babesayenza kwenzekani, wangitshela kwammangaza bengingafikile baletha izikhali nami for ukuvakasha. Ngemva kokufika izikhathi ezimbalwa more, Manager lase empeleni washiya Planet Fitness and wachaza kimi ukuthi “inkontileka” was between myself and Head Office and that the local gym, ngokusobala umsebenzi franchise-style, ayengenabo nazwi noma cha kwakungase kukhanselwe. Uma Head Office wathi akukho, inhlanhla ezinzima.

By this point I’d lost it. I had my bank put a Ima oda debit. It was a huge schlep: I had to contact the bank every month because the debit order descriptions would change ever so slightly. It also cost me a little every couple of months to “abuyise” the blocking service. Angikwazi bacabange uhlelo yasebhange isekela Izinkulumo njalo kodwa abasebenzi abazi ngempela ukwazi ukuthi ukuyisebenzisa.

Technically I’m still waiting on the CCC to get back to me (akuzange kwenzeke – futhi Yebo base kabusha ihlelwe njengoba kushiwo ngenhla ngakho icala cishe wawa ngokusebenzisa imifantu). Kunjalo, ngalesosikhathi PF yafua bafakwe kimi ningabuyiseli!

The Hero Unexpected

Kuyakhulunywa okungahleliwe of udaba ukuze Discovery (Ngicabanga wababiza mayelana ukuvakashelwa wamazinyo) kuholele ushaye by othile wama ejenti Discovery sika. Babe wangicela ukuba ukuchaza inkinga, ngokuningiliziwe futhi ngokubhala, ukuchaza kangcono ngombono wami ukuthi kwakwenzekeni ngempela. I baphoqelekile. It kuvela ngineminyaka ilungelo ngabo singakhathazeki “siyojabula” Mayelana nakho. Empeleni ngempela akakuthandanga lokho. About three weeks later, Planet Fitness ibuyiselwe nami eligcwele lazo zonke izimali owake isikhokhiwe kubo.

Ukutholwa kuyinto Awesome. 🙂

Abelana
Monday, October 29th, 2012 | Author:

It appears that, in infinite wisdom, Google have a security feature that can block an application from accessing or using your google account. I can see how this might be a problem for Google’s users, in particular their GTalk futhi Gmail users. In my case it was Pidgin having an issue with the Jabber service (which is technically part of GTalk). I found the solution after a little digging. I was surprised at how old the issue was and how long this feature has existed!

To unlock the account and get your application online, use Google’s Captcha page here.

Abelana
Wednesday, June 08th, 2011 | Author:

I did a full update on my personal server at home as one is bound to do, often, kanye Arch. It’s a headless server so there’s always that slight anxiety concerning whether or not I have to connect a keyboard/monitor when things don’t just work. The wish was not granted today:

Arch Linux started booting up normally and init starts runlevel 3, the where it stats loading daemons:

:: Adjusting Hardware Clock [Busy]

And that’s where it just hangs. No further. Ctrl+Alt+Del works, single user mode works, but standard runlevel 3 will not. It turns out that the cause is a bug between hwclock and the server’s hardware clock. The backup battery on the motherboard, powering the CMOS memory and, subsequently, the hardware clock, is dead. While the system is powered up the battery isn’t neededhowever since the hardware clock knows it has reset, it won’t tick until we tell it what the time is. Counter to this is that when hwclock starts, it’s waiting for a clock tick in order for it to know if the hardware clock’s rate of progress is good. Catch 22.

The solution in my case was to go into single user mode where I could disable hwclock in /etc/rc.conf. I’ve been using ntpd to keep the system time in sync which works just fine. I’m not too bothered with whether or not the hardware clock is rightI just want the live system’s clock to be right. It will still be a good idea to get a replacement battery since, until that’s done, every time the server boots it will think its back in 1997.

Abelana
Category: random  | One Comment
Friday, September 24th, 2010 | Author:

The upgrade to WordPress 3 was long overdue (as are many draft articles). Surprisingly, nothing looks different since the upgrade has been completed, though I also would not be surprised if I’ve missed an important plugin breakage.

I’ll be spending a day this weekend solely on polishing the site and finishing up some articles. You have something to look forward to. 🙂

Abelana