ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Slobodian Viacheslav <alt_community@slavik.msk.ru>
To: community@altlinux.ru
Subject: [Comm] Routing to lo (Loopback interface) failed.. Help me! #2
Date: Thu, 17 Feb 2005 12:51:16 +0300
Message-ID: <20050217125116.4ec498d0@slava.310.ru> (raw)

Система ALT Master 2.4 засизифленная по полной. ;) 
Недавно игрался с разными скриптами для iptables- пробовал разные политики, запрещая то одно, то другое.. 
На следующий день обнаружил, что у меня зависают запросы на localhost. Т.е. ни тебе обращения к CUPS, ни прокси локальной, ни апачи локальной.. 
Такое впечатление, что при опущенном файерволе и включённом в ifconfig интерфейсом lo его "не существует" на самом деле. 
Предполагаю, что где-то поломал роутинг на localhost. 
Как восстановить? 

По совету коллеги попробовал

[root@slava install]# route add 127.0.0.0 netmask 255.0.0.0 dev lo
route: netmask 00ffffff doesn't make sense with host route
и
[root@slava install]# ip route add 127.0.0.0/8 dev lo
RTNETLINK answers: No such device

Куда копать дальше?

Привожу:

[root@slava root]# netstat -rn       
Kernel IP routing table 
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface 
83.97.105.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0 
0.0.0.0         83.97.105.65    0.0.0.0         UG        0 0          0 eth0
---
Т.е. не хватает строки 
127.0.0.0       0.0.0.0      255.0.0.0       U         0 0          0 lo
пытался её добавить через 
[root@slava etc]# route add 127.0.0.0 netmask 0.0.0.0 gw 255.0.0.0   
SIOCADDRT: Network is unreachable
---
[root@slava install]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination  
---
[root@slava install]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0D:61:4F:3A:1D  
          inet addr:83.97.105.71  Bcast:83.97.105.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39722 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35810 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:26672169 (25.4 MiB)  TX bytes:4593211 (4.3 MiB)
          Interrupt:19 Base address:0xe000 

lo        Link encap:Local Loopback  
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


             reply	other threads:[~2005-02-17  9:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-17  9:51 Slobodian Viacheslav [this message]
2005-02-17 10:45 ` Dmytro O. Redchuk
2005-02-17 11:06   ` Slobodian Viacheslav
2005-02-17 11:44     ` Dmytro O. Redchuk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050217125116.4ec498d0@slava.310.ru \
    --to=alt_community@slavik.msk.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git