Yadda ake sanin buɗe tashoshin jiragen ruwa ko haɗin haɗin da kwamfutarmu ta kafa

A 'yan kwanakin nan na ɗan gwada gwaji tare da haɗi masu shigowa, musamman gudanar da kwamfutar tafi-da-gidanka da kwamfutar gida ta amfani da waya ta (ta hanyar SSH), don haka don tabbatar da haɗin SSH ɗin yana da kyau ina buƙatar bincika idan haɗin ya buɗe da kyau a kwamfutar tafi-da-gidanka.

Wannan karamin tukwici ne wanda nake fatan zaiyi aiki sama da daya 🙂

Watau ... a nan zan nuna muku yadda ake sanin hanyoyin sadarwa ko tashoshin da kuka buɗe akan kwamfutarka, da wani abu 😉

Saboda wannan zamuyi amfani da aikace-aikacen: netstat

Misali, don nuna duk bayanan haɗin da muke da su da kuma wasu a cikin tashar da muka sanya:

sudo netstat -punta

A halin da nake ciki ya nuna mini abubuwa masu zuwa:

Kamar yadda kake gani, kana iya ganin yarjejeniya, bayanan da aka karɓa, tashar sauraro da IP da kuma tashar jiragen ruwa da IP na haɗin da aka yarda, idan haɗin haɗin da aka riga aka kafa ne ko a'a, PID, da sauransu Duk da haka dai, yawancin bayanai 🙂

Idan misali kana son sanin hanyoyin haɗin da aka riga aka kafa, zamuyi amfani da mai:

sudo netstat -punta "ESTABLISHED"

A halin da nake ciki kawai ya dawo:

tcp 0 0 10.10.0.51:22 10.10.0.10: 37077 Kafa 23083 / sshd

Wannan yana nufin cewa Ina da buƙatar SSH (tashar jirgin ruwa 22) buɗe daga IP 10.10.0.10 (waya ta ta hannu).

To kawai ɗan ƙaramin bayani ne ina fata zai muku amfani 😉
gaisuwa


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

19 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   Scalibur m

    Kamar koyaushe, ƙara haskakawa tare da nasihu masu amfani waɗanda suka zo cikin sauki.

    PS: kuma mafi kyawu, kusan koyaushe ana ba da shawara daga ƙaunataccen tasharmu .. 😀

    1.    KZKG ^ Gaara m

      HAHAHAHA 😀 😀
      Na gode 🙂 kuma ee, a zahiri koyaushe ina son sanya wasu shawarwari masu ban sha'awa don aiki tare da tashar hehe

    2.    Rodrigo m

      Kamar yadda koyaushe komai bashi da amfani kuma bashi da ma'ana

  2.   Blaire fasal m

    Abin sha'awa. Ina so in nuna wa Terminal, don amfani da shi, tunda na ga ana iya yin abubuwa da yawa daga can.

    1.    KZKG ^ Gaara m

      Ee, a zahiri za ku iya yin abubuwa da yawa hehehe, abin mamaki ne 🙂
      Anan mun sanya koyaswa da yawa akan yadda ake aiki da tashar, ku duba kuma idan kuna buƙatar jagora, ku gaya mani 😀

      gaisuwa

  3.   Bari muyi amfani da Linux m

    Ee, wannan zaɓi ne mai kyau.

    A zahiri, akwai "masu nazarin tashar jiragen ruwa" da yawa. Shawarata ita ce nmap. Ga waɗanda suke da sha'awar na bar hanyar haɗin: https://blog.desdelinux.net/como-detectar-los-puertos-abiertos-en-nuestra-computadora-o-router/

    Murna! Bulus.

    1.    KZKG ^ Gaara m

      Ee hehe, ba tare da wata shakka nmap babban kayan aiki bane, amma wani lokacin muna bukatar wani abu mai sauki, kamar yadda magana ko magana suke cewa: "ba lallai bane ku kashe sauro da bazooka" 😀

      1.    Hugo m

        Kai, yadda aka sabunta kalmar!
        Ee, saboda kamar yadda na fahimce shi, Confucius ya faɗi haka, shin akwai biskoki a wannan lokacin?

        Ko wataƙila ya faru kamar labarin kerk wci da ɗan ƙaramin abin hawa mai hawa ja:

        Wolf: ina za ku, ɗan ƙaramin hawan jan abu?
        Little Red Riding Hood: zuwa kogin, don wanke jakata.
        Wolf: Kai, yaya wannan labarin ya canza!

        😀

  4.   Hugo m

    Wani mai amfani sosai: sockstat

    Kuma kwanan nan ina neman madadin mai sauƙi fiye da ntop don ganin amfanin hanyar haɗi, Na gano ainihin abin ƙyama (aƙalla a ganina): iftop.

    Kuna iya samun wasu bayanai masu ban sha'awa tare da wani abu kamar lsof -Pni: numpuerto

    1.    KZKG ^ Gaara m

      hahaha eh haka ne, wani aboki ya nuna min iftop, yana da amfani idan na sarrafa sabar ko wani abu makamancin haka amma ... a laptop dina, na gwada kuma baya gaya min komai wanda ban sani ba hahaha

      1.    Hugo m

        Da kyau, tare da kayan aiki tare da musantawa ta tsoho, babu sauran hagu zuwa dama (Ina nufin, idan har yanzu kuna da shi haka), hehe.

      2.    Hyuuga_Neji m

        kun yi kokarin gwada "iptraf" duk da cewa dole ne kuyi aiki kamar yadda tushen yana da matukar kyau ...

  5.   m m

    Na yi amfani da umarni iri daya a cikin Windows shekarun da suka gabata don ganin yadda abubuwa suke lokaci-lokaci amma wani lokacin na kan rikice, sai na gaji kuma na sanya bangon waya wanda yake nuna duk abin da ke hoto a zahiri, Shin akwai aikace-aikace a cikin Linux yin hakan ?

    1.    Hugo m

      Da alama a gare ni cewa akwai cikakkun abubuwan rarrabawa da aka keɓe don wannan. Ina tsammanin Astaro yana ɗaya daga cikinsu, bana amfani dashi amma aboki yana da sigar kyauta kuma tabbas yayi bayanai da yawa a ainihin lokacin duk abin da ke faruwa. Tabbas akwai wasu kamar haka. A halin yanzu ina amfani da pfSense akan sabar kuma duk da cewa bayanin da yake bayarwa bashi da cikakken bayani, yana da amfani a matsayin katangar bango kuma baya da matukar jin dadin sarrafawa, yana da karfi sosai (yana da cokali na m0n0wall, wanda ya dogara da sau ɗaya akan FreeBSD).

  6.   Raul m

    Gode.
    Ina ba da shawarar lokacin da aka yi jagorori, don gwada cewa ba a ba su azaman girke-girke da za a bi ba tare da ba da bayanin abin da ake yi ba. Misali, menene "-punta"?
    Cewa ana amfani da "grep" don tace layuka bisa layin rubutu. Kuna da tsarin a cikin Ingilishi, wasu na iya samun sa a cikin Mutanen Espanya. Don haka don tantance sakamakon zai fi kyau a yi shi tare da zaren "tsayayye" don rufe lamuran biyu:
    sudo netstat -tip | grep -i barga

    Zaɓin «-i» zai ba mu sakamako sakamakon layukan da ke da wannan layin ba tare da la'akari da ko suna cikin babba ko ƙarami ba.
    Gode.

    1.    Raul m

      yi haƙuri, dole ne ya zama zaren "kafa" 🙂
      sudo netstat -tip | grep -i kafa

      1.    Hugo m

        Kodayake yana da sauƙi a duba sigogin, binciken ku yana aiki:

        -p nuna PID da sunan tafiyar matakai
        -u nuna kunshin udp
        -n nuna adiresoshin da tashar jiragen ruwa ta lamba
        -t nuna kunshin tcp
        -a nuna kwandunan ko sun saurara ko basu ji ba

        Akwai ƙarin sigogi da yawa, amma waɗannan suna da fa'ida sosai kuma ga mutanen Hispanic suna da saukin haddar ƙwaƙwalwar ajiya

  7.   hexborg m

    Kyakkyawan tip. Ina sane da netstat -putall wanda kuma yake nuna sunayen yanki, kodayake wani lokacin yakan dauki lokaci dan warwarewa.

  8.   Juan Pablo m

    Labarin yana da kyau kwarai da gaske sannan ban da kasancewa mai amfani sosai, kawai ina ba da shawarar cewa ka mallaki kamun da ke cikin PNG kuma ya kai nauyin 246kb kuma bayan ka inganta shi a gidan yanar gizo a ingancin kashi 60% sai ya zama daidai kuma nauyinsa bai wuce 3kb ba.