欢迎下载 tyfrlj,你那个woody-miniCD带了SCSI驱动吗?
万一以后要在服务器上装Debian方便些,我没找到这样的安装盘。 :-( 这是里面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 2.2的内核才有。 :neutral: 2.2的内核才有。 :neutral:
:mrgreen: 没关系啊,安装好后马上自己编译内核,这是我在会用cross-install之前的习惯,之后就变成先编译好内核在cross-install :mrgreen: 2.2的内核只能选ext2格式吧。 :roll: 重新开通,用的是Linux,Debian系的新华华镭桌面版apt-get安装的服务器软件打造的。
ftp服务正在琢磨中... 友情顶 那时安装 Debian 还真麻烦呢。 :mrgreen::mrgreen: 现在安装像ML一样简单了 :mrgreen: cnhnln, 快去俺论坛灌水 :twisted: 原帖:
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。 看来还得学点处理文本的命令,自己写个侦测脚本 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]