LinuxForum.Fans
Тема

Rc-update и линки

Автор: zenon 18 сообщений 4832 просмотров
#254376

При старте допустим php-fpm, nginx ждут поднятия ethX - можно от этого избавится?
В логах примерно так:

text
 *     Backgrounding ...
 * WARNING: net.eth1 has started, but is inactive
 * WARNING: php-fpm is scheduled to started when net.eth1 has started
 * WARNING: nginx is scheduled to started when net.eth1 has started
 * WARNING: sshd is scheduled to started when net.eth1 has started
 * WARNING: netmount is scheduled to started when net.eth1 has started
 * WARNING: htpdate is scheduled to started when net.eth1 has started

Еще перестал стартовать сам unbound в принципе он тоже lin to - локалка (eth), хотя в rc-update он стоит:

text
# rc-update show
             bootmisc | boot                         
          consolefont | boot                         
                 dbus |      default                 
                devfs |                       sysinit
                dmesg |                       sysinit
                 fsck | boot                         
               hdparm |      default                 
             hostname | boot                         
              htpdate |      default                 
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown        
           lm_sensors |      default                 
                local |      default                 
           localmount | boot                         
              modules | boot                         
             mount-ro |              shutdown        
                 mtab | boot                         
                mysql |      default                 
             net.eth0 |      default                 
             net.eth1 |      default                 
               net.lo | boot                         
             netmount |      default                 
                nginx |      default                 
              php-fpm |      default                 
               procfs | boot                         
              proftpd |      default                 
                 root | boot                         
            savecache |              shutdown        
                 sshd |      default                 
                 swap | boot                         
               sysctl | boot                         
         termencoding | boot                         
                 udev |                       sysinit
       udev-postmount |      default                 
              unbound |      default                 
              urandom | boot                         
           vixie-cron |      default   

Приходится ручками его стартовать.
Такс...
При вкл\выкл свитча наблюдаю (dmesg):

text
r8169 0000:01:00.0: eth0: link down
r8169 0000:01:00.0: eth0: link up

Раньше никак не реагировал, есть свитч нет его - без разницы.

#254378

Покажите

text
grep rc_depend_strict /etc/rc.conf
#254381
text
$ grep rc_depend_strict /etc/rc.conf
# and net.eth1 are in the default runlevel then with rc_depend_strict="NO"
# one comes up. With rc_depend_strict="YES" we would require them both to
rc_depend_strict="YES"

То бишь убрать в "NO", и всё?

#254382
"newzenon" написал:
То бишь убрать в "NO", и всё?

Попробовать, по крайней мере ;)
У меня нет необходимости в этом, поэтому и не проверял. Раньше была опция, в которой можно было прямо выставить зависимость сервисов от наличия или отсутствия определённых интерфейсов.

#254383

Посмотрел дефолт rc.conf -

text
$ grep rc_depend_strict /etc/rc.conf
# and net.eth1 are in the default runlevel then with rc_depend_strict="NO"
# one comes up. With rc_depend_strict="YES" we would require them both to
#rc_depend_strict="YES"

Сейчас гляну что с unbound будет происходить.

Вспомнил, это я когда hostapd настраивал изменил по каким-то манам... :)

#254387

Сделал в дефолт (#rc_depend_strict="YES")

text

[ ok ] * Bringing up interface eth1 * Changing MAC address of eth1 ... [ ok ] * changed to 00:21:91:21:80:D5 * Starting ifplugd on eth1 ... [ ok ] * Backgrounding ... * WARNING: net.eth1 has started, but is inactive * WARNING: php-fpm is scheduled to started when net.eth1 has started * WARNING: nginx is scheduled to started when net.eth1 has started * WARNING: sshd is scheduled to started when net.eth1 has started * WARNING: netmount is scheduled to started when net.eth1 has started * WARNING: htpdate is scheduled to started when net.eth1 has started Вторая попытка PPP повтор соединения ......TIMED OUT smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.3.0] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled.

/dev/sda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error setting acoustic management to 254 APM_level = not supported acoustic = 254 (128=quiet ... 254=fast) ........................................................ Подгружаем модули... Очистка всех цепочек IPTABLES ... Выполненно. ........................................................ | EXTIP=88.87.92.60 EXTBC=255.255.255.255 EXTMSK=255.255.255.255 | | EXTNET=88.87.92.60/255.255.255.255 | | LANIP=192.168.0.1 LANBC=192.168.0.255 LANMSK=255.255.255.0 | | LANNET=192.168.0.1/255.255.255.0 | +-----------------------------------------------------------------+ | Default polices: INPUT DROP; OUTPUT DROP; FORWARD DROP; | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW TCPMSS tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x02 TCPMSS clamp to PMTU DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in ppp0 out * 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in eth0 out * 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state NEW,RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in lo out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out lo 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 REJECT all opt -- in ppp0 out eth0 0.0.0.0/0 -> 0.0.0.0/0 reject-with icmp-port-unreachable ACCEPT all opt -- in eth0 out ppp0 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 0 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:44535 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:44535 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:80 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:21 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:53 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:443 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:873 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:25 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:587 MASQUERADE all opt -- in * out ppp0 192.168.0.2 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.5 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.10 -> 0.0.0.0/0 smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.3.0] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled.

/dev/sda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error setting acoustic management to 254 APM_level = not supported acoustic = 254 (128=quiet ... 254=fast) ........................................................ Подгружаем модули... Очистка всех цепочек IPTABLES ... Выполненно. ........................................................ | EXTIP=88.87.92.60 EXTBC=255.255.255.255 EXTMSK=255.255.255.255 | | EXTNET=88.87.92.60/255.255.255.255 | | LANIP=192.168.0.1 LANBC=192.168.0.255 LANMSK=255.255.255.0 | | LANNET=192.168.0.1/255.255.255.0 | +-----------------------------------------------------------------+ | Default polices: INPUT DROP; OUTPUT DROP; FORWARD DROP; | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW TCPMSS tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x02 TCPMSS clamp to PMTU DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in ppp0 out * 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in eth0 out * 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state NEW,RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in lo out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out lo 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 REJECT all opt -- in ppp0 out eth0 0.0.0.0/0 -> 0.0.0.0/0 reject-with icmp-port-unreachable ACCEPT all opt -- in eth0 out ppp0 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 0 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:44535 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:44535 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:80 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:21 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:53 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:443 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:873 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:25 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:587 MASQUERADE all opt -- in * out ppp0 192.168.0.2 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.5 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.10 -> 0.0.0.0/0 [ ok ]

rc default logging stopped at Sat May 26 12:30:54 2012

rc shutdown logging started at Sat May 26 13:51:28 2012

* Caching service dependencies ... [ ok ] * Stopping local [ ok ] * Stopping vixie-cron ... [ ok ] * Saving random seed ... [ ok ] * Deactivating swap devices ... [ ok ] * Stopping sshd ... [ ok ] * Stopping ProFTPD ... [ ok ] * Stopping PHP FastCGI Process Manager ... [ ok ] * Stopping nginx ... [ ok ] * Unmounting network filesystems ... [ ok ] * Stopping mysql ... [ ok ] * Unloading lm_sensors modules... * Unloading w83627ehf ... [ ok ] * Stopping htpdate ... [ ok ] * Stopping unbound ... [ ok ] * Bringing down interface eth1 * Stopping ifplugd on eth1 ... [ ok ] * Bringing down interface eth0 * Stopping ifplugd on eth0 ... [ ok ] * Bringing down interface lo * Stopping D-BUS system messagebus ... [ ok ] * Unmounting loop devices * Unmounting filesystems * Unmounting /mnt/data ... [ ok ] * Unmounting /mnt/backup ... [ ok ] * Unmounting /mnt/srv ... [ ok ] * Stopping udev ... [ ok ] * Setting hardware clock using the system clock [Local Time] ... [ ok ]

rc shutdown logging stopped at Sat May 26 13:51:31 2012

rc boot logging started at Sat May 26 17:52:09 2012

* Setting system clock using the hardware clock [Local Time] ... [ ok ] * Autoloaded 0 module(s) * Checking local filesystems ... Reiserfs super block in block 16 on 0x801 of format 3.6 with standard journal Blocks (total/free): 7935744/4953891 by 4096 bytes Filesystem is clean Reiserfs super block in block 16 on 0x802 of format 3.6 with standard journal Blocks (total/free): 13107024/12955595 by 4096 bytes Filesystem is clean backup: clean, 46876/3276800 files, 3210114/13107200 blocks data: clean, 703/18849792 files, 18617130/75386880 blocks [ ok ] * Remounting root filesystem read/write ... [ ok ] * Updating /etc/mtab ... [ ok ] * Mounting local filesystems ... [ ok ] * Configuring kernel parameters ... [ ok ] * Creating user login records ... [ ok ] * Cleaning /var/run ... [ ok ] * Wiping /tmp directory ... [ ok ] * Setting terminal encoding [UTF-8] ... [ ok ] * Setting console font [ter-k14n] ... [ ok ] * Setting hostname to linuxru.org ... [ ok ] * Setting keyboard mode [UTF-8] ... [ ok ] * Loading key mappings [-u ru] ... [ ok ] * Bringing up interface lo * 127.0.0.1/8 ... [ ok ] * Adding routes * 127.0.0.0/8 via 127.0.0.1 ... [ ok ] * Activating swap devices ... [ ok ] * Initializing random number generator ... [ ok ]

rc boot logging stopped at Sat May 26 13:52:11 2012

rc default logging started at Sat May 26 13:52:11 2012

* Starting D-BUS system messagebus ... [ ok ] * Bringing up interface eth0 * Starting ifplugd on eth0 ... [ ok ] * Backgrounding ... * WARNING: net.eth0 has started, but is inactive * Bringing up interface eth1 * Changing MAC address of eth1 ... [ ok ] * changed to 00:21:91:21:80:D5 * Starting ifplugd on eth1 ... [ ok ] * Backgrounding ... * WARNING: net.eth1 has started, but is inactive * WARNING: unbound is scheduled to start when net.eth0, net.eth1 has started * WARNING: htpdate is scheduled to start when net.eth0, net.eth1 has started * Loading lm_sensors modules... * Loading w83627ehf ... [ ok ] * Initializing sensors ... [ ok ] * Starting mysql ... [ ok ] * WARNING: netmount is scheduled to start when net.eth0 has started * WARNING: nginx is scheduled to start when net.eth0 has started * WARNING: php-fpm is scheduled to start when net.eth0 has started * WARNING: proftpd is scheduled to start when net.eth0 has started * WARNING: sshd is scheduled to start when net.eth0 has started * Doing udev cleanups * Starting vixie-cron ... [ ok ] * Starting local

/dev/sda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error APM_level = not supported

/dev/sda: setting acoustic management to 254 acoustic = 254 (128=quiet ... 254=fast)

/dev/sda: setting standby to 0 (off) ......TIMED OUT ......TIMED OUT smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.3.0] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled.

/dev/sda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error setting acoustic management to 254 APM_level = not supported acoustic = 254 (128=quiet ... 254=fast) ........................................................ Подгружаем модули... Очистка всех цепочек IPTABLES ... Выполненно. ........................................................ ppp0: error fetching interface information: Device not found ppp0: error fetching interface information: Device not found | EXTIP= EXTBC=255.255.255.255 EXTMSK= | | EXTNET=/ | | LANIP=192.168.0.1 LANBC=192.168.0.255 LANMSK=255.255.255.0 | | LANNET=192.168.0.1/255.255.255.0 | +-----------------------------------------------------------------+ | Default polices: INPUT DROP; OUTPUT DROP; FORWARD DROP; | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW TCPMSS tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x02 TCPMSS clamp to PMTU DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in ppp0 out * 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in eth0 out * 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state NEW,RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in lo out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out lo 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 REJECT all opt -- in ppp0 out eth0 0.0.0.0/0 -> 0.0.0.0/0 reject-with icmp-port-unreachable ACCEPT all opt -- in eth0 out ppp0 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 0 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:44535 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:44535 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:80 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:21 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:53 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:443 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:873 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:25 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:587 MASQUERADE all opt -- in * out ppp0 192.168.0.2 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.5 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.10 -> 0.0.0.0/0 Первая попытка PPP повтор соединения pppoe-stop: No PPPoE connection appears to be running cat: /var/run/ppp0.pid: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] cat: /var/run/ppp1.pid: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] * Stopping sshd ... [ ok ] * Stopping PHP FastCGI Process Manager ... [ ok ] * Stopping nginx ... [ ok ] * Unmounting network filesystems ... [ ok ] * Stopping htpdate ... [ ok ] * net.eth1: waiting for proftpd (50 seconds) * net.eth1: waiting for proftpd (41 seconds) * net.eth1: waiting for proftpd (32 seconds) * net.eth1: waiting for proftpd (23 seconds) * net.eth1: waiting for proftpd (14 seconds) * Bringing down interface eth1 * Stopping ifplugd on eth1 ... [ ok ] * Bringing up interface eth1 * Changing MAC address of eth1 ... [ ok ] * changed to 00:21:91:21:80:D5 * Starting ifplugd on eth1 ... [ ok ] * Backgrounding ... * WARNING: net.eth1 has started, but is inactive * WARNING: php-fpm is scheduled to started when net.eth1 has started * WARNING: nginx is scheduled to started when net.eth1 has started * WARNING: sshd is scheduled to started when net.eth1 has started * WARNING: netmount is scheduled to started when net.eth1 has started * WARNING: htpdate is scheduled to started when net.eth1 has started Вторая попытка PPP повтор соединения ......TIMED OUT smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.3.0] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled.

/dev/sda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error setting acoustic management to 254 APM_level = not supported acoustic = 254 (128=quiet ... 254=fast) ........................................................ Подгружаем модули... Очистка всех цепочек IPTABLES ... Выполненно. ........................................................ ppp0: error fetching interface information: Device not found ppp0: error fetching interface information: Device not found | EXTIP= EXTBC=255.255.255.255 EXTMSK= | | EXTNET=/ | | LANIP=192.168.0.1 LANBC=192.168.0.255 LANMSK=255.255.255.0 | | LANNET=192.168.0.1/255.255.255.0 | +-----------------------------------------------------------------+ | Default polices: INPUT DROP; OUTPUT DROP; FORWARD DROP; | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW TCPMSS tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x02 TCPMSS clamp to PMTU DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in ppp0 out * 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in eth0 out * 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state NEW,RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in lo out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out lo 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 REJECT all opt -- in ppp0 out eth0 0.0.0.0/0 -> 0.0.0.0/0 reject-with icmp-port-unreachable ACCEPT all opt -- in eth0 out ppp0 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 0 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:44535 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:44535 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:80 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:21 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:53 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:443 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:873 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:25 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:587 MASQUERADE all opt -- in * out ppp0 192.168.0.2 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.5 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.10 -> 0.0.0.0/0 pppoe-stop: No PPPoE connection appears to be running cat: /var/run/ppp0.pid: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] cat: /var/run/ppp1.pid: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] * Stopping sshd ... [ ok ] * Stopping PHP FastCGI Process Manager ... [ ok ] * Stopping nginx ... [ ok ] * Unmounting network filesystems ... [ ok ] * Stopping htpdate ... [ ok ] * Bringing down interface eth1 * Stopping ifplugd on eth1 ... [ ok ] * Bringing up interface eth1 * Changing MAC address of eth1 ... [ ok ] * changed to 00:21:91:21:80:D5 * Starting ifplugd on eth1 ... [ ok ] * Backgrounding ... * WARNING: net.eth1 has started, but is inactive * WARNING: php-fpm is scheduled to started when net.eth1 has started * WARNING: nginx is scheduled to started when net.eth1 has started * WARNING: sshd is scheduled to started when net.eth1 has started * WARNING: netmount is scheduled to started when net.eth1 has started * WARNING: htpdate is scheduled to started when net.eth1 has started Третья попытка PPP повтор соединения . Connected! smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.3.0] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled.

/dev/sda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error setting acoustic management to 254 APM_level = not supported acoustic = 254 (128=quiet ... 254=fast) ........................................................ Подгружаем модули... Очистка всех цепочек IPTABLES ... Выполненно. ........................................................ | EXTIP=88.87.92.60 EXTBC=255.255.255.255 EXTMSK=255.255.255.255 | | EXTNET=88.87.92.60/255.255.255.255 | | LANIP=192.168.0.1 LANBC=192.168.0.255 LANMSK=255.255.255.0 | | LANNET=192.168.0.1/255.255.255.0 | +-----------------------------------------------------------------+ | Default polices: INPUT DROP; OUTPUT DROP; FORWARD DROP; | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW TCPMSS tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x02 TCPMSS clamp to PMTU DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in ppp0 out * 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in eth0 out * 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state NEW,RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in lo out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out lo 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 REJECT all opt -- in ppp0 out eth0 0.0.0.0/0 -> 0.0.0.0/0 reject-with icmp-port-unreachable ACCEPT all opt -- in eth0 out ppp0 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 0 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:44535 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:44535 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:80 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:21 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:53 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:443 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:873 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:25 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:587 MASQUERADE all opt -- in * out ppp0 192.168.0.2 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.5 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.10 -> 0.0.0.0/0 !!!!!! smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.3.0] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled.

/dev/sda: setting Advanced Power Management level to disabled HDIO_DRIVE_CMD failed: Input/output error setting acoustic management to 254 APM_level = not supported acoustic = 254 (128=quiet ... 254=fast) ........................................................ Подгружаем модули... Очистка всех цепочек IPTABLES ... Выполненно. ........................................................ | EXTIP=88.87.92.60 EXTBC=255.255.255.255 EXTMSK=255.255.255.255 | | EXTNET=88.87.92.60/255.255.255.255 | | LANIP=192.168.0.1 LANBC=192.168.0.255 LANMSK=255.255.255.0 | | LANNET=192.168.0.1/255.255.255.0 | +-----------------------------------------------------------------+ | Default polices: INPUT DROP; OUTPUT DROP; FORWARD DROP; | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 ctstate INVALID REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 REJECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x12/0x12 state NEW reject-with tcp-reset DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x29 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x3F DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x37 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x3F/0x00 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x06 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x03/0x03 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP icmp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW DROP tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags:! 0x17/0x02 state NEW TCPMSS tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcpflags: 0x06/0x02 TCPMSS clamp to PMTU DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in !lo out * 127.0.0.0/8 -> 0.0.0.0/0 DROP all opt -- in ppp0 out * 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in eth0 out * 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 DROP all opt -- in * out ppp0 0.0.0.0/0 -> 255.255.255.255 DROP all opt -- in * out eth0 0.0.0.0/0 -> 192.168.0.255 ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state NEW,RELATED,ESTABLISHED ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED ACCEPT all opt -- in lo out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out lo 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT all opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 REJECT all opt -- in ppp0 out eth0 0.0.0.0/0 -> 0.0.0.0/0 reject-with icmp-port-unreachable ACCEPT all opt -- in eth0 out ppp0 0.0.0.0/0 -> 0.0.0.0/0 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 4 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 0 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 8 ACCEPT icmp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT icmp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 icmptype 12 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:44535 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:44535 ACCEPT tcp opt -- in eth0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:21 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:21 ACCEPT tcp opt -- in ppp0 out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp spt:80 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:21 ACCEPT udp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:53 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:80 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:443 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:873 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:25 ACCEPT tcp opt -- in * out ppp0 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:587 MASQUERADE all opt -- in * out ppp0 192.168.0.2 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.5 -> 0.0.0.0/0 MASQUERADE all opt -- in * out ppp0 192.168.0.10 -> 0.0.0.0/0 [ ok ]

rc default logging stopped at Sat May 26 13:53:57 2012

unbound так и не стартанул.

#254388

newzenon, где ты смотришь такой лог загрузки ? научи..

#rc_depend_strict="YES"

может лучше для точности в NO установить

#254394
"riso" написал:
newzenon, где ты смотришь такой лог загрузки ? научи..

файл - /etc/rc.conf

text
rc_logger="YES"

Лог после перезагрузки - /var/log/rc.log

#254395

Да уж, не только unbound, но и

text
$ /etc/init.d/proftpd status
 * status: stopped
text
$ /etc/init.d/proftpd start
 * Starting ProFTPD ...                                                                                                                                                                                      [ ok ]
#254397

newzenon, можно попробовать выставить задержку для интерфейса

text

bzless /usr/share/doc/openrc-ВЕРСИЯ
...
# Seconds to wait before scanning
# Some drivers need to wait until they have finished "loading"
# before they can scan - otherwise they error and claim that they cannot scan
# or resource is unavailable. The default is to wait zero seconds
sleep_scan_eth0="10"
#254401
"Lupo Alberto" написал:
можно попробовать выставить задержку для интерфейса

Не, не выход, у меня еще скрипт при старте который pppoe проверяет pid, пингует доступ в интернет, переподключается, все из-за того что на Gentoo так и не решил - PPPoE через один reboot

#254402

ы. Как из скрипта проверить запущен ли сервис?
В cron запихну наверное.

#254405
"newzenon" написал:
Как из скрипта проверить запущен ли сервис?
text

/etc/init.d/SERVICE status && echo "OK" || echo "Oops"
#254410
"Lupo Alberto" написал:
text
/etc/init.d/SERVICE status && echo "OK" || echo "Oops"

Хороший ход, спасибо.

#254411

Тут же спрошу как запретить cron'у слать почту?

#254413

MAILTO=""

#254415
"riso" написал:
MAILTO=""

Точно это же в /etc/crontab ...

#255610

Разобрался наконец с проблемой PPPoE через один reboot
Теперь никаких rp-pppoe, только ppp

text
[ebuild   R    ] net-dialup/ppp-2.4.5-r1  USE="gtk pam -activefilter -atm -dhcp -eap-tls -ipv6 -radius" 0 kB

/etc/conf.d/net

text
config_eth1="192.168.0.1 netmask 255.255.255.0"
routes_eth1="default via 192.168.0.1"
config_eth0="null"
mac_eth0="XX:XX:XX:XX:XX:Xx"
config_ppp0="ppp"
link_ppp0="eth0"
plugins_ppp0="pppoe"
username_ppp0='username'
password_ppp0='password'
metric_ppp0=0
pppd_ppp0="
    noauth
    defaultroute
    usepeerdns
    ipcp-accept-remote
    ipcp-accept-local
    lcp-echo-interval 15
    lcp-echo-failure 3
    persist
 "
 depend_ppp0() {
 need net.eth0
}

Соединение теперь стартует всегда, имхо повлияла опция metric_ppp0=0
Других предположений нет.
Но иниты так и не заводятся сами...
Пришлось в /etc/local.d/

text
/etc/init.d/mysql   status >/dev/null 2>&1 && echo " { MYSQL   OK }" || /etc/init.d/mysql   start
/etc/init.d/php-fpm status >/dev/null 2>&1 && echo " { PHP-FPM OK }" || /etc/init.d/php-fpm start
/etc/init.d/nginx   status >/dev/null 2>&1 && echo " { NGINX   OK }" || /etc/init.d/nginx   start
/etc/init.d/unbound status >/dev/null 2>&1 && echo " { UNBOUND OK }" || /etc/init.d/unbound start
/etc/init.d/proftpd status >/dev/null 2>&1 && echo " { PROFTPD OK }" || /etc/init.d/proftpd start

Вот последний лог:

text
rc default logging started at Wed May 30 19:31:29 2012

* Starting mysql ... [ ok ] * Bringing up interface eth0 * Changing MAC address of eth0 ... [ ok ] * changed to 00:21:91:21:80:d5 [ ok ] * Bringing up interface eth1 * 192.168.0.1 ... [ ok ] * Adding routes * default via 192.168.0.1 ... [ ok ] * Bringing up interface ppp0 * Starting pppd in ppp0 ... [ ok ] * Backgrounding ... * WARNING: net.ppp0 has started, but is inactive * WARNING: unbound is scheduled to start when net.ppp0 has started * WARNING: netmount is scheduled to start when net.ppp0 has started * WARNING: nginx is scheduled to start when net.ppp0 has started * WARNING: php-fpm is scheduled to start when net.ppp0 has started * WARNING: sshd is scheduled to start when net.ppp0 has started * Doing udev cleanups * Starting local +-----------------------------------------------------------------+ { MYSQL OK } * WARNING: php-fpm is already starting * WARNING: nginx is already starting { UNBOUND OK } * Starting ProFTPD ... [ ok ] [ ok ] rc default logging stopped at Wed May 30 19:31:33 2012

Войдите или зарегистрируйтесь, чтобы ответить.