Momwe mungasinthire firewall mu Ubuntu

Monga ma Linux distros, Ubuntu amabwera kale ndi firewall (firewall) yoyikidwa. Chowotcha ichi, makamaka, chimalowa mu kernel. Mu Ubuntu, mawonekedwe amtundu wamalamulo ozimitsira moto adasinthidwa ndikusintha mosavuta. Komabe, ufw (FireWall yosavuta) ilinso ndi mawonekedwe owoneka bwino kwambiri. Mu positi iyi, tiwonetsa zowongolera zazing'ono momwe tingagwiritsire ntchito gufw, mawonekedwe owonetsera a ufw, kukonza firewall yathu.


Musanakhazikitse gufw, sibwino kuti muwone ngati ufw. Kuti ndichite izi, ndidatsegula terminal ndikulemba kuti:

sudo ufw chikhalidwe

Zotsatira zake ziyenera kunena monga: "Mkhalidwe: osagwira". Umenewo ndiye mkhalidwe wosasintha wa firewall mu Ubuntu: waikidwa koma ndi wolumala.

Kuti ndiyike gufw, ndinatsegula Ubuntu Software Center ndikuyifufuza kuchokera pamenepo.

Mutha kuyiyikanso kuchokera ku terminal polemba:

sudo apt-get kukhazikitsa gufw

Kukhazikitsa gufw

Mukayika, mutha kuyipeza kuchokera ku System> Administration> zoikamo firewall.

Monga mukuwonera pazithunzizi, ufw imagwira ntchito mosavomerezeka yolumikizana ndi maulalo onse omwe akubwera (kupatula omwe akukhudzana ndi omwe akutulukawo). Izi zikutanthauza kuti pulogalamu iliyonse yomwe mungagwiritse ntchito izitha kulumikizana ndi akunja (kaya ndi intaneti kapena gawo la Intranet yanu) popanda mavuto, koma ngati wina wochokera pamakina ena akufuna kulumikizana ndi yanu, sangakwanitse.

Ndondomeko zonse zolumikizira zasungidwa mu fayilo  / etc / default / ufw. Chodabwitsa, ufw amateteza IPv6 traffic mwachinsinsi. Kuti mutsegule, sungani fayilo / etc / default / ufw ndi kusintha IPV6 = ayi ndi IPV6 = inde.

Kupanga malamulo achikhalidwe

Dinani batani `` Onjezani '' pazenera lalikulu la gufw. Pali ma tabu atatu opanga malamulo achikhalidwe: Zokonzedweratu, Zosavuta, komanso Zapamwamba.

Kuchokera ku Preconfigured mutha kupanga malamulo angapo pamanambala angapo amachitidwe ndi ntchito. Ntchito zomwe zilipo ndi izi: FTP, HTTP, IMAP, NFS, POP3, Samba, SMTP, ssh, VNC ndi Zeroconf. Ntchito zomwe zilipo ndi izi: Amule, Chigumula, KTorrent, Nicotine, qBittorrent, ndi Transmission.

Kuyambira Zosavuta, mutha kupanga malamulo osinthira. Izi zimakuthandizani kuti mupange malamulo azithandizo ndi mapulogalamu omwe sapezeka mu Preconfigured. Kuti mukonze madoko osiyanasiyana, mutha kuwaika pogwiritsa ntchito malembedwe otsatirawa: PORT1: PORT2.

Kuchokera Kutsogola, mutha kupanga malamulo enieni pogwiritsa ntchito komwe kumachokera ndi komwe mukupita ma adilesi a IP ndi madoko. Pali njira zinayi zomwe mungapeze pofotokozera lamulo: lolani, kukana, kukana, ndi kuchepetsa. Zotsatira zololeza ndi kukana ndizofotokozera zokha. Kukana kudzabwezera uthenga wa "ICMP: kopita kosafikirika" kwa wopemphayo. Malire amakulolani kuti muchepetse kuchuluka kwa mayesero osagwirizana. Izi zimakutetezani ku nkhanza.

Lamuloli litawonjezedwa, liziwoneka pawindo lalikulu la gufw.
Lamulo likhazikitsidwa, lidzawonetsedwa pazenera lalikulu la Gufw. Muthanso kuwona lamuloli kuchokera ku chipolopolo polemba mtundu wa sudo ufw.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Ndemanga za 16, siyani anu

Siyani ndemanga yanu

Anu email sati lofalitsidwa. Amafuna minda amalembedwa ndi *

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.

  1.   pamwamba anati

    Kuphunzira kulemba pang'ono, zabwino zazinthu zina

    1.    jm anati

      Sindikunyozani, monga momwe mumadzitchulira kuti simunachite bwino, chifukwa cholakwitsa polemba, koma ndiyenera kukuwuzani kuti "mumawona kachitsotso m'diso la wina, ndipo simukuwona mtanda uli m'maso mwanu."
      Mu mzere umodzi wokha, mwalakwitsa zingapo ndikusiyapo; chofunikira kwambiri, mwina, ndikuti kuchotsera zopanda malire izi ndizofunikira.

  2.   Adrian anati

    Sindine katswiri, koma momwe ndimawerengera, kuti zithandizizo zisayankhe pempho (zosachepera kuti zida zathu zisawoneke ndikudutsa sikani yoyendera bwino) ndikofunikira kutsatira izi:

    $ sudo ufw yambitsani

    $ sudo nano /etc/ufw/before.rules
    Komwe mzere womwe ukunena kuti:
    -A ufw-musanalowetse -p icmp -icmp-mtundu echo-pempho -j ACCEPT
    kotero zikuwoneka motere:
    # -A ufw-asanalowe -p icmp -icmp-mtundu echo-pempho -j ACCEPT

    Sungani ku nano ndikuwongolera + O. Tulukani ndikuwongolera + X.

    Kenako:
    $ sudo ufw lekani
    $ sudo ufw yambitsani

    Ndinatero pa PC yanga. Wina amandikonza ngati sizolondola.

  3.   Chelo anati

    Moni, ndizowona kuti pazosintha za 64-bit GUI ndiyosiyana. Ndikuganiza kuti siyabwino kwambiri ngati GuardDog, koma ndidayiyesa ndipo idandipatsa zotsatira zabwino ndi madoko ena omwe amandivutitsa, kotero gufw inali ikugwira ntchito kale. Chifukwa chake izi zinali zabwino kwa ine. Zikomo Tiyeni tigwiritse ntchito ...

  4.   Tiyeni tigwiritse ntchito Linux anati

    Momwe ndikukumbukira, ziyenera kugwira ntchito ngakhale mutayambiranso.
    Pulogalamuyi ndi njira yokhayo yowonera moto yomwe imabwera mwachisawawa mu Ubuntu.
    Limbikitsani! Paulo.

  5.   Oscar laforgue anati

    Firewall ikangokhazikitsidwa, imagwirabe ntchito ngakhale mutayambiranso kapena ikuyenera kuyambika nthawi iliyonse yolowera? Zikomo pasadakhale yankho.

  6.   Mpira54 anati

    Zikomo positi.
    Ndine watsopano kumene ndipo sindikudziwa ngati zomwe ndikuchitazi ndizolondola kuti nditetezedwe. Chokhacho chomwe ndimatsitsa kuchokera pa intaneti ndi Ubuntu iso ndi ma distros ena, chifukwa chake ndimakonda kuti madoko onse atsekedwe ndipo ufw ndimayiyambitsa motere mu kontena.
    »Sudo ufw athe», izi zimabwezera uthenga woti makhoma otsegulira adatsegulidwa, ndikupitanso patsogolo ndikusintha izi polemba lamulo lotsatirali mu kontena:
    "Wachikondi gedit /etc/ufw/before.rules"
    Pulogalamu yotsatira yomwe ikuwoneka ndimasintha mzere pomwe "mwachita" ndi chizindikiro cha hashi koyambirira kwa mzere kuchokera kumanzere kwambiri.
    Tsopano funso lomwe ndimafuna kukufunsani: kodi izi ndi zolondola poteteza kompyuta yanga?
    Zikomo pasadakhale poyankha komanso zabwino zonse.

  7.   Tiyeni tigwiritse ntchito Linux anati

    Inde ndizoona. Ngati mukufuna kupanga malamulo, ndikupangira kugwiritsa ntchito gufw. 🙂
    Limbikitsani! Paulo.

  8.   Mpira54 anati

    Zikomo kwambiri komanso mokoma mtima kuchokera ku Spain

  9.   Miquel Mayol ndi Tur anati

    Ndayika mtundu wanga 10.10.1 mu Ubuntu 10.10 AMD64 ndiwosiyana, mu GUI yaomwe mumafotokoza.

    Ndi zomwe ndakhala ndikufunafuna kwanthawi yayitali, zikomo.

  10.   Tiyeni tigwiritse ntchito Linux anati

    Ndi cello wabwino bwanji! Ndili wokondwa!
    Limbikitsani! Paulo.

  11.   alireza anati

    yandri ndine watsopano ku linux, funso langa ndi losavuta kukhazikitsa makhazikitsidwe azigawo zonse?

  12.   thaulo bwanji anati

    akuti phunzirani ...

  13.   LinuxUser anati

    Sindingathe kuwonjezera LibreOffice Impress kusiyanasiyana. Ndikufuna kuti ndizitha kugwiritsa ntchito mphamvu yakutali (Impress Remote) ndi wi fi. Pakadali pano yankho linali kuletsa kaye moto

  14.   Alexander ... anati

    Moni…
    Nkhani yabwino kwambiri. Zothandiza kwambiri
    Muchas gracias

  15.   Danny anati

    Moni mzanga ndimagwiritsa ntchito ubuntu 14.10, ndidatsata njira zomwe mudatchulapo kuti mupereke lamuloli

    # -A ufw-asanalowe -p icmp -icmp-mtundu echo-pempho -j ACCEPT

    Koma ndikayambiranso kuyang'ana pa doko, ndiyeneranso kuyitanidwa ndi Ping (ICMP Echo), ndimagwiritsa ntchito sikani ya GRC ShieldsUp https://www.grc.com/x/ne.dll?bh0bkyd2 , yankho lina lililonse ??

    gracias