Re: lug-bg: freebsd
- Subject: Re: lug-bg: freebsd
- From: mano@xxxxxxxxxxxxx
- Date: Thu, 15 Jul 2004 18:17:18 +0300 (EEST)
- Importance: Normal
>
> Едно от първите неща, които трябва да направиш, е да ни дадеш малко
> повече информация :)
>
> uname -a
[18:12][root@ns:/]$ # uname -a
FreeBSD ns.pazardjik.com 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Fri Nov 21
22:56:12 EET 2003 root@xxxxxxxxxxxxxxxx:/usr/src/sys/i386/compile/mano
i386
> ls -l /var/db/pkg
[18:12][root@ns:/]$ # ls -l /var/db/pkg
total 148
drwxr-xr-x 2 root wheel 512 Nov 22 2003 apache-1.3.29_1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bash-2.05b.007
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bind9-9.2.3
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bison-1.75_1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-Archive-Tar-1.07
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-CPAN-1.76
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-Compress-Zlib-1.31
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-Digest-MD5-2.30
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-File-Spec-0.86
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-Net-Telnet-3.03
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-Term-ReadLine-Perl-1.0203
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-TermReadKey-2.21
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-Test-Harness-2.36
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-Test-Simple-0.47
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-URI-1.27
drwxr-xr-x 2 root wheel 512 Nov 22 2003 bsdpan-libwww-perl-5.76
drwxr-xr-x 2 root wheel 512 Nov 22 2003 cclient-2002d,1
drwxr-xr-x 2 root wheel 512 Feb 4 2003 curl-7.10.7
drwxr-xr-x 2 root wheel 512 Nov 22 2003 expat-1.95.6_1
drwxr-xr-x 2 root wheel 512 Nov 23 2003 freetype2-2.1.5_1
drwxr-xr-x 2 root wheel 512 Nov 23 2003 gd-2.0.15_1,1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 gettext-0.12.1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 glib-2.2.3
drwxr-xr-x 2 root wheel 512 Nov 22 2003 gmake-3.80_1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 imap-uw-2002d,1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 ispell-3.2.06_3
drwxr-xr-x 2 root wheel 512 Nov 23 2003 jpeg-6b_1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 libiconv-1.9.1_3
drwxr-xr-x 2 root wheel 512 Nov 22 2003 libslang-1.4.9
drwxr-xr-x 2 root wheel 512 Nov 22 2003 libtool-1.3.5_1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 links-0.98,1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 lynx-2.8.4.1d
drwxr-xr-x 2 root wheel 512 Nov 22 2003 m4-1.4_1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 mailscanner-4.24.5
drwxr-xr-x 2 root wheel 512 Nov 22 2003 mc-4.6.0_6
drwxr-xr-x 2 root wheel 512 Nov 23 2003 mrtg-2.10.5_1,1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 mysql-client-4.0.16
drwxr-xr-x 2 root wheel 512 Nov 22 2003 ncftp-3.1.5_2
drwxr-xr-x 2 root wheel 512 Feb 16 13:01 ntp-4.2.0
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Authen-SASL-2.06
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Convert-TNEF-0.17
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Digest-HMAC-1.01
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Digest-Nilsimsa-0.06
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Digest-SHA1-2.06
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-File-Temp-0.12_1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-HTML-Parser-3.34
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-HTML-Tagset-3.03
drwxr-xr-x 2 root wheel 512 Nov 23 2003 p5-IO-INET6-1.28
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-IO-stringy-2.108
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-MIME-Base64-2.21
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-MIME-Tools-5.411a_3,1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Mail-SpamAssassin-2.60
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Mail-Tools-1.60
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Net-1.17,1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Net-DNS-0.42
drwxr-xr-x 2 root wheel 512 Nov 23 2003 p5-SNMP_Session-0.98
drwxr-xr-x 2 root wheel 512 Nov 23 2003 p5-Socket6-0.10
drwxr-xr-x 2 root wheel 512 Nov 22 2003 p5-Time-HiRes-1.51,1
drwxr-xr-x 2 root wheel 512 Nov 22 2003 perl-5.6.1_13
drwxr-xr-x 2 root wheel 512 Nov 22 2003 php4-4.3.4_2
drwxr-xr-x 2 root wheel 512 Nov 22 2003 pico-4.58
drwxr-xr-x 2 root wheel 512 Nov 24 2003 pine-4.58
drwxr-xr-x 2 root wheel 512 Nov 22 2003 pkgconfig-0.15.0
drwxr-xr-x 2 root wheel 512 Nov 23 2003 png-1.2.5_2
drwxr-xr-x 2 root wheel 512 Nov 22 2003 poppwd-1.0
drwxr-xr-x 2 root wheel 512 Dec 4 2003 proftpd-1.2.9
drwxr-xr-x 2 root wheel 512 Nov 22 2003 razor-agents-2.36_2
drwxr-xr-x 2 root wheel 512 Dec 4 2003 rc_subr-1.16
drwxr-xr-x 2 root wheel 512 Nov 22 2003 sendmail-8.12.10
drwxr-xr-x 2 root wheel 512 Nov 22 2003 squirrelmail-1.4.2
drwxr-xr-x 2 root wheel 512 Nov 22 2003 sudo-1.6.7.5
drwxr-xr-x 2 root wheel 512 Nov 22 2003 unzip-5.50_2
drwxr-xr-x 2 root wheel 512 Nov 22 2003 wget-1.8.2_5
drwxr-xr-x 2 root wheel 512 Nov 22 2003 zziplib-0.10.82
> ifconfig -l
[18:12][root@ns:/]$ # ifconfig -l
rl0 lo0
> ifconfig -a
[18:14][root@ns:/]$ # ifconfig -a
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 213.145.125.2 netmask 0xffffff80 broadcast 213.145.125.127
inet6 fe80::4e00:10ff:fe3b:ace9%rl0 prefixlen 64 scopeid 0x1
ether 4c:00:10:3b:ac:e9
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
Kartata beshe xl0 3Com XL10 no ia smenih shtoto si misleh da ne e ot neia.
> ipfw list
[18:14][root@ns:/]$ # ipfw list
00001 allow tcp from any to 213.145.125.2 dst-port 80 in
00002 allow tcp from 213.145.125.1 to 213.145.125.2 in
00010 allow tcp from 213.145.125.12 to 213.145.125.2 dst-port 22 in
00011 allow tcp from 213.145.125.1 to 213.145.125.2 dst-port 22 in
00012 allow tcp from 213.145.125.45 to 213.145.125.2 dst-port 22 in
00013 allow tcp from 213.145.125.63 to 213.145.125.2 dst-port 22 in
00014 allow tcp from 213.145.125.75 to 213.145.125.2 dst-port 22 in
00020 allow tcp from 213.145.125.0/24 to 213.145.125.2 dst-port 110 in
00021 allow tcp from 213.145.121.0/24 to 213.145.125.2 dst-port 110 in
00022 allow tcp from 212.116.159.96/27 to 213.145.125.2 dst-port 110 in
00023 allow tcp from 195.24.60.0/24 to 213.145.125.2 dst-port 110 in
00024 allow tcp from 82.147.148.0/24 to 213.145.125.2 dst-port 110 in
00030 allow tcp from any to 213.145.125.2 dst-port 53 in
00031 allow udp from any to 213.145.125.2 dst-port 53 in
00040 allow tcp from 212.116.159.99 to 213.145.125.2 in
00041 allow udp from 212.116.159.99 to 213.145.125.2 in
00042 allow tcp from 212.116.128.2 to 213.145.125.2 in
00043 allow udp from 212.116.128.2 to 213.145.125.2 in
00044 allow tcp from 212.116.136.2 to 213.145.125.2 in
00045 allow udp from 212.116.136.2 to 213.145.125.2 in
00046 allow tcp from 212.116.159.121 to 213.145.125.2 in
00047 allow udp from 212.116.159.121 to 213.145.125.2 in
00048 allow tcp from 213.145.125.75 to 213.145.125.2 in
00049 allow udp from 213.145.125.75 to 213.145.125.2 in
00050 allow tcp from 213.145.125.90 to 213.145.125.2 in
00051 allow udp from 213.145.125.90 to 213.145.125.2 in
00052 allow tcp from any to 213.145.125.2 dst-port 25 in
00053 allow udp from any to 213.145.125.2 dst-port 25 in
00060 allow tcp from 213.145.125.12 to 213.145.125.2 dst-port 20-21 in
00061 allow tcp from 213.145.125.120 to 213.145.125.2 dst-port 20-21 in
00062 allow tcp from 213.145.125.63 to 213.145.125.2 dst-port 20-21 in
00063 allow tcp from 213.145.125.75 to 213.145.125.2 dst-port 20-21 in
00064 allow tcp from 212.116.159.120 to 213.145.125.2 dst-port 20-21 in
00065 allow tcp from 213.145.125.45 to 213.145.125.2 dst-port 20-21 in
00070 allow tcp from 195.24.60.0/24 to 213.145.125.2 dst-port 143 in
65000 allow ip from any to any
65535 deny ip from any to any
> ps awwwfux
[18:15][root@ns:/]$ # ps awwwfux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 11 92.0 0.0 0 12 ?? RL 9:59AM 480:51.02 (idle)
root 10 0.0 0.0 0 12 ?? DL 9:59AM 0:00.00 (ktrace)
root 1 0.0 0.0 740 84 ?? ILs 9:59AM 0:00.04 /sbin/init --
root 12 0.0 0.0 0 12 ?? WL 9:59AM 0:12.96 (swi1: net)
root 13 0.0 0.0 0 12 ?? WL 9:59AM 0:32.74 (swi7:
tty:sio clock)
root 2 0.0 0.0 0 12 ?? DL 9:59AM 0:02.12 (g_event)
root 3 0.0 0.0 0 12 ?? DL 9:59AM 0:02.70 (g_up)
root 4 0.0 0.0 0 12 ?? DL 9:59AM 0:03.90 (g_down)
root 15 0.0 0.0 0 12 ?? DL 9:59AM 0:04.39 (random)
root 21 0.0 0.0 0 12 ?? WL 9:59AM 0:02.62 (irq14: ata0)
root 24 0.0 0.0 0 12 ?? DL 9:59AM 0:00.00 (usb0)
root 25 0.0 0.0 0 12 ?? DL 9:59AM 0:00.00 (usbtask)
root 26 0.0 0.0 0 12 ?? WL 9:59AM 0:08.91 (irq11: rl0)
root 27 0.0 0.0 0 12 ?? WL 9:59AM 0:00.56 (irq1: atkbd0)
root 5 0.0 0.0 0 12 ?? DL 9:59AM 0:03.68 (pagedaemon)
root 6 0.0 0.0 0 12 ?? DL 9:59AM 0:00.94 (vmdaemon)
root 7 0.0 0.0 0 12 ?? DL 9:59AM 0:14.80 (pagezero)
root 8 0.0 0.0 0 12 ?? DL 9:59AM 0:00.24 (bufdaemon)
root 9 0.0 0.0 0 12 ?? DL 9:59AM 0:07.75 (syncer)
root 33 0.0 0.0 0 12 ?? DL 9:59AM 0:00.16 (vnlru)
root 34 0.0 0.0 0 12 ?? IL 9:59AM 0:00.00 (nfsiod 0)
root 35 0.0 0.0 0 12 ?? IL 9:59AM 0:00.00 (nfsiod 1)
root 36 0.0 0.0 0 12 ?? IL 9:59AM 0:00.00 (nfsiod 2)
root 37 0.0 0.0 0 12 ?? IL 9:59AM 0:00.00 (nfsiod 3)
root 127 0.0 0.0 228 0 ?? IWs - 0:00.00 adjkerntz -i
root 241 0.0 0.1 1276 336 ?? Ss 9:59AM 0:00.92
/usr/sbin/syslogd -s
root 346 0.0 0.0 1196 76 ?? Is 9:59AM 0:00.08 /usr/sbin/usbd
root 393 0.0 0.3 3444 772 ?? Is 9:59AM 0:00.75 /usr/sbin/sshd
root 417 0.0 0.1 1296 188 ?? Is 9:59AM 0:00.28 /usr/sbin/cron
root 433 0.0 0.4 6728 1064 ?? Ss 9:59AM 0:01.78
/usr/local/sbin/httpd
www 478 0.0 3.2 12144 8272 ?? I 9:59AM 0:11.45
/usr/local/sbin/httpd
www 479 0.0 2.2 11992 5620 ?? I 9:59AM 0:09.56
/usr/local/sbin/httpd
www 480 0.0 1.0 11744 2584 ?? I 9:59AM 0:10.85
/usr/local/sbin/httpd
www 481 0.0 0.9 11844 2384 ?? I 9:59AM 0:04.95
/usr/local/sbin/httpd
www 482 0.0 3.0 12748 7600 ?? I 9:59AM 0:15.11
/usr/local/sbin/httpd
root 484 0.0 0.0 10308 0 ?? IWs - 0:00.00 /usr/bin/perl
-I/usr/local/lib/MailScanner /usr/local/libexec/MailScanner/MailScanner
/usr/local/etc/MailScanner/MailScanner.conf
www 524 0.0 0.7 12636 1716 ?? I 10:01AM 0:08.40
/usr/local/sbin/httpd
root 525 0.0 0.3 2176 848 ?? Ss 10:01AM 0:02.03 sendmail:
accepting connections (sendmail)
root 528 0.0 0.3 2172 716 ?? Is 10:01AM 0:00.17 sendmail:
Queue runner@00:05:00 for /var/spool/mqueue (sendmail)
smmsp 532 0.0 0.3 2024 708 ?? Is 10:01AM 0:00.17 sendmail:
Queue runner@00:05:00 for /var/spool/clientmqueue (sendmail)
root 543 0.0 0.0 20676 0 ?? IWs - 0:00.00
/usr/local/bin/spamd -a -c -d (perl)
root 580 0.0 0.1 1376 148 ?? Is 10:01AM 0:00.07
/usr/sbin/inetd -wW
root 592 0.0 0.0 1596 0 v0 IWs - 0:00.00 login [pam]
(login)
root 593 0.0 0.0 1596 0 v1 IWs - 0:00.00 login [pam]
(login)
root 594 0.0 0.0 1236 0 v2 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv2
root 595 0.0 0.0 1236 0 v3 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv3
root 596 0.0 0.0 1236 0 v4 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv4
root 597 0.0 0.0 1236 0 v5 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv5
root 598 0.0 0.0 1236 0 v6 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv6
root 599 0.0 0.0 1236 0 v7 IWs+ - 0:00.00
/usr/libexec/getty Pc ttyv7
www 750 0.0 3.5 12820 9008 ?? I 10:13AM 0:10.18
/usr/local/sbin/httpd
www 752 0.0 2.6 10708 6732 ?? I 10:13AM 0:03.39
/usr/local/sbin/httpd
root 841 0.0 0.0 1324 0 v0 IW+ - 0:00.00 -bash (bash)
www 1503 0.0 3.1 11760 7848 ?? S 11:42AM 0:02.65
/usr/local/sbin/httpd
www 1504 0.0 1.0 8888 2652 ?? I 11:43AM 0:01.56
/usr/local/sbin/httpd
root 2607 0.0 8.3 28356 21112 ?? S 2:55PM 0:12.83
/usr/bin/perl -I/usr/local/lib/MailScanner
/usr/local/libexec/MailScanner/MailScanner
/usr/local/etc/MailScanner/MailScanner.conf
root 2613 0.0 8.7 28432 22264 ?? S 2:55PM 0:15.33
/usr/bin/perl -I/usr/local/lib/MailScanner
/usr/local/libexec/MailScanner/MailScanner
/usr/local/etc/MailScanner/MailScanner.conf
root 2628 0.0 9.4 28580 24160 ?? S 2:57PM 0:37.87
/usr/bin/perl -I/usr/local/lib/MailScanner
/usr/local/libexec/MailScanner/MailScanner
/usr/local/etc/MailScanner/MailScanner.conf
root 2707 0.0 9.2 28228 23652 ?? S 3:02PM 0:11.64
/usr/bin/perl -I/usr/local/lib/MailScanner
/usr/local/libexec/MailScanner/MailScanner
/usr/local/etc/MailScanner/MailScanner.conf
root 2904 0.4 9.5 28484 24396 ?? S 3:31PM 0:11.80
/usr/bin/perl -I/usr/local/lib/MailScanner
/usr/local/libexec/MailScanner/MailScanner
/usr/local/etc/MailScanner/MailScanner.conf
root 3191 0.0 0.0 2460 0 ?? IW - 0:00.00 sendmail:
i6FDRv0U003191 n18.grp.scd.yahoo.com [66.218.66.73]: DATA (sendmail)
root 3230 0.0 0.0 2348 0 ?? IW - 0:00.00 sendmail:
i6FDUN0U003230 hosting.bol.bg [193.200.15.135]: DATA (sendmail)
root 3249 0.0 0.0 2264 0 ?? IW - 0:00.00 sendmail:
i6FDWZ0U003249 [213.145.116.13]: DATA (sendmail)
root 3285 0.0 0.0 2264 0 ?? IW - 0:00.00 sendmail:
i6FDaf0U003285 [213.145.116.13]: DATA (sendmail)
root 3395 0.0 0.1 2264 292 ?? I 4:57PM 0:00.17 sendmail:
i6FDvc0U003395 [213.145.116.13]: DATA (sendmail)
root 3440 0.0 0.0 1324 0 v1 IW - 0:00.00 -bash (bash)
root 3446 0.0 0.1 2332 292 ?? I 5:04PM 0:00.05 sendmail:
i6FE4l0U003446 mx3.mobikom.bg [212.5.129.1]: DATA (sendmail)
root 3509 0.0 0.1 2348 292 ?? I 5:08PM 0:00.12 sendmail:
i6FE8w0U003509 ns.ava-bg.com [212.36.19.8]: DATA (sendmail)
root 3634 0.0 0.1 2296 292 ?? I 5:11PM 0:01.90 sendmail:
i6FEBi0W003634 [213.145.116.13]: DATA (sendmail)
root 3659 0.0 0.1 2264 292 ?? I 5:13PM 0:00.15 sendmail:
i6FEDd0U003659 [213.145.116.13]: DATA (sendmail)
root 3673 0.0 0.1 2264 292 ?? I 5:13PM 0:01.08 sendmail:
i6FEDu0U003673 [213.145.116.13]: DATA (sendmail)
root 4130 0.0 0.0 2332 0 ?? IW - 0:00.00 sendmail:
server mx3.mobikom.bg [212.5.129.1] cmd read (sendmail)
root 4189 0.0 0.0 2348 0 ?? IW - 0:00.00 sendmail:
i6FEWP0U004189 [217.220.166.98]: DATA (sendmail)
root 4190 0.0 0.0 2348 0 ?? IW - 0:00.00 sendmail:
i6FEWY0U004190 hosting.bol.bg [193.200.15.135]: DATA (sendmail)
root 4262 0.0 0.0 2332 0 ?? IW - 0:00.00 sendmail:
i6FEe40U004262 smtp116.jobsender.com [69.8.178.216]: DATA (sendmail)
root 4304 0.0 0.0 2348 0 ?? IW - 0:00.00 sendmail:
i6FEfF0U004304 smtp105.jobsender.com [69.8.178.205]: DATA (sendmail)
root 4346 0.0 0.0 3352 0 v1 IW+ - 0:00.00 ssh
213.145.125.1
root 4479 0.0 0.0 2332 0 ?? IW - 0:00.00 sendmail:
i6FEom0U004479 smtp114.jobsender.com [69.8.178.214]: DATA (sendmail)
root 4487 0.0 0.8 6160 1920 ?? Ss 5:50PM 0:00.28 sshd:
root@ttyp0 (sshd)
root 4490 0.0 0.3 1324 788 p0 Ss 5:51PM 0:00.12 -bash (bash)
root 4757 0.0 0.7 2348 1804 ?? I 5:57PM 0:00.17 sendmail:
server hosting.bol.bg [193.200.15.135] cmd read (sendmail)
root 0 0.0 0.0 0 4 ?? DLs 9:59AM 0:00.08 (swapper)
root 5110 0.0 0.1 712 300 p0 R+ 6:15PM 0:00.00 ps awwwfux
Tuka e strashno :)
>
> Пък след това може би вече ще можем и да ти кажем нещо :)
>
> Между другото, може да засилваш такива въпроси към
> freensd-users@xxxxxxxxxxxxxx, макар че очевидно може и тук.
>
> Поздрави,
> Петър
>
> --
> Peter Pentchev roam@xxxxxxxxxxx roam@xxxxxxxx roam@xxxxxxxxxxx
> PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
> Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
> Hey, out there - is it *you* reading me, or is it someone else?
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|