linux vsftpÎÊÌ⣬´ó¼Ò½øÀ´°ï°ïæ лл
ÎÊÌâÊÇÕâÑùµÄ£¬ÎÒÕâÑùÅäÖÃiptablesµÄ
iptables -F
iptables -X
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 20 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 20 -j ACCEPT
ÕâÑùÅäÖÃÓдíÂð£¿ÎªÊ²Ã´ftpµ½µÇ½¿ò ÊäÈëÕ˺ÅÃÜÂëÒÔºó ¾Í²»ÐÐÁË ½ø²»ÁËftp ÊDz»ÊÇ»¹ÐèÒªÆäËûʲô¶Ë¿Ú£¬¹Øµô·À»ðǽÊÇ¿ÉÒ﵀ »¹ÓоÍÊǼÙÈç¹Øµô·À»ðǽ ÔÚÖØÐ¿ªÆô iptablesµÄÅäÖûỹԳɳõװ״̬µÄ Ϊʲô¡£Ð»Ð»´ó¼Ò
¶¼È¥³Ô·¹ÁËÂð ÔõôûÓÐÈËÀ´°ï°ïÎÒ°¡
ÉèÖÃvsftpÓÃPORT FTPģʽ, ÕâÑù¾Í»á¹Ì¶¨µÄÊý¾ÝÁ¬½Ó20¶Ë¿Ú, ·ñÔòPASV FTPģʽ»áËæ»ú¶Ë¿Ú¸ú¿Í»§¶Ë´«Êý¾Ý(¶Ë¿ÚÓɿͻ§¶ËÖ¸¶¨)
¶àл¥ÉϵÄÖ¸µ¼£¬²»¹ýÄÜ·ñÏêϸµãµÄ˵ ÎÒÊÇÐÂÊÖ Ð»Ð»
http://vsftpd.beasts.org/vsftpd_conf.html
refer to the following configuration options.
HTML code:
pasv_enable
Set to NO if you want to disallow the PASV method of obtaining a data connection.
Default: YES
pasv_promiscuous
Set to YES if you want to disable the PASV security check that ensures the data connection originates from the same IP address as the control connection. Only enable if you know what you are doing! The only legitimate use for this is in some form of secure tu
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
Éý¼¶³É¹¦ÁË£¬µ«ÊÇÔÚ2.6.18ºÜ¶àmodules¶¼Î´¼ÓÔØ£¬ÀýÈçusb-storage,cdromµÈµÈ¡£
ÊÖ¶¯modprobeºÜ¶à¶¼²»ÄܼÓÔØ³É¹¦£¬ÇëÎʸÃÔõô´¦Àí£¿£¿
http://blog.chinaunix.net/u1/40912/showart_354070.html
ÎÒ¸Õ½Ó´¥£¬¿´²» ......
ÒòΪ°²×°cvsÒªÓõ½xinetd·þÎñ£¬·¢ÏÖ»úÆ÷ÉÏûÓС£¡£¾Í´ÓÍøÉÏÏÂÔØÁ˸ö×°ÉÏ£¬
SQL code:
[root@localhost ~]# rpm -qa xinetd
[root@localhost ~]# rpm -qa telnet
telnet-0.17-38.el5
[root@localhost ~]#
¸ ......
ÓÐÈËÈÏΪ£¬linux °²È«ÐԸߣ¬Ö»ÊÇÒòΪÓõÄÈËÉÙ£¬ËùÒÔÄÇЩºÚ¿Í²»Ô¸ÒâÈ¥¹¥»÷£¬ËùÒÔ²¡¶¾Ö®ÀàµÄ¾ÍÉÙ£¬ÊDz»ÊÇÕâÑù£¿¶øÇÒlinuxÊÇ¿ªÔ´µÄ£¬¹¥»÷ÆðÀ´ ±È½ÏÈÝÒ×ËùÒÔ ÀÁµÄÈ¥¹¥»÷
ÕâÖÖ˵·¨¶Ôô
linux Ôõô¾Í°²È«¸ß ......
ÎÒĿǰÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃæ£¬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£
ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿ ......