Kuye 发表于 2004-2-26 09:29:11

靠,服务器有开节能的吗?,把显示器音箱关了 OK 了,主机不要关。

tyfrlj 发表于 2004-2-26 09:39:15

动态域名的DNS好像反应很慢嘛,我早上7:00重启以后发现IP变了(为什么ADSL、路由器没有关,ip也会变,难道网络间断过了? :oops: 不懂吔),等了有半个小时都没有动态解析过来,ping了一下还是原来的IP,于是就卸了硬盘那到办公室cp那些iso文件,现在9:00,ping了一下IP才变过来。服务将在今天下午恢复。

tyfrlj 发表于 2004-2-26 12:47:28

已经恢复服务,增加了woody-miniCD、Magic1.2pre5、OpenDesktop、FreeBSD5.2.1-RC2、一些驱动和一些我自己喜欢的东东 :mrgreen:
欢迎下载

Bluedata 发表于 2004-2-26 19:34:21

tyfrlj,你那个woody-miniCD带了SCSI驱动吗?
万一以后要在服务器上装Debian方便些,我没找到这样的安装盘。 :-(

tyfrlj 发表于 2004-2-27 13:28:41

这是里面boot.bat的内容,我看是有的,你看呢?
@ echo off
rem Flush any write-cached disk blocks before we leave DOS.
If your system does not use smartdrv an error message will appear,
you can safely ignore that.
smartdrv /c

echo Please choose a linux kernel now
echo 1= IDEPCI kernel               (2.2)
echo 2= compact (SCSI) kernel         (2.2)
echo 3= 2.4.x kernel                  (2.4)
echo 4= vanilla (standard) kernel   (2.2)

choice /c:1234
if errorlevel 4 goto FOUR
if errorlevel 3 goto THREE
if errorlevel 2 goto TWO
if errorlevel 1 goto ONE

echo doing default somehow and going to ONE
goto ONE

:ONE
echo using IDEPCI kernel
loadlin.exe linpci root=/dev/ram ro initrd=root.bin ramdisk_size=16384 disksize=1.44 flavor=idepci

:TWO
echo using compact (SCSI) kernel
loadlin.exe lincompt root=/dev/ram ro initrd=compact.bin ramdisk_size=16384 disksize=1.44 flavor=compact

:THREE
echo using 2.4.x kernel
loadlin.exe lin24 root=/dev/ram ro initrd=bf24.bin ramdisk_size=16384 disksize=1.44 flavor=bf2.4

:FOUR
echo using standard (vanilla) kernel
loadlin.exe linux root=/dev/ram ro initrd=root.bin ramdisk_size=16384 disksize=1.44 TERM=vt102

Bluedata 发表于 2004-2-27 19:45:41

2.2的内核才有。 :neutral:

tyfrlj 发表于 2004-2-28 01:33:16

2.2的内核才有。 :neutral:
:mrgreen: 没关系啊,安装好后马上自己编译内核,这是我在会用cross-install之前的习惯,之后就变成先编译好内核在cross-install :mrgreen:

Bluedata 发表于 2004-2-28 02:09:56

2.2的内核只能选ext2格式吧。 :roll:

tyfrlj 发表于 2006-4-11 10:29:15

重新开通,用的是Linux,Debian系的新华华镭桌面版apt-get安装的服务器软件打造的。

ftp服务正在琢磨中...

cnhnln 发表于 2006-4-12 16:39:49

友情顶

Bluedata 发表于 2006-4-12 18:15:22

那时安装 Debian 还真麻烦呢。 :mrgreen::mrgreen:

tyfrlj 发表于 2006-4-13 14:09:10

现在安装像ML一样简单了 :mrgreen: cnhnln, 快去俺论坛灌水 :twisted:

tyfrlj 发表于 2006-4-17 12:31:11

原帖:
http://tyf.9966.org/discuz/viewthread.php?tid=15&extra=page%3D1

内网proftp在动态域名下开启PASV的问题

先打开PASV端口
PassivePorts 65500 65505

路由器里做65500~65505的端口映射

配置发送给用户的地址信息
MasqueradeAddress tyf.9966.org

重启proftpd

这时可以PASV模式正常访问
当IP地址改变时,虽然动态域名解析正确,但由于proftp反馈给用户的地址仍然是原来的IP,所以PASV模式访问失败。须重启proftpd

问题是如何检测外网IP已经变化,当然是命令行的方式。
这样就可以在shell脚本里侦测外网IP是否变化,如已经变化则重启proftpd。

tyfrlj 发表于 2006-4-17 14:32:14

看来还得学点处理文本的命令,自己写个侦测脚本

tyfrlj 发表于 2006-4-18 12:06:17

http://tyf.9966.org/discuz/viewthread.php?tid=15&extra=page%3D1

问题已经解决,见上面网址

环境简介
2M电信ADSL,带防火墙、DHCP、端口映射等功能的路由器,内网一PC做虚拟服务器
PC单网卡,上安装Debian Sid。安装proftp。


PC上打开PASV端口
PassivePorts 65500 65505

路由器里做65500~65505的端口映射

配置发送给用户的地址信息
MasqueradeAddress tyf.9966.org

重启proftpd
发现proftp将域名转换为当时的外网IP

这时可以PASV模式正常访问
当IP地址改变时,虽然动态域名解析正确,但由于proftp反馈给用户的地址仍然是原来的外网IP,所以PASV模式访问失败。须重启proftpd

问题是如何检测外网IP已经变化,当然是命令行的方式。
这样就可以在shell脚本里侦测外网IP是否变化,如已经变化则重启proftpd。

参考文章:
http://www.donews.net/charlee/archive/2004/12/02/190451.aspx


解决办法

在http的主目录编写反馈客户IP的ip.php脚本
<?php
print ( $_SERVER['REMOTE_ADDR']);
?>


编写检测脚本/etc/qdns
#!/bin/sh

mv -f /etc/ip-new /etc/ip-old >/dev/null
lynx -dump http://www.tyf.9966.org/ip.php >/etc/ip-new

date >> /etc/qdns.log
cat /etc/ip-new >> /etc/qdns.log

oldip=`cat /etc/ip-old`
newip=`cat /etc/ip-new`
if [ "$newip" != "$oldip" ];then
/etc/init.d/proftpd restart >> /etc/qdns.log
exit
fi

在/etc/crontab里设置,让检测脚本定时运行。你还可以设置一周清理一下qdns.log
页: 1 [2]
查看完整版本: 自由风扬论坛开通了