/l3/users/vadik/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 |
|
#ls
access aliases helpfile Makefile sendmail.cf sendmail.mc smrsh tls access.db aliases.db local-host-names peers sendmail.cf.errors service.switch submit.cf trusted-users address.resolve databases m4 sasl sendmail.conf service.switch-nodns submit.mc |
#ls
access aliases helpfile Makefile sendmail.cf sendmail.mc smrsh tls access.db aliases.db local-host-names peers sendmail.cf.errors service.switch submit.cf trusted-users address.resolve databases m4 sasl sendmail.conf service.switch-nodns submit.mc |
#vi sendmail.mc
--- /tmp/l3-saved-4474.1719.24931 2011-10-18 14:18:12.000000000 +0300 +++ sendmail.mc 2011-10-18 14:18:36.000000000 +0300 @@ -96,14 +96,13 @@ dnl # include(`/etc/mail/m4/dialup.m4')dnl include(`/etc/mail/m4/provider.m4')dnl -dnl # -dnl # Default Mailer setup -MAILER_DEFINITIONS -MAILER(`local')dnl -MAILER(`smtp')dnl - dnl # Masquerading options FEATURE(`always_add_domain')dnl MASQUERADE_AS(`linux1.unix.nt')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl +dnl # +dnl # Default Mailer setup +MAILER_DEFINITIONS +MAILER(`local')dnl +MAILER(`smtp')dnl |
#FEATURE(`no_default_msa')dnl
localhost linux1.unix.nt "local-host-names" 2L, 25C |
#FEATURE(`no_default_msa')dnl
localhost linux1.unix.nt "local-host-names" 2L, 25C |
#~
VERSIONID(`$Id: sendmail.mc, v 8.14.3-9.4 2010-09-21 11:05:34 cowboy Exp $') OSTYPE(`debian')dnl DOMAIN(`debian-mta')dnl dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS= dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE dnl # dnl # General defines dnl # dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot() ... dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl S( =0.0.0.0')dnl dnl # =0.0.0.0')dnl dnl # Be somewhat anal in what we allow define(`confPRIVACY_FLAGS',dnl "sendmail.mc" 108L, 4211C записано |
#~
# # sendmail.mc prototype config file for building Sendmail 8.14.3 # # Note: the .in file supports 8.7.6 - 9.0.0, but the generated # file is customized to the version noted above. # # This file is used to configure Sendmail for use with Debian systems. # # If you modify this file, you will have to regenerate /etc/mail/sendmail.cf # by running this file through the m4 preprocessor via one of the following: ... dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl S( =0.0.0.0')dnl dnl # =0.0.0.0')dnl dnl # Be somewhat anal in what we allow define(`confPRIVACY_FLAGS',dnl "sendmail.mc" 108L, 4211C записано |
#MAILER(`smtp')dnl
127.0.0.1 localhost 192.168.15.21 linux1.unix.nt linux1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
#MAILER(`smtp')dnl
127.0.0.1 localhost 192.168.15.21 linux1.unix.nt linux1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
#vi !$
--- /tmp/l3-saved-4474.12116.29742 2011-10-18 14:25:56.000000000 +0300 +++ /etc/hosts 2011-10-18 14:26:03.000000000 +0300 @@ -1,5 +1,5 @@ 127.0.0.1 localhost -192.168.15.21 linux1.unix.nt linux1 +192.168.10.1 linux1.unix.nt linux1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback |
#cat /etc/hosts
127.0.0.1 localhost 192.168.10.1 linux1.unix.nt linux1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
#cat /etc/hosts
127.0.0.1 localhost 192.168.10.1 linux1.unix.nt linux1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
#host linux1.unix.nt
linux1.unix.nt has address 192.168.10.1 linux1.unix.nt has address 192.168.101.1 |
#host linux1.unix.nt
linux1.unix.nt has address 192.168.10.1 linux1.unix.nt has address 192.168.101.1 |
#host linux1.unix.nt
linux1.unix.nt has address 192.168.101.1 linux1.unix.nt has address 192.168.10.1 |
#host linux1.unix.nt
linux1.unix.nt has address 192.168.101.1 linux1.unix.nt has address 192.168.10.1 |
#host linux1.unix.nt
linux1.unix.nt has address 192.168.10.1 linux1.unix.nt has address 192.168.101.1 |
#host linux1.unix.nt
linux1.unix.nt has address 192.168.10.1 linux1.unix.nt has address 192.168.101.1 |
#host linux1.unix.nt
linux1.unix.nt has address 192.168.101.1 linux1.unix.nt has address 192.168.10.1 |
#host linux1.unix.nt
linux1.unix.nt has address 192.168.101.1 linux1.unix.nt has address 192.168.10.1 |
#host 192.168.10.1
1.10.168.192.in-addr.arpa domain name pointer linux1.unix.nt. |
#host 192.168.10.1
1.10.168.192.in-addr.arpa domain name pointer linux1.unix.nt. |
#vi access
--- /tmp/l3-saved-4474.13691.21483 2011-10-18 14:29:50.000000000 +0300 +++ access 2011-10-18 14:30:32.000000000 +0300 @@ -97,7 +97,7 @@ #Connect:172.29 RELAY #Connect:172.30 RELAY #Connect:172.31 RELAY -#Connect:192.168 RELAY +Connect:192.168.10 RELAY #GreetPause:192.168 0 #ClientRate:192.168 0 #ClientConn:192.168 0 |
#netstat -an
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:37193 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp 0 0 192.168.10.1:55209 192.168.15.252:22 ESTABLISHED ... unix 2 [ ] DGRAM 10241 unix 3 [ ] STREAM CONNECTED 6394 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5486 unix 3 [ ] STREAM CONNECTED 6388 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5485 unix 2 [ ] DGRAM 5481 unix 3 [ ] STREAM CONNECTED 5479 unix 3 [ ] STREAM CONNECTED 5478 unix 3 [ ] DGRAM 1980 unix 3 [ ] DGRAM 1979 |
#netstat -an
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:37193 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp 0 0 192.168.10.1:55209 192.168.15.252:22 ESTABLISHED ... unix 2 [ ] DGRAM 10241 unix 3 [ ] STREAM CONNECTED 6394 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5486 unix 3 [ ] STREAM CONNECTED 6388 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5485 unix 2 [ ] DGRAM 5481 unix 3 [ ] STREAM CONNECTED 5479 unix 3 [ ] STREAM CONNECTED 5478 unix 3 [ ] DGRAM 1980 unix 3 [ ] DGRAM 1979 |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:37193 0.0.0.0:* LISTEN 823/rpc.statd tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 811/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1707/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp6 0 0 :::22 :::* LISTEN 1707/sshd ... unix 2 [ ACC ] STREAM LISTENING 5545 1154/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ACC ] STREAM LISTENING 10315 1166/bluetoothd @/org/bluez/audio unix 2 [ ACC ] STREAM LISTENING 2356 1118/gdm-simple-sla @/tmp/gdm-greeter-aOlcQzqO unix 2 [ ACC ] STREAM LISTENING 10302 1131/Xorg @/tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 10226 1080/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 2404 1118/gdm-simple-sla @/tmp/gdm-session-PRIUzvBX unix 2 [ ACC ] STREAM LISTENING 5794 1649/gpm /dev/gpmctl unix 2 [ ACC ] STREAM LISTENING 6112 1900/dbus-daemon @/tmp/dbus-ven7YizeZt unix 2 [ ACC ] STREAM LISTENING 11463 1862/x-session-mana @/tmp/.ICE-unix/1862 unix 2 [ ACC ] STREAM LISTENING 10938 1256/asterisk /var/run/asterisk/asterisk.ctl |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:37193 0.0.0.0:* LISTEN 823/rpc.statd tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 811/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1707/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp6 0 0 :::22 :::* LISTEN 1707/sshd ... unix 2 [ ACC ] STREAM LISTENING 5545 1154/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ACC ] STREAM LISTENING 10315 1166/bluetoothd @/org/bluez/audio unix 2 [ ACC ] STREAM LISTENING 2356 1118/gdm-simple-sla @/tmp/gdm-greeter-aOlcQzqO unix 2 [ ACC ] STREAM LISTENING 10302 1131/Xorg @/tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 10226 1080/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 2404 1118/gdm-simple-sla @/tmp/gdm-session-PRIUzvBX unix 2 [ ACC ] STREAM LISTENING 5794 1649/gpm /dev/gpmctl unix 2 [ ACC ] STREAM LISTENING 6112 1900/dbus-daemon @/tmp/dbus-ven7YizeZt unix 2 [ ACC ] STREAM LISTENING 11463 1862/x-session-mana @/tmp/.ICE-unix/1862 unix 2 [ ACC ] STREAM LISTENING 10938 1256/asterisk /var/run/asterisk/asterisk.ctl |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:37193 0.0.0.0:* LISTEN 823/rpc.statd tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 811/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1707/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp6 0 0 :::22 :::* LISTEN 1707/sshd ... unix 2 [ ACC ] STREAM LISTENING 5545 1154/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ACC ] STREAM LISTENING 10315 1166/bluetoothd @/org/bluez/audio unix 2 [ ACC ] STREAM LISTENING 2356 1118/gdm-simple-sla @/tmp/gdm-greeter-aOlcQzqO unix 2 [ ACC ] STREAM LISTENING 10302 1131/Xorg @/tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 10226 1080/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 2404 1118/gdm-simple-sla @/tmp/gdm-session-PRIUzvBX unix 2 [ ACC ] STREAM LISTENING 5794 1649/gpm /dev/gpmctl unix 2 [ ACC ] STREAM LISTENING 6112 1900/dbus-daemon @/tmp/dbus-ven7YizeZt unix 2 [ ACC ] STREAM LISTENING 11463 1862/x-session-mana @/tmp/.ICE-unix/1862 unix 2 [ ACC ] STREAM LISTENING 10938 1256/asterisk /var/run/asterisk/asterisk.ctl |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:37193 0.0.0.0:* LISTEN 823/rpc.statd tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 811/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1707/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp6 0 0 :::22 :::* LISTEN 1707/sshd ... unix 2 [ ACC ] STREAM LISTENING 5545 1154/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ACC ] STREAM LISTENING 10315 1166/bluetoothd @/org/bluez/audio unix 2 [ ACC ] STREAM LISTENING 2356 1118/gdm-simple-sla @/tmp/gdm-greeter-aOlcQzqO unix 2 [ ACC ] STREAM LISTENING 10302 1131/Xorg @/tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 10226 1080/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 2404 1118/gdm-simple-sla @/tmp/gdm-session-PRIUzvBX unix 2 [ ACC ] STREAM LISTENING 5794 1649/gpm /dev/gpmctl unix 2 [ ACC ] STREAM LISTENING 6112 1900/dbus-daemon @/tmp/dbus-ven7YizeZt unix 2 [ ACC ] STREAM LISTENING 11463 1862/x-session-mana @/tmp/.ICE-unix/1862 unix 2 [ ACC ] STREAM LISTENING 10938 1256/asterisk /var/run/asterisk/asterisk.ctl |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:37193 0.0.0.0:* LISTEN 823/rpc.statd tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 811/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1707/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp6 0 0 :::22 :::* LISTEN 1707/sshd ... unix 2 [ ACC ] STREAM LISTENING 5545 1154/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ACC ] STREAM LISTENING 10315 1166/bluetoothd @/org/bluez/audio unix 2 [ ACC ] STREAM LISTENING 2356 1118/gdm-simple-sla @/tmp/gdm-greeter-aOlcQzqO unix 2 [ ACC ] STREAM LISTENING 10302 1131/Xorg @/tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 10226 1080/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 2404 1118/gdm-simple-sla @/tmp/gdm-session-PRIUzvBX unix 2 [ ACC ] STREAM LISTENING 5794 1649/gpm /dev/gpmctl unix 2 [ ACC ] STREAM LISTENING 6112 1900/dbus-daemon @/tmp/dbus-ven7YizeZt unix 2 [ ACC ] STREAM LISTENING 11463 1862/x-session-mana @/tmp/.ICE-unix/1862 unix 2 [ ACC ] STREAM LISTENING 10938 1256/asterisk /var/run/asterisk/asterisk.ctl |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:37193 0.0.0.0:* LISTEN 823/rpc.statd tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 811/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 1256/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1707/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: tcp6 0 0 :::22 :::* LISTEN 1707/sshd ... unix 2 [ ACC ] STREAM LISTENING 5545 1154/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ACC ] STREAM LISTENING 10315 1166/bluetoothd @/org/bluez/audio unix 2 [ ACC ] STREAM LISTENING 2356 1118/gdm-simple-sla @/tmp/gdm-greeter-aOlcQzqO unix 2 [ ACC ] STREAM LISTENING 10302 1131/Xorg @/tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 10226 1080/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 2404 1118/gdm-simple-sla @/tmp/gdm-session-PRIUzvBX unix 2 [ ACC ] STREAM LISTENING 5794 1649/gpm /dev/gpmctl unix 2 [ ACC ] STREAM LISTENING 6112 1900/dbus-daemon @/tmp/dbus-ven7YizeZt unix 2 [ ACC ] STREAM LISTENING 11463 1862/x-session-mana @/tmp/.ICE-unix/1862 unix 2 [ ACC ] STREAM LISTENING 10938 1256/asterisk /var/run/asterisk/asterisk.ctl |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6839/sendmail: MTA: |
#cat aliases
# /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: user |
#cat aliases
# /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: user |
#apt-get install qpopper
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: mysql-common libmysqlclient16 Для их удаления используйте 'apt-get autoremove'. Будут установлены следующие дополнительные пакеты: openbsd-inetd НОВЫЕ пакеты, которые будут установлены: openbsd-inetd qpopper ... Выбор ранее не выбранного пакета openbsd-inetd. (Чтение базы данных ... на данный момент установлено 115762 файла и каталога.) Распаковывается пакет openbsd-inetd (из файла .../openbsd-inetd_0.20080125-6_i386.deb)... Выбор ранее не выбранного пакета qpopper. Распаковывается пакет qpopper (из файла .../qpopper_4.0.9.dfsg-1.2_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет openbsd-inetd (0.20080125-6) ... Stopping internet superserver: inetd. Not starting internet superserver: no services enabled. Настраивается пакет qpopper (4.0.9.dfsg-1.2) ... |
#apt-get install qpopper
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: mysql-common libmysqlclient16 Для их удаления используйте 'apt-get autoremove'. Будут установлены следующие дополнительные пакеты: openbsd-inetd НОВЫЕ пакеты, которые будут установлены: openbsd-inetd qpopper ... Выбор ранее не выбранного пакета openbsd-inetd. (Чтение базы данных ... на данный момент установлено 115762 файла и каталога.) Распаковывается пакет openbsd-inetd (из файла .../openbsd-inetd_0.20080125-6_i386.deb)... Выбор ранее не выбранного пакета qpopper. Распаковывается пакет qpopper (из файла .../qpopper_4.0.9.dfsg-1.2_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет openbsd-inetd (0.20080125-6) ... Stopping internet superserver: inetd. Not starting internet superserver: no services enabled. Настраивается пакет qpopper (4.0.9.dfsg-1.2) ... |
#[ ]
keepalived - Failover and monitoring daemon for LVS clusters ucarp - user-space replacement to VRRP -- automatic IP fail-over vrrpd - Virtual Router Redundancy Protocol user-space implementation |
#[ ]
keepalived - Failover and monitoring daemon for LVS clusters ucarp - user-space replacement to VRRP -- automatic IP fail-over vrrpd - Virtual Router Redundancy Protocol user-space implementation |
#tail -f /var/log/messages
Oct 18 14:48:39 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 18 14:48:39 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 18 14:50:08 linux1 dhcpd: DHCPREQUEST for 192.168.10.200 from f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 18 14:50:08 linux1 dhcpd: DHCPACK on 192.168.10.200 to f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 18 14:50:58 linux1 dhcpd: DHCPINFORM from 192.168.10.200 via eth0: not authoritative for subnet 192.168.10.0 Oct 18 14:51:01 linux1 dhcpd: DHCPINFORM from 192.168.10.200 via eth0: not authoritative for subnet 192.168.10.0 Oct 18 14:53:39 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 18 14:53:39 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 18 14:55:08 linux1 dhcpd: DHCPREQUEST for 192.168.10.200 from f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 18 14:55:08 linux1 dhcpd: DHCPACK on 192.168.10.200 to f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 ^C |
#tail -f /var/log/messages
Oct 18 14:48:39 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 18 14:48:39 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 18 14:50:08 linux1 dhcpd: DHCPREQUEST for 192.168.10.200 from f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 18 14:50:08 linux1 dhcpd: DHCPACK on 192.168.10.200 to f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 18 14:50:58 linux1 dhcpd: DHCPINFORM from 192.168.10.200 via eth0: not authoritative for subnet 192.168.10.0 Oct 18 14:51:01 linux1 dhcpd: DHCPINFORM from 192.168.10.200 via eth0: not authoritative for subnet 192.168.10.0 Oct 18 14:53:39 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 18 14:53:39 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 18 14:55:08 linux1 dhcpd: DHCPREQUEST for 192.168.10.200 from f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 18 14:55:08 linux1 dhcpd: DHCPACK on 192.168.10.200 to f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 ^C |
#tail -f /var/log/mail.log
Oct 18 14:56:47 linux1 sm-mta[7559]: p9IBujmo007559: from=<user@linux5.unix.nt>, size=2873, class=0, nrcpts=1, msgid=<000d01cc8d8d$02cc7280$08655780$@linux5.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=linux5.unix.nt [192.168.50.1] Oct 18 14:56:48 linux1 sm-mta[7563]: p9IBujmo007559: to=<user@linux1.unix.nt>, delay=00:00:02, xdelay=00:00:01, mailer=local, pri=33075, dsn=2.0.0, stat=Sent Oct 18 14:57:04 linux1 sm-mta[7557]: p9IBufoj007557: [192.168.10.200] did not issue MAIL/EXPN/VRFY/ETRN during connection to MSP-v4 Oct 18 14:57:17 linux1 sm-mta[7565]: p9IBvGEJ007565: from=<user@linux2.unix.nt>, size=1351, class=0, nrcpts=1, msgid=<50E44CA5664F45EDBB46BEF88A38E771@rf510>, proto=ESMTP, daemon=MTA-v4, relay=linux2.unix.nt [192.168.20.1] Oct 18 14:57:17 linux1 sm-mta[7566]: p9IBvGEJ007565: to=<user@linux1.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31552, dsn=2.0.0, stat=Sent Oct 18 14:57:54 linux1 in.qpopper[7569]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 18 14:57:54 linux1 in.qpopper[7569]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 18 14:57:54 linux1 in.qpopper[7569]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 18 14:57:54 linux1 in.qpopper[7569]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] Oct 18 14:58:09 linux1 sm-mta[7568]: p9IBvrYj007568: [192.168.10.200] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4 ... Oct 18 15:03:56 linux1 sm-mta[7633]: p9IC3nCg007626: to=<user@linux6.unix.nt>, ctladdr=<user@linux1.unix.nt> (1000/1000), delay=00:00:06, xdelay=00:00:01, mailer=esmtp, pri=305675, relay=linux6.unix.nt. [192.168.60.1], dsn=2.0.0, stat=Sent (p9IC3vow011057 Message accepted for delivery) Oct 18 15:03:57 linux1 sm-mta[7633]: p9IC3nCg007626: to=<user@linux7.unix.nt>, ctladdr=<user@linux1.unix.nt> (1000/1000), delay=00:00:07, xdelay=00:00:01, mailer=esmtp, pri=305675, relay=linux7.unix.nt. [192.168.70.1], dsn=2.0.0, stat=Sent (p9IC3sNr012031 Message accepted for delivery) Oct 18 15:03:58 linux1 sm-mta[7633]: p9IC3nCg007626: to=<user@linux8.unix.nt>, ctladdr=<user@linux1.unix.nt> (1000/1000), delay=00:00:08, xdelay=00:00:01, mailer=esmtp, pri=305675, relay=linux8.unix.nt. [192.168.80.1], dsn=2.0.0, stat=Sent (p9IC3t9A012380 Message accepted for delivery) Oct 18 15:06:40 linux1 sm-mta[7635]: p9IC6dJJ007635: from=<user@linux2.unix.nt>, size=6241513, class=0, nrcpts=1, msgid=<E185A3E822D341F8AE680E6A7A8A07B2@rf510>, proto=ESMTP, daemon=MTA-v4, relay=linux2.unix.nt [192.168.20.1] Oct 18 15:06:40 linux1 sm-mta[7637]: p9IC6dJJ007635: to=<user@linux1.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=6271714, dsn=2.0.0, stat=Sent Oct 18 15:07:04 linux1 in.qpopper[7639]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 18 15:07:04 linux1 in.qpopper[7639]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 18 15:07:04 linux1 in.qpopper[7639]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 18 15:07:04 linux1 in.qpopper[7639]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] ^C |
#tail -f /var/log/mail.log
Oct 18 14:56:47 linux1 sm-mta[7559]: p9IBujmo007559: from=<user@linux5.unix.nt>, size=2873, class=0, nrcpts=1, msgid=<000d01cc8d8d$02cc7280$08655780$@linux5.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=linux5.unix.nt [192.168.50.1] Oct 18 14:56:48 linux1 sm-mta[7563]: p9IBujmo007559: to=<user@linux1.unix.nt>, delay=00:00:02, xdelay=00:00:01, mailer=local, pri=33075, dsn=2.0.0, stat=Sent Oct 18 14:57:04 linux1 sm-mta[7557]: p9IBufoj007557: [192.168.10.200] did not issue MAIL/EXPN/VRFY/ETRN during connection to MSP-v4 Oct 18 14:57:17 linux1 sm-mta[7565]: p9IBvGEJ007565: from=<user@linux2.unix.nt>, size=1351, class=0, nrcpts=1, msgid=<50E44CA5664F45EDBB46BEF88A38E771@rf510>, proto=ESMTP, daemon=MTA-v4, relay=linux2.unix.nt [192.168.20.1] Oct 18 14:57:17 linux1 sm-mta[7566]: p9IBvGEJ007565: to=<user@linux1.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31552, dsn=2.0.0, stat=Sent Oct 18 14:57:54 linux1 in.qpopper[7569]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 18 14:57:54 linux1 in.qpopper[7569]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 18 14:57:54 linux1 in.qpopper[7569]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 18 14:57:54 linux1 in.qpopper[7569]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] Oct 18 14:58:09 linux1 sm-mta[7568]: p9IBvrYj007568: [192.168.10.200] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4 ... Oct 18 15:03:56 linux1 sm-mta[7633]: p9IC3nCg007626: to=<user@linux6.unix.nt>, ctladdr=<user@linux1.unix.nt> (1000/1000), delay=00:00:06, xdelay=00:00:01, mailer=esmtp, pri=305675, relay=linux6.unix.nt. [192.168.60.1], dsn=2.0.0, stat=Sent (p9IC3vow011057 Message accepted for delivery) Oct 18 15:03:57 linux1 sm-mta[7633]: p9IC3nCg007626: to=<user@linux7.unix.nt>, ctladdr=<user@linux1.unix.nt> (1000/1000), delay=00:00:07, xdelay=00:00:01, mailer=esmtp, pri=305675, relay=linux7.unix.nt. [192.168.70.1], dsn=2.0.0, stat=Sent (p9IC3sNr012031 Message accepted for delivery) Oct 18 15:03:58 linux1 sm-mta[7633]: p9IC3nCg007626: to=<user@linux8.unix.nt>, ctladdr=<user@linux1.unix.nt> (1000/1000), delay=00:00:08, xdelay=00:00:01, mailer=esmtp, pri=305675, relay=linux8.unix.nt. [192.168.80.1], dsn=2.0.0, stat=Sent (p9IC3t9A012380 Message accepted for delivery) Oct 18 15:06:40 linux1 sm-mta[7635]: p9IC6dJJ007635: from=<user@linux2.unix.nt>, size=6241513, class=0, nrcpts=1, msgid=<E185A3E822D341F8AE680E6A7A8A07B2@rf510>, proto=ESMTP, daemon=MTA-v4, relay=linux2.unix.nt [192.168.20.1] Oct 18 15:06:40 linux1 sm-mta[7637]: p9IC6dJJ007635: to=<user@linux1.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=6271714, dsn=2.0.0, stat=Sent Oct 18 15:07:04 linux1 in.qpopper[7639]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 18 15:07:04 linux1 in.qpopper[7639]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 18 15:07:04 linux1 in.qpopper[7639]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 18 15:07:04 linux1 in.qpopper[7639]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] ^C |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2251.29710.22117 2011-10-18 15:07:44.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-18 15:09:33.000000000 +0300 @@ -2,8 +2,8 @@ [local] -exten => 1101,1,Dial(SIP/${EXTEN}) -exten => 1102,1,Dial(SIP/${EXTEN}) +exten => 110X,1,Dial(SIP/${EXTEN},10) +exten => 110X,n,Voicemail(${EXTEN}@default) [national] exten => _12XX,1,Dial(SIP/lv/${EXTEN}) |
#vi voicemail.conf
|
#vi voicemail.conf
--- /tmp/l3-saved-2251.10235.25601 2011-10-18 15:09:46.000000000 +0300 +++ voicemail.conf 2011-10-18 15:13:12.000000000 +0300 @@ -328,7 +328,7 @@ [default] -1234 => 4242,Example Mailbox,root@localhost +;1234 => 4242,Example Mailbox,root@localhost ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central|maxmsg=10 ;4300 => 3456,Ben Rigas,ben@american-computer.net ;4310 => -5432,Sales,sales@marko.net @@ -336,6 +336,8 @@ ;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemail.|emailbody=Click on the attachment to listen. ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european +1101 => 1234,Test Test,user@linux1.unix.nt +1102 => 1234,Test Test,user@linux1.unix.nt ; |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER ... <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog '65a4b5165b4c9d142b2427225baf88f8@192.168.20.1' Method: REGISTER Really destroying SIP dialog '1222fb4d188757cf29425e4222a3e481@192.168.15.21' Method: REGISTER Really destroying SIP dialog '495978352b9e00030c855bc942ce2786@192.168.15.21' Method: REGISTER Really destroying SIP dialog '15b84e9a23b9d5af076d71a705c80818@192.168.15.21' Method: REGISTER linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER ... <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog '65a4b5165b4c9d142b2427225baf88f8@192.168.20.1' Method: REGISTER Really destroying SIP dialog '1222fb4d188757cf29425e4222a3e481@192.168.15.21' Method: REGISTER Really destroying SIP dialog '495978352b9e00030c855bc942ce2786@192.168.15.21' Method: REGISTER Really destroying SIP dialog '15b84e9a23b9d5af076d71a705c80818@192.168.15.21' Method: REGISTER linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[lv]
exten => 1199,1,Playback(demo-thanks) [default] [local] exten => 110X,1,Dial(SIP/${EXTEN},10) exten => 110X,n,Voicemail(${EXTEN}@default) [national] exten => _12XX,1,Dial(SIP/lv/${EXTEN}) [international] exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN}) exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN}) ... include => internal include => local [gr2] include => internal include => local include => national [gr3] include => internal include => local include => national |
#[lv]
[default] [local] exten => 110X,1,Dial(SIP/${EXTEN},10) exten => 110X,n,Voicemail(${EXTEN}@default) [national] exten => _12XX,1,Dial(SIP/lv/${EXTEN}) [international] exten => _2[1,2]XX,1,Dial(SIP/tbs/${EXTEN}) exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN}) exten => _31XX,1,Dial(SIP/msk/${EXTEN}) ... include => local [gr3] include => national include => internal include => international include => local include => national [gr4] include => international include => local |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... To: <sip:1101@192.168.10.1>;tag=as7b3aeacf From: "Test1000"<sip:1102@192.168.10.1>;tag=309cd91d Call-ID: ODk1MGExNzA1ZDdiZGRmNDExMzVhNzY3MTdiZjM2YmE. CSeq: 2 ACK Content-Length: 0 <-------------> --- (8 headers 0 lines) --- linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... To: <sip:1101@192.168.10.1>;tag=as7b3aeacf From: "Test1000"<sip:1102@192.168.10.1>;tag=309cd91d Call-ID: ODk1MGExNzA1ZDdiZGRmNDExMzVhNzY3MTdiZjM2YmE. CSeq: 2 ACK Content-Length: 0 <-------------> --- (8 headers 0 lines) --- linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 <--- SIP read from UDP:192.168.10.200:53558 ---> ... Supported: replaces, timer Expires: 120 Contact: <sip:kv@192.168.20.1>;expires=120 Date: Tue, 18 Oct 2011 12:17:11 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '65a4b5165b4c9d142b2427225baf88f8@192.168.20.1' in 32000 ms (Method: REGISTER) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 <--- SIP read from UDP:192.168.10.200:53558 ---> ... Supported: replaces, timer Expires: 120 Contact: <sip:kv@192.168.20.1>;expires=120 Date: Tue, 18 Oct 2011 12:17:11 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '65a4b5165b4c9d142b2427225baf88f8@192.168.20.1' in 32000 ms (Method: REGISTER) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-4474.30651.12263 2011-10-18 15:18:14.000000000 +0300 +++ extensions.conf 2011-10-18 15:18:20.000000000 +0300 @@ -2,8 +2,8 @@ [local] -exten => 110X,1,Dial(SIP/${EXTEN},10) -exten => 110X,n,Voicemail(${EXTEN}@default) +exten => 1101,1,Dial(SIP/${EXTEN},10) +exten => 1101,n,Voicemail(${EXTEN}@default) [national] exten => _12XX,1,Dial(SIP/lv/${EXTEN}) |
#vi extensions.conf
--- /tmp/l3-saved-4474.1260.23680 2011-10-18 15:19:28.000000000 +0300 +++ extensions.conf 2011-10-18 15:20:06.000000000 +0300 @@ -2,8 +2,8 @@ [local] -exten => 1101,1,Dial(SIP/${EXTEN},10) -exten => 1101,n,Voicemail(${EXTEN}@default) +exten => _110X,1,Dial(SIP/${EXTEN},10) +exten => _110X,n,Voicemail(${EXTEN}@default) [national] exten => _12XX,1,Dial(SIP/lv/${EXTEN}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> d ... Really destroying SIP dialog '401249972b1f8f032977d3b967e157a8@192.168.50.1' Method: REGISTER Really destroying SIP dialog '2db77a340eccd1661affedea13f4ad3e@192.168.50.1' Method: REGISTER Really destroying SIP dialog '65a4b5165b4c9d142b2427225baf88f8@192.168.20.1' Method: REGISTER Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER Really destroying SIP dialog '134503447f2e36112b575b9035d3a30e@192.168.15.27' Method: REGISTER <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> d ... Really destroying SIP dialog '401249972b1f8f032977d3b967e157a8@192.168.50.1' Method: REGISTER Really destroying SIP dialog '2db77a340eccd1661affedea13f4ad3e@192.168.50.1' Method: REGISTER Really destroying SIP dialog '65a4b5165b4c9d142b2427225baf88f8@192.168.20.1' Method: REGISTER Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER Really destroying SIP dialog '134503447f2e36112b575b9035d3a30e@192.168.15.27' Method: REGISTER <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
linux1
127.0.0.1 localhost 192.168.10.1 linux1.unix.nt linux1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
# /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: user
Время первой команды журнала | 13:16:33 2011-10-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:20:06 2011-10-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.06 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008