Portál AbcLinuxu, 7. května 2025 07:34

Dotaz: Nastavení fireholu aby fungoval update

1.10.2013 02:44 Jarda
Nastavení fireholu aby fungoval update
Přečteno: 345×
Odpovědět | Admin
Zdravím, rád bych si nastavil firehol tak aby mi fungoval update. Moje nastavení vypadá takto:
version 5

# Accept all client traffic on any interface
#interface any world
#       client all accept
home_ips="xx.xx.xx.xxx"
interface eth0 internet src not "${home_ips} ${UNROUTABLE_IPS}"
  protection strong 10/sec 10
  server ident reject with tcp-reset
  server http  accept
  server ssh   accept
  server ping  accept
  client icmp  accept
  client http  accept
  client ping  accept
  client dns   accept
  client smtp  accept
  client ftp   accept
  client ntp   accept
  client ssh   accept

Podle mě by takto mělo fungovat stahování přes http. Ale když dát příkaz: "apt-get update" vrátí se mi toto:
Err http://security.ubuntu.com precise-security Release.gpg
  Temporary failure resolving 'security.ubuntu.com'
Err http://cz.archive.ubuntu.com precise Release.gpg
  Temporary failure resolving 'cz.archive.ubuntu.com'
Err http://cz.archive.ubuntu.com precise-updates Release.gpg
  Temporary failure resolving 'cz.archive.ubuntu.com'
Err http://cz.archive.ubuntu.com precise-backports Release.gpg
  Temporary failure resolving 'cz.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://cz.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg                                                                                                                                                Temporary failure resolving 'cz.archive.ubuntu.com'

W: Failed to fetch http://cz.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg  Temporary failure resolving 'cz.archive.ubuntu.com'

W: Failed to fetch http://cz.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg  Temporary failure resolving 'cz.archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg  Temporary failure resolving 'security.ubuntu.com'

Když ho vypnu vše funguje OK. Netušíte co tam mám špatně? Díky (mám Ubuntu 12.04)
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

1.10.2013 11:53 NN
Rozbalit Rozbalit vše Re: Nastavení fireholu aby fungoval update
Odpovědět | | Sbalit | Link | Blokovat | Admin
DNS ti korektne resolvuji?
1.10.2013 12:16 Jarda
Rozbalit Rozbalit vše Re: Nastavení fireholu aby fungoval update
No to právě se zapnutým fireholem také ne. Když se zaloguji napíše to "sudo: unable to resolve host xxxx.xx" když vypnu firehol je vše vpořádku.
3.10.2013 10:16 Jarda
Rozbalit Rozbalit vše Re: Nastavení fireholu aby fungoval update
Odpovědět | | Sbalit | Link | Blokovat | Admin
Neví někdo jak nastavit ten firehol :-( budu rád za každou radu.
3.10.2013 11:19 NN
Rozbalit Rozbalit vše Re: Nastavení fireholu aby fungoval update
Nelezou ti do toho nejaka defaultni pravidla? Zkontroluj vypis iptables po startu systemu.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.