顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


主題 - kinux

頁: [1] 2 3
1
Linux 討論版 / sendmail log 的問題.
« 於: 2006-04-22 12:26 »
今天查sendmail log, 發現有這樣的幾行,
不明白為什麼會有size=0和 nrcpts=0這情況, 即然size=0, 那就是沒有內容的郵件, 收件者也是0, 那寄信那件事不就是不做了嗎?  cms@example.com 是公司郵件的用戶, 不是外來的用戶.
而且這個情況是不定時發生的,  自己對sendmail 不熟, 不知那位大大可以解釋一下, 謝謝.


Apr 19 10:30:56 cms sendmail[29815]: k3J2Uub7029815: from=<cms@example.com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 19 10:45:01 cms sendmail[29895]: k3J2j1b7029895: from=<cms@example.com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 21 01:04:35 cms sendmail[4314]: k3KH4Ob7004314: from=<cms@example.com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]

2
Linux 討論版 / 請教一下port forwarding的問題.
« 於: 2005-11-27 19:38 »
請教一下port forwarding的問題.

情形是這樣的, 公司有一台郵件服務器, 一直運作正常, 但最近發現在內地的同事經常不能收到郵件, ping, ssh郵件服務器都沒有問題, 但port 25, 110 不行, 好像被封了.
現在的想法是這樣的, 用ssh port forwarding, 自己在大陸內網的linux(redhat9)上用ssh連接郵件服務器, 之後在linux上做port forwarding, 在linux上是可以收到郵件, 可是客戶端用的是windows, 想問一下有什么方法可以把linux的port forwording做成是一個gateway, 使windows客戶端可以透過linux的port forwarding收郵件.  我知道在windows用putty登入到郵件服務器也可以收郵件, 但他們都不懂那些東西, 另外就是安全的考慮.  試過用iptables加prerouting不成功, 也許是自己對iptables不是很熟, 所以請教一下, 謝謝.

網絡圖:
http://img.villagephotos.com/p/2005-11/1112934/portforwarding.JPG[/img]

3
Linux 討論版 / ftp上載的時間不對?
« 於: 2005-10-26 20:58 »
請問一下, 偶用的是fc1, vsftpd, 最近發現ftp上載的時間不對?
系統設定的時間是對的.但就是upload之後的顯示的時間不對, 請問有什麼解決方法?  謝謝

4
LDAP 討論區 / ldap的問題..
« 於: 2004-03-23 05:40 »
我在freebsd上用ports安裝了openldap..
改了slapd.conf
suffix "dc=test,dc=example,dc=org"
rootdn "cn=Manager,dc=test,dc=example,dc=org"

之後運行
su root -c /usr/local/libexec/slapd

看到slapd是運行了..
# sockstat -4 | grep 389
root slapd 187 9 tcp4 *:389 *:*
# netstat -a | grep ldap
tcp4 0 0 *.ldap *.* LISTEN
tcp6 0 0 *.ldap *.* LISTEN

但是當用ldapsearch時就不行了..

# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
ldap_bind: Can't contact LDAP server (-1)

這是什么問題??

我是看這裡做的..
http://www.openldap.org/doc/admin22/quickstart.html

5
請問有沒有人在postfix上加spamassassin+clamav??
spamassassin 是加cdcc和razor2, 不是procmail..
效果怎麼样..

6
BSD 討論版 / 想在家裡架台server..
« 於: 2003-07-17 16:21 »
想在家裡架台server..

在家裡有一台pentium 133+32Ram,一台pII350 和一台PIII 700, 我想把我的pentium133 作一台firewall+nat, 這樣, 我就可以有pIII workstation, PII server, Pentium firewall. Firewall 和server是FreeBSD, PIII workstation 就不用說了...(windows)!!

不過, 有些問題想不通...

我用的是adsl, 是用dhcp派ip的(是由isp提供), 但要安裝pppoe才能上網.

1)我的firewall 應怎樣設置, 是用ppp.conf還是要在kernel 加option NETGRAPH 這些東東??

2)我不是常開著機,firewall拿到ip怎樣更新server..??

3)如果想有域名,要安裝什麼東東(可不可以)??

不知還有沒有其它的問題,請教一下..

謝謝!!

7
各位大大,

我在我的FreeBSD安裝了ipfw後, idle 大概2分鐘就断了連接, 這是為什么, 我沒有安裝ipfw前沒有這樣的問題...

add 00001 deny log ip from any to any ipopt rr
add 00002 deny log ip from any to any ipopt ts
add 00003 deny log ip from any to any ipopt ssrr
add 00004 deny log ip from any to any ipopt lsrr
add 00100 allow ip from any to any via lo0
add 00200 deny ip from any to 127.0.0.0/8
add 00300 check-state
add 00302 allow tcp from any to any out keep-state setup
#######tcp#########
add 10000 allow tcp from 192.168.2.19 to me 22 setup keep-state
add 10001 allow tcp from 192.168.4.0/24 to me 22 setup keep-state
add 10002 allow tcp from 192.168.2.0/18 to 192.168.2.10 22 setup keep-state
add 10003 allow tcp from 192.168.3.0/20 to 192.168.2.10 22 setup keep-state
add 10007 allow tcp from any to 192.168.2.10 80 setup keep-state
#allow DNS
add 20001 allow udp from any 53 to me in recv fxp0
add 20002 allow udp from any to 192.168.2.10 in recv fxp0
add 00400 allow udp from 192.168.2.10 53 to any in recv fxp0
add 29999 allow udp from any to any out
######icmp out allow going#############
add 00602 allow icmp from any to any icmptypes 8 out
add 00603 allow icmp from any to any icmptypes 0 in
######icmp allow traceroute#########
add 00604 allow icmp from any to any icmptypes 11 in
add 00605 allow icmp from me to any

%sysctl -a | grep 'dyn.*lifetime'
net.inet.ip.fw.dyn_ack_lifetime: 300
net.inet.ip.fw.dyn_syn_lifetime: 20
net.inet.ip.fw.dyn_fin_lifetime: 1
net.inet.ip.fw.dyn_rst_lifetime: 1
net.inet.ip.fw.dyn_udp_lifetime: 10
net.inet.ip.fw.dyn_short_lifetime: 5

8
奇怪, 我的apache不能自動up在reboot之後...

我巳把安裝完的startup scripts apache.sh 放在/usr/local/etc/rc.d裡, 而且是chmod
-rwxr-xr-x  1 root  wheel   307 Jun  9 21:11 apache.sh

%ps -aux | grep httpd | grep -v grep
%

9
BSD 討論版 / Vi in HyperTerminal
« 於: 2003-06-15 16:38 »
各位大大,

小弟發現在Windows 的Hyper Terminal 上不可以用vi , 請問有什麼方法...或是有什麼的代替軟體...

謝謝!

10
BSD 討論版 / ipfw 請教..
« 於: 2003-06-08 22:01 »
各位大大,

小弟有ipfw问題請教..

/etc/rc.conf
firewall_enable="YES"
firewall_script="/etc/rc.firewall"
firewall_type="/etc/ipfw.rules"
firewall_quiet="NO"
firewall_logging_enable="YES"

kernel config
options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE #enable logging to syslogd(8)
options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default

/etc/ipfw.rules
add 00001 deny log ip from any to any ipopt rr
add 00002 deny log ip from any to any ipopt ts
add 00003 deny log ip from any to any ipopt ssrr
add 00004 deny log ip from any to any ipopt lsrr
add 00100 0 0 allow ip from any to any via lo0
add 00200 0 0 deny ip from any to 127.0.0.0/8
add 00300 0 0 check-state
add 00301 0 0 deny tcp from any to any in established
add 00302 21 15144 allow tcp from any to any out keep-state setup
#######tcp#########
add 10000 allow tcp from 192.168.0.1 to 192.168.0.6 in
add 10007 allow tcp from any to 192.168.0.6 80 in
#allow DNS
add 20001 allow udp from any 53 to me in recv rl0
add 20002 allow udp from any to 192.168.0.6 in recv rl0
add 00400 allow udp from 192.168.0.6 53 to any in recv rl0
add 29999 allow udp from any to any out
######icmp#########
add 30000 allow icmp from any to any icmptypes 3,4
add 30001 allow icmp from any to any icmptypes 8 out
add 30002 allow icmp from any to any icmptypes 0,11 in
add 65535 deny ip from any to any

00001 0 0 deny log logamount 100 ip from any to any ipopt rr
00002 0 0 deny log logamount 100 ip from any to any ipopt ts
00003 0 0 deny log logamount 100 ip from any to any ipopt ssrr
00004 0 0 deny log logamount 100 ip from any to any ipopt lsrr
65535 1328 108641 allow ip from any to any

為什麼還有這句, 怎麼除去..
65535 1328 108641 allow ip from any to any

謝謝!

11
BSD 討論版 / 請問有關讀FreeBSD的資料..
« 於: 2003-05-15 16:12 »
各位大大,

你們好,  我有兩台安裝FreeBSD的機,有一台不能正常開機但硬碟沒問題..

我想拿到有問題硬碟上的資料, 我想把兩個硬碟連在一起, 讓沒問題的硬碟去讀有問題硬碟上的資料, 不知行不行..

請問有沒有什麼資料提供參考..

谢谢!!

12
BSD 討論版 / how to mount the hd at fixit..
« 於: 2003-05-14 08:10 »
hi all,

my freebsd box crashed while i try to config the remote console..
When i boot it with boot kernel, it bootup to the login screen, i try to login, after type root then type password, it stop there and no any response, i don't know why....

As i config the screen to the remote console, so the 10 second count down do not appear, also the com1 ports seems got problem, so i can see the screen just loading but no other response to keyboard...

i try to use boot kernel, it boot up but stop response when i type login name an password...

The only method seems need to use fixit floppy to have a try, but i can't mount the hard disk.

I try to use fixit floppy, but i don't know how to mount the harddisk..

Fixit#mount
/dev/md0c on / (ufs,local)
/dev/fd0 on /mnt2 (ufs,local,read-only)

Fixit#mount /dev/ad0s1a /mnt
mount: /dev/ad0s1a : no such file or directory..

Anyone know how to mount it..

Thanks..

13
hi all,

i config the serial console to my two freebsd box, they can connect through hyper teminal in windows, but how to connect two FreeBSD box with a serial (console) cable..??

i try to use

tip com1 it prompt
connected
then idle a long time...

======================================================================
my config

#cd /
#echo -P > boot.conf
#vi /etc/ttys
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyd0 "/usr/libexec/getty std.9600" vt100 on secure
ttyd1 "/usr/libexec/getty std.9600" dialup off secure
ttyd2 "/usr/libexec/getty std.9600" dialup off secure
ttyd3 "/usr/libexec/getty std.9600" dialup off secure

Both two FreeBSD boxes are change to that form..

But they can not get the console screen of the other side...

14
BSD 討論版 / Unknow process?? HELP!!
« 於: 2003-04-22 16:15 »
hi all,

i installed FreeBSD 5.0, i found some unknows process.. any one can explain them??

thx

root       12  0.0  0.0     0   12  ??  WL    1Jan70  27:45.58  (swi6: tty:sio clock)
root       14  0.0  0.0     0   12  ??  WL    1Jan70   0:27.02  (swi1: net)
root        2  0.0  0.0     0   12  ??  DL    1Jan70   1:22.45  (g_event)
root        3  0.0  0.0     0   12  ??  DL    1Jan70   1:22.23  (g_up)
root        4  0.0  0.0     0   12  ??  DL    1Jan70   1:40.87  (g_down)
root       15  0.0  0.0     0   12  ??  DL    1Jan70   1:30.52  (random)
root       19  0.0  0.0     0   12  ??  WL    1Jan70   0:00.00  (swi5: acpitaskq)
root        5  0.0  0.0     0   12  ??  IL    1Jan70   0:00.00  (acpi_task0)
root        6  0.0  0.0     0   12  ??  IL    1Jan70   0:00.00  (acpi_task1)
root        7  0.0  0.0     0   12  ??  IL    1Jan70   0:00.00  (acpi_task2)
root       22  0.0  0.0     0   12  ??  WL    1Jan70   0:34.30  (irq5: fxp0)
root       23  0.0  0.0     0   12  ??  WL    1Jan70   0:27.20  (irq14: ata0)
root       27  0.0  0.0     0   12  ??  WL    1Jan70   0:00.00  (swi0: tty:sio)
root        8  0.0  0.0     0   12  ??  DL    1Jan70   0:02.06  (pagedaemon)
root        9  0.0  0.0     0   12  ??  DL    1Jan70   0:00.00  (vmdaemon)
root       32  0.0  0.0     0   12  ??  DL    1Jan70   0:57.39  (pagezero)
root       33  0.0  0.0     0   12  ??  DL    1Jan70   0:08.19  (bufdaemon)
root       34  0.0  0.0     0   12  ??  DL    1Jan70   8:08.51  (syncer)
root       35  0.0  0.0     0   12  ??  DL    1Jan70   0:21.76  (vnlru)
root       36  0.0  0.0     0   12  ??  IL    1Jan70   0:00.00  (nfsiod 0)
root       37  0.0  0.0     0   12  ??  IL    1Jan70   0:00.00  (nfsiod 1)
root       38  0.0  0.0     0   12  ??  IL    1Jan70   0:00.00  (nfsiod 2)
root       39  0.0  0.0     0   12  ??  IL    1Jan70   0:00.00  (nfsiod 3)

15
hi all,

i don't any one have this kind of experience..

i install 4.7 R for a new server, then install cvsup-without-gui to update ports and source code...

1. cd /usr/src
2. make buildworld
3. make buildkernel
4. make installkernel
5. make world
6. reboot
7. uname -a
FreeBSD test 4.8-STABLE FreeBSD 4.8-STABLE #0: Fri Apr 18 20:10:48 HKT 2003 noc@test:/usr/obj/usr/src/sys/GENERIC i386
8. reboot
9. login
10. ps
it give something like "_kmemstatistics _bucket _zlist chunk...."
top also the same

Then i use cvsup update again and make world , the problem solved...

But WHy????

16
BSD 討論版 / about remove sendmail from make.conf???
« 於: 2003-04-08 07:20 »
hi 大大,

i found someone say if i need to remove sendmail and bind from my freebsd box permanently, i need to copy the make.conf from /etc/defaults/make.conf to /etc, then edit that file, i want to know how can i edit that file, and what can i do will make this remove work on my freebsd box?? ( i am using FreeBSD-R4.7, it seems different from 5.0)

Also, what file need to remove from any directory...


thx

17
BSD 討論版 / about dns
« 於: 2003-02-03 04:01 »
hi all,

As freebsd default installed Bind8 for name server, but i want to change to Bind9, i haven't installed Bind8, i don't want to installed Bind8 and then upgrade to Bind9, i want to install Bind9 to my FB box directly,  How to do so...

18
BSD 討論版 / about this site
« 於: 2003-01-30 12:59 »
i try several times , it always display like this...
This time i come here from IP

Problem Report
 The system detected a DNS Server Failure while attempting to retrieve the URL: http://phorum.study-area.org/.
 
Message ID
 DNS_SERVER_FAILURE
 
Problem Description
 DNS server failure encountered for host 'phorum.study-area.org'.
 
Possible Problem Cause
 The DNS server is temporarily unavailable, or the network is experiencing transient data loss.
 
Possible Solution
 Try again at a later time.

19
BSD 討論版 / something make people hate linux
« 於: 2003-01-28 08:07 »
hi all,

as title... look at following....( I hate linux...rubbish...)

from here..  http://www.osnews.com/story.php?news_id=2650

   FreeBSD: a Victim of Isolation and Linux's Hype?
  By Eugenia Loli-Queru - Posted on 2003-01-25 02:22:48
It's been a week since FreeBSD 5.0 got released. Many argue that this release is the most important and most technically advanced, ever, for FreeBSD. I am truly disapointed though on the way the media have responded to this release.
Except the *BSD news sites, OSNews, Slashdot, a few Mac news sites (mostly because of the OSX-BSD connection) and a small number of Linux news sites, none of the big "pro" news sites reported on the release. It was a negative surprise to not see eWeek or ZDNews and News.com report on the release. BusinessWeek, InfoWorld and the rest of the "high-end pro" news sites didn't report about it either.

This situation really saddens me, and I am not particularly a FreeBSD user (I don't claim to reboot to it more than once or twice a month on my personal box - however our home router/server box does run happily FreeBSD). But no matter how I look at it, this release was really important, FreeBSD 5.0 features SMP and MT technology not found on other OSes.

Instead, we see Linux making headlines for every little thing that's happening to it. And if you think that "FreeBSD is not as popular", then think again. FreeBSD is as important as other Unices out there, which do make headlines from time to time, plus it has more userbase/installbase than Lindows, Lycoris (and even BeOS back in the day). Heck, even Bitstream donating 10 puny fonts made headlines around the web, while the 5.0 release didn't.

The difference here is the PR/marketing people. There is no doubt in my mind that the news regarding FreeBSD should have been big on all these tech sites, just because FreeBSD does have the required installbase to look important. The problem, I believe, does not only lie in the editors of these news sites who aren't able to distinguish the important news from hype. The blame is also on the FreeBSD project which didn't release a registered press release via newswire. At least I didn't see one (no, this is not a PR). Even the KDE, Gnome and other OSS projects have "PR people" who roll out press releases. In fact, KDE is issuing press releases even for betas, because this greatly help with the project looking responsible to the media and to its users.

I remember that in the past the FreeBSD project had a warmer reception from the media, I believe that the project needs to work on their communication skills a bit. The fact that "people work for free, for fun" doesn't excuse the fact that they could do better and ask for some exposure. More exposure, means more users and developers, which eventually means more life and evolution for the project itself (more explanation here regarding this).

Since Jordan Hubbard left to work for Apple, the project seems to many people a bit isolated. FreeBSD has lost its "leader" and its main spokeperson. I believe that this is also one of the reasons behind this "black out of FreeBSD news".

No, FreeBSD is not dead (TM). It just needs to work on its communication skills and get the word out. And of course, it also needs to overturn somehow the whole Linux hype engine, which could be blocking it from "looking as important" in the eyes of the net population. And these editors at these news sites, should re-evaluate as to "what sells and what not".

20
BSD 討論版 / 好慢呀!!等~~~~
« 於: 2002-10-31 13:20 »
hi, all ,

i am in hong kong..

very slow connection to your server.....

tracert
C:\>tracert www.study-area.org

Tracing route to study-area.ks.edu.tw [163.16.1.199]
over a maximum of 30 hops:

  1    21 ms    10 ms    20 ms  pcd-hhm6-1-rx.netvigator.com [203.218.104.254]
  2    20 ms    20 ms    20 ms  pcd042146.netvigator.com [203.198.14.146]
  3    20 ms    20 ms    10 ms  hhtr7009.netvigator.com [203.198.23.240]
  4    20 ms    10 ms    20 ms  hhtr7091.netvigator.com [203.198.23.239]
  5    10 ms    20 ms    20 ms  atm-2-0.2-cr01.hkg01.pccwbtn.net [63.218.1.1]
  6    20 ms    20 ms    20 ms  202.83.192.117
  7    20 ms    20 ms    20 ms  202.83.192.2
  8    70 ms    70 ms    70 ms  202.83.192.94
  9    70 ms    70 ms    60 ms  211.78.150.65
 10    80 ms    70 ms    70 ms  211.78.150.26
 11    70 ms    70 ms    80 ms  211.78.154.43
 12     *        *        *     Request timed out.
 13    40 ms    50 ms    40 ms  140.117.250.254
 14  1172 ms  1141 ms     *     140.117.252.253
 15   270 ms   240 ms   241 ms  192.83.196.92
 16   691 ms   671 ms     *     163.16.2.1
 17     *        *        *     Request timed out.
 18     *     1202 ms     *     163.16.1.199
 19  1152 ms  1161 ms     *     163.16.1.199
 20     *        *        *     Request timed out.
 21     *     1152 ms  1081 ms  163.16.1.199

Trace complete.

21
程式討論版 / perl help???
« 於: 2002-10-31 12:10 »
hi all,

As i am a newbie for programming, i just want to learn something about how to admin my system with perl which make me have a good administration for my system.

any comment??

thx :-?

22
BSD 討論版 / about tar
« 於: 2002-10-31 12:08 »
hi, all,

I don't know anyone have this kind of experience.

For my former linux rh7.2 server , i use tar to backup my documents, then i move them all to my new freebsd-4.7 box, as i try to use tar xvf to untar the backup, they don't work..

But i try to untar the backup on a Solaris8, it works..

Following are the error messages prompted on freebsd...

$ tar xvf bkwww.tar
bkwww/
bkwww/html/
bkwww/html/poweredby.png
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
bkwww/html/usage/usage_200207.html
bkwww/html/usage/ctry_usage_200207.png
tar: Skipping to next header
tar: Error exit delayed from previous errors


thx

 :-?

23
BSD 討論版 / help!! DJBDNS
« 於: 2002-10-15 02:51 »
hi all,

i want to know anyone use DJBDNS, how to configure it?

thx :roll:

24
BSD 討論版 / 請問custom安裝Freebsd
« 於: 2002-10-11 20:18 »
各位大大,

請問custom安裝Freebsd, 有什麼東西是必須要安裝上去的???

25
BSD 討論版 / how to get the bugs update from freebsd
« 於: 2002-09-24 09:35 »
hi, all,

As i found some friend in this forum always post about the bugs updated from freebsd, but i want to know how they can know the bugs update from freebsd??

Is there any method for me to get the bugs update from freebsd, as you know, always to keep your freebsd bugs be fixed is very important for any FB servers.

Anyone can tell me, thanks very much!!!

^-^!!

27
Linux 討論版 / mail problem
« 於: 2002-09-03 11:47 »
hi,

在我安裝postfix+openwebmail的時候, 一直是運作, 沒有什麼問題.
今天我發現我的mail server 只能send, 不能收.
我check maillog 說Name service error, 但我的Name server 一直沒有更改過任何東西.......
不知道什麼問題?????/ :evil:

Sep  3 10:34:11 rh72 postfix/smtp[20854]: E1B7314F1F: to=, relay=none, delay=247024, status=deferred (Name service error for mail.xxxxxxxxxx.com: Host not found, try again)
Sep  3 10:34:11 rh72 postfix/smtp[20855]: 0B56814F1E: to=, relay=none, delay=3767, status=deferred (Name service error for mail.xxxxxxxxxxxxx.com: Host not found, try again)

28
BSD 討論版 / about web download
« 於: 2002-09-02 15:32 »
Hi, all,

i give some document for download on my linux, it can download by click the link only, it i can't use flashget download it, what's happen??

thx :P  :P

29
BSD 討論版 / about cvsup
« 於: 2002-09-02 14:48 »
Hi, all,

I have installed cvsup-without-gui on my freebsd box, i try to run it and work,  also, i add it in crontab to update port every Sunday night and sendmail to me after updated.  But ports updated do not send mail to root.
Any comment???

 :evil:
# Run cvsup every Friday night at 10:00 pm.
0  22  *  *  5  root  /usr/local/bin/cvsrun | sendmail root

30
BSD 討論版 / about command "pg"
« 於: 2002-08-19 21:47 »
i want to know is there have a command "pg" in freebsd.
As i tried but not found.  Or there is another command instead of it....

thx :)

頁: [1] 2 3