Whakauru me te Whirihoranga o te dnscrypt-takawaenga + dnsmasq i Archlinux

Whakataki: 
  

He aha te dnscrypt-takawaenga?
- DNSCrypt whakamuna ana me te whakamana i nga mahinga DNS i waenga i te kaiwhakamahi me te taumira DNS, ka aukati i te tinihanga o te rohe i nga paatai ​​DNS, me te whakarite kia tukuna nga whakautu DNS e te kaitoha pai. (Wiki)

He aha te dnsmasq?
- Ka whakarato a dnsmasq i nga ratonga penei i te keteroki DNS me te kaituku DHCP. Hei kaiwhakarato ingoa rohe (DNS), ka taea te penapena i nga paatai ​​DNS hei whakapai ake i te tere hono ki nga pae i tae mai i mua, ana, hei kaiwhakarato DHCP, ka taea te whakamahi i te dnsmasq ki te whakarato i nga wahitau IP o roto me nga huarahi ki rorohiko i runga i te LAN. Ko tetahi o enei ratonga ranei e rua ka taea te whakatinana. Ka whakaarohia he maamaa te dnsmasq ka ngawari ki te whirihora; Kua hoahoahia kia whakamahia i runga i to rorohiko ake, hei whakamahi ranei i te whatunga me te iti ake i te 50 rorohiko. Ka tae mai he kaiwhakarato PXE. (Wiki)

He aha taku i whakamahi ai?:
- Hei whakatika i nga konae i whirihia e au nano.
- I nga wa katoa i mahia e au me taku putea pakiaka, engari mena kua whirihorahia e raatau Tuhinga, ka taea e raatau te whakamahi marie.
- Hei tirotiro i te peera me te whakahau keri, ka kitea i roto i nga taputapu-here
i roto i nga putunga mana, pacman -S taputapu-here 🙂

Tautanga:

  • Hei pakiaka, hei whakamahi ranei i te sudo i roto i ta maatau taapiri, ma te taapiri ranei ka whakauruhia e maatau nga putea dnscrypt-takawaenga me te dnsmasq penei:
  • Ko te korero whakatupato na te mea kua oti te whakauru e au, me whakatuturu koe ma te pato i te Whakauru:

Whirihoranga:

1 - Me whakamahi e tatou te dnscrypt-takawaenga (kia maumahara ki te pakiaka, ki te whakamahi ranei i te sudo):
2 - Na ka whakatika maatau i te konae /etc/resolv.conf a ki te nameserver ka mukua e maatau nga mea kei reira ka tuu 127.0.0.1 (mena kei te hiahia koe ka taea e koe te hanga taarua o te konae) ana me penei te ahua:

  • Ma te whakaaro ko NetworkManager te tuhi i te resolv.conf o te konae, ko ta maatau ka mahi he tiaki ki a koe mai i te tuhi me nga whakahau e whai ake nei:
    3 - Na, ko ta maatau mahi ko te rapu i tetahi kaiwhakarato e tata atu ana ki to taatau waahi, engari ka taea e koe te whakamahi i te mea ka tae mai ma te taunoa ko te dnscrypt.eu-nl, ka taea te whakatuwhera i te raarangi me te localc kei konei: / usr / share / dnscrypt-takawaenga / dnscrypt-resolvers.csv penei:
  • Mena ka hiahia maatau ki te whakarereke i te kaituku e whakatau ana i te DNS taunoa ka taea e taatau te whakatika penei:
  • I te mutunga o te konae ki te waahanga [Ratonga] ka whakarereke maatau i nga mea kua tohua ki te hina ka tuu i te kaituku kua tohua e matou ki te raarangi:
    4 - Na te taunoa ka whakamahia e te dnscrypt-takawaenga te tauranga 53, na te mea e mahi ana hoki a dnsmasq, na ko ta maatau e mahi ana me whakarereke ma te whakamahi ano ki:
    systemctl whakatika dnscrypt-takawaenga.service –utu me te waahanga [Hoko] ka waiho e matou penei:
Ka penapenahia e maatau nga huringa ka kati.

5 - Na ka whirihora e matou te dnsmasq, ka whakatika matou i te konae /etc/dnsmasq.conf ka taapiri i enei raina e toru i te mutunga:

kore-whakatau
tūmau = 127.0.0.1 # 40
whakarongo-wahitau = 127.0.0.1

Ka penapenahia e maatau nga huringa ka kati.

6 - Na ka mahi matou i nga mea e whai ake nei:
- Ka tiimata ano e matou te dnscrypt-takawaenga:
systemctl ka tiimata i te dnscrypt-takawaenga
- Ka whakahohehia e maatau dnsmasq:
systemctl whakahohea dnsmasq
- Ka mahia e matou te dnsmasq:
systemctl tiimata dnsmasq
- Ka tiimata ano to maatau hononga ipurangi:
systemctl ka timata i te WhatungaManager

7 - Inaianei ka whakamatautauria e maatau mena ka mahi tahi me te ping hei tauira ki te google.com.ar:

8 - Ka tirohia mena ka mahi tahi te keteroki dns me te whakahau keri:

- Anei ka whai whakaaro maatau ko te keri tuatahi ka mahia e au ka roa te 349 msec ka oti ana taku patai me te keri, ka aha? 0 msec, no reira he tika te peera.

9 - Ready dnscrypt-takawaenga me dnsmasq whirihora me te mahi tika!

Tuhipoka: Kei te hiahia ahau ki te whakamarama i muri i taku rapu i etahi waahi kaore i mahi maau ahakoa te whakaatu i te wiki kikorangi, he kino te whakamaoritanga o te reo Paniora (he paatai ​​mena he pai te whakamaoritanga a tetahi ka mahia e au i etahi waa) no reira whakamahia ana e au te putanga ki Ingarihi. No reira i whakawhirinaki ahau ki taua wiki, nga whiwhinga katoa ki a raatau. I tenei keehi, koinei nga huarahi i whakamahia e ahau, i mahi mo au.
Ko nga patai, o nga raru ranei i tukuna mai e ratou kia mohio mai au ka korerohia kia mahi ra ano!

Kikinga whāinga! 😀


Ko nga korero o te tuhinga e piri ana ki o maatau kaupapa o matatika whakatika. Ki te ripoata i tetahi paatene paato Here.

8 korero, waiho maau

Waiho to korero

Ka kore e whakaputaina tō wāhitau īmēra.

*

*

  1. He kawenga mo nga raraunga: Miguel Ángel Gatón
  2. Te kaupapa o te raraunga: Whakahaerehia te SPAM, te whakahaere korero.
  3. Ture: To whakaae
  4. Whakawhitinga korero: Kaore nga korero e tukuna ki nga taha tuatoru engari ma te ture herenga.
  5. Rokiroki raraunga: Paetukutuku e whakahaerehia ana e Occentus Networks (EU)
  6. Tika: I nga wa katoa ka taea e koe te whakaiti, te whakaora me te muku i o korero.

  1.   kore ingoa ka mea

    Kaore au e kite i tetahi rereketanga me te dnsmasq, akene me te maha o nga kaiwhakamahi ka mahi te keteroki, i te mea ke me taku rorohiko kaore au i kite i nga whakarereketanga o te tere.

    keri nga wa me te kore dnsmasq noho rite, akene kei mohio tetahi mo tetahi atu tikanga ka tohaina.
    Mauruuru!

    1.    tio ka mea

      Ka kitea i runga i te mata, he maha nga rereketanga ka kitea e koe, ki taku whakaaro ka whakawhirinaki ano ki te bandwidth.…

  2.   kore ingoa ka mea

    Atahanga taapiri:
    imgur .com / 9RQ7yhF.png

  3.   RanieraSc3 ka mea

    Kia pehea te roa o nga wahitau dns kei roto i te keteroki me te dnsmasq? Kei te maumahara au ki te whakamatau i etahi wa i mua atu ana i muri i etahi meneti, 10, 5 ranei, dnsmasq wareware katoa

    1.    tio ka mea

      Kare au i tino kite ... he tohu pai. Ka korerohia, akene ka mohio etahi o nga tohunga ka whakautu mai ki a maatau 🙂

  4.   nui ka mea

    Kia ora ka hoatu e au hei pakiaka "systemctl start dnsmasq" He he taku, ka hoatu ana te whakahau "statusctl status dnsmasq.service" koinei taku:

    ● dnsmasq.service - He DHCP maamaa me te kaituku DNS keteroki
    Utaina: utaina (/usr/lib/systemd/system/dnsmasq.service; whakahohea; tatūkē kaihoko: monokia)
    Hohe: i rahua (Hua: putanga-waehere) mai i te Mon 2016-03-07 11:41:41 ART; 18s ki muri
    Tuhinga: tangata: dnsmasq (8)
    Tukanga: 7747 ExecStart = / usr / bin / dnsmasq -k –enable-dbus –user = dnsmasq –pid-file (code = exited, status = 2)
    Tukanga: 7742 ExecStartPre = / usr / bin / dnsmasq –test (code = exited, status = 0 / SUCCESS)
    PID Matua: 7747 (code = exited, status = 2)

    Mane 07 11:41:41 Paetukutuku punaha [1]: Ka tiimata Te DHCP maamaa me te kaitutu DNS kautuutu…
    Tue 07 11:41:41 Paari dnsmasq [7742]: dnsmasq: takawaenga tirohia OK.
    Tue 07 11:41:41 Paari dnsmasq [7747]: dnsmasq: i rahua te hanga turanga whakarongo mo te tauranga 53: Te wahitau kei te whakamahia
    Turei 07 11:41:41 Paetukutuku punaha [1]: dnsmasq.service: Ko te mahinga matua kua puta, he waehere = kua puta, he mana = 2 / INVALIDARGUMENT
    Mane 07 11:41:41 Paetukutuku punaha [1]: I rahua te tiimata He DHCP maamaa me te kaitutu DNS kautuutu.
    Tue 07 11:41:41 Pūnaha whakaaro nui [1]: dnsmasq.service: Unit i uru i te ahua rahua.
    Turei 07 11:41:41 Paetukutuku punaha [1]: dnsmasq.service: I rahua te hua o te 'waehere putanga'.

    Me aha ahau? Mauruuru.

    1.    tio ka mea

      I whai ahau i nga huarahi ki te reta, tirohia te akoranga taketake o taku tuhinga. I waiho ano e au tetahi riipene ataata.

  5.   haehae ka mea

    @ice ice, te whakatairite i tenei panui me to riipene ataata i mahia ki runga, ka kite ahau he hapa kei roto i te taahiraa nama 4 kua tuhia ki konei. Ko te he ko te konae hei whakatika ko te "systemctl edit dnscrypt-proxy.service –full", engari me whakatika "systemctl edit dnscrypt-proxy.socket –full". (Kia maumahara, kaua ki te .haupaparorohiko me tuhi e koe .socket).

    Koira te take i riro ai i a @wisse wisse taua hapa hapa i te hiahia koe ki te tiimata i te ratonga dnsmasq (mai i te mea ano i pa ki au).

    Mauruuru!