![]() |
PCDVD¼Æ¦ì¬ì§Þ°Q½×°Ï
(https://www.pcdvd.com.tw/index.php)
- ¼Æ¦ì¦æ°Ê²£«~°Q½×°Ï
(https://www.pcdvd.com.tw/forumdisplay.php?f=75)
- - ½Ð°ÝASUSªºWL-500G ¦p¦ó®³¨Ó·íWEB SERVER ?
(https://www.pcdvd.com.tw/showthread.php?t=523435)
|
|---|
½Ð°ÝASUSªºWL-500G ¦p¦ó®³¨Ó·íWEB SERVER ?
¤p§ÌÅ¥»¡ASUSªºWL-500G ¥i¥H·í¤@¥x²³æªºWEB SERVER ,
¦ý¬O¤p§Ì§ä¤£¨ì¬ÛÃöªº¶´Åé, ¤£ª¾¬O§_¦³ºô¤Íª¾¹D? |
¤Þ¥Î:
¤£ª¾¹D§A±qþÅ¥»¡ªº ¦]¬°¨º¬O¤£¥i¯àªº¨Æ±¡ WL-500G¥u¬O¤@¥x¤À¨É¾¹ :laugh: :laugh: :laugh: n¤£§A¥´¥h¬Ó®a°Ý¬Ý¬Ý´Nª¾¹D |
¦L¶H¤¤n·|¦Û¤v§ï¸Ì±ªº¶´Åé§a¡C§Ú¤£·|§ï©Ò¥H¤£¥Î°Ý§Ú :p
|
¨º´Ú¬O¥i¥H±µHDªº§a
¦³°Q½×¹Lªº¤å³¹ |
¬Ý¬Ý¤â¥U§a~
µØºÓªº¤â¥U¼gªºÀ³¸Óº¡¸Ô²Óªº§a? ¥h¥¦ºô¯¸¬Ý¬Ý¯à¤£¯àdownload¤U¨Ó¬Ý¬Ý |
WL 500G ¬O¥i¥H·í WEB SERVER ¥Î¨S¦³¿ù.
¨ä¹ê§Ú̥ΪºÂsÄý¾¹³]©wµe±´N¬O¤@Ó WEB SERVER, ª±®ąϥÎ×§ï¹Lªº¶´Åé+³]©w, §â¥¦³]©w¦¨¦pªG¬O¤º³¡ªº IP ´N¶i³]©wµe±, ¦pªG¬O¥~³¡ IP ´N¶i SERVER. ³oùئ³¸Ô²Óªº°Q½×. http://wl500g.info/ |
¤Þ¥Î:
¤p§Ì^¤åµ{«×¤£¦n, ¤£ª¾¬O§_¥i¥H¸Ô²Ó¸ÑÄÀ¤@¤U? |
WL500g ¦]¬°¨Ï¥Î¦Û¥Ñ³nÅé¶}µo, ASUS ¤]«Ü°÷·N«äªº¤½§G¤Fì©l½X.
³o¦ì OLEG ¥ý¥Í¶}µo¤F·sª©¥»ªº¶´Åé. ¼W¥[¤F¤@¨Ç¥\¯à. ¨ä¤¤¤@¶µ´N¬O®³¨Ó·í WEB SERVER ¥Î. ¦³¤H¬Æ¦Ü¥[¤F PHP ªº¥\¯à. ³o¦ì ALPHA5 ¥ý¥Í¦b¸Õ¥Î¦¨¥\¤§«á, °µ¤F¥H¤Uªº±Ð¾Ç. §Ú¤]¦³¤@¥x WL500g , §Ú¸Õ¹L¤@¦¸, ¨S¦³¦¨¥\. ¤£¹L©ñ¤ß, ¤]¨S¦³·´±¼§Úªº WL-500g ´N¬O¤F. 抛¿j¤Þ¥É, ²³æÂ½Ä¶¤@¤U, ¦p¦³¿ù»~, ½Ð¦h¨£½Ì, ¦pªG¦³¤H¦¨¥\, ½Ð«ü¾É¤@¤U. ¤j®a¦h¦h°Q½×. http://wl500g.info/showthread.php?t=1457 ¤º®e¬O½¦Û¤W±³oÓ³sµ²ªº±Ð¾Ç °È¥²n°O±on¥ý§ó·s OLEG ×§ï¹Lªº¶´Åé. ( §ó·s¹L´NÅܦ¨^¤åª©¤F.. n¤T«ä°Ú ) okay, new year, new firmware, new howto ·s¦~·s¶´Åé. Since few days i´m using 1.9.2.7-2 from Oleg. ´X¤Ñ«e, ¥L»¡¥L¶}©l¥Î OLEG ¶}µoªº 1.9.2.7-2 ª©¥»¶´Åé. Like in changelogs promised there are some changes in iptables since 1.6.x.x. IPTABLES ¦³¤@¨Ç©M 1.6.X.X ª©¥»¤£¦Pªº§ïÅÜ, These changes are effecting on my last howto about the wan webserver. ³o·|¼vÅT¨ì¤W¤@¦¸ªº±Ð¾Ç. ©Ò¥H. ²{¦b¦A±Ð¤@¦¸. So lets start: ¶}©l. At first you need "webspace" f.e. a usb memory stick, or an usb harddisk. ²Ä¤@, ¦]¬°»Ýn¦³ºô¶ªÅ¶¡, ©Ò¥H¶·n¦³ÀH¨ºÐ,©Î¬O¥~±µµwºÐ ¨Ó·íºô¶ªºªÅ¶¡. How to install this is explained in your asus manual. ¨Ì ASUS ¤â¥U¸Ë¤WÀH¨ºÐ ©Î ¥~±µµwºÐ If there are problems with it, use the search function of this forum! ¦pªG¦³°ÝÃD, ·j´M°Q½×°Ï Optional you can use a service like "dyndns.org" to be aviable allways under the same hostname on internet. F.e. ernstl.dyndns.org. To update your ip on connect use the internal updating client. (see asus manual) §A¤]¥i¥H¥Î°ÊºA DNS ªºªA°È, ( ´N¬O¯B°Ê IP ¬[¯¸°Õ ) ( ¨Ò¦p DYNDNS.ORG ) If not done yet, connect to your aus device with a telnetclient of your choise, and login with username and password. ³s¤W§Aªº¥~±µ¸Ë¸m. ¥Î TELNET ¤èªk ³s±µ§Aªº¸Ë¸m. ¿é¤J§Aªº USERNAME PASSWORDµn¤J. ( §Ú¬Oª½±µ¦b DOS µe±¿é¤J TELNET 192.168.0.1 ´N·|n§A¿é¤J USERNAME, PASSWORD , ¿é¤J«á´N·|¬Ý¨ìÃþ¦ü UNIX ªº TERMINAL µe±¤F ) So far... After installing the usb memory device will be mounted as /tmp/harddisk on your asus device. ¸Ë¤W¥~±µ USB ¸Ë¸m«á, ¸Ë¸m·|¦b ASUS MOUNT ¦¨ /TMP/HARDDISK Now you should creat a seperated directory for your web files with this command: À³¸Ón¦b¥~±µ¸Ë¸m«Ø¤@Ó¤l¥Ø¿ý¨Ó·íºô¶ªÅ¶¡, ¦pªGÁÙ¨S¦³°µªº¸Ü., ¥Î¥H¤U«ü¥O«Ø¥ß¤@Ó¤l¥Ø¿ý Code: mkdir /tmp/usbmount/web If not allready exist, create the post-boot and post-firewall scripts: ¥Î¤U±«ü¥O«Ø¤@Ó POST-BOOT ©M POST-FIREWALL ªº SCRIPTS Code: touch /usr/local/sbin/post-firewall touch /usr/local/sbin/post-boot ( TOUCH «ü¥OÀ³¸Ó¬O«ün«Ø³o¨âÓÀɧa ? ) Now open the vi editor by typing ¥Î VI , ¥´³oÓ«ü¥O, ½s¿è POST-BOOT ³oÓÀÉ "vi /usr/local/sbin/post-boot". In vi press "i" to enter a simple insert mode. ¦b VI , ¥Î I ¶i¤J´¡¤J¼Ò¦¡. Type ore paste in the following lines, ¿é¤J©Î¬O¶K¤W¤U±´X¦æ to make busybox_httpd automaticly started, and mount usb device bevore: ¨Ó¨Ï BUSYBOX_HTTPD ¦b¶}¾÷´N¦Û°Ê MOUNT §Aªº USB ¥~±µ¸Ë¸m.. ( BUSYBOX_HTTPD , ¾Ú§Úª¦¤åªºµ²ªGÀ³¸Ó¬O OLEG ¥ý¥Í·s§ïªº¶´Åé¤@¶}¾÷®É¦Û°Ê°õ¦æªº«ü¥O, ) Code: mount /dev/discs/disc0/part1 /tmp/harddisk -t vfat busybox_httpd -p 81 -h /tmp/harddisk/web Press "ESC" to leave inser mode. ¦b VI «ö ESC µ²§ô´¡¤J¼Ò¦¡ Now type ":wq!" followed by "return" to write changes and quit vi. ¥´ :WQ! µM«á RETURN , ¥Î VI ¼g¤JÀÉ®×, Â÷¶} ( ³o¨Ç¬O vI ªº¾Þ§@, ¥Dn´N¬O¥[«ü¥O¶i¤J POST-BOOt ³oÓÀÉ®× ,) Now open the post-firewall file with vi (vi /usr/local/sbin/post-firewall). Press "i" and fill in the following line ¤@¼Ë, ³o¦¸¬O¥[ªF¦è¶i¤J POST-FIREWALL ³oÓÀÉ®× ¥´¤U±³o¨ÇªF¦è Code: iptables -D INPUT -j DROP iptables -A INPUT -p tcp --dport 81 -j ACCEPT iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.1:81 iptables -A INPUT -j DROP Then "ESC" and ":wq!". Files should now be saved. (³o¤]¬O VI ªº«ü¥O, ¦sÀÉÂ÷¶}ªº·N«ä ) To vertify the the files are filled with our informations "cat" the files with the command "cat [filename]". ¥i¥H¥Î CAT POST-FIREWALL ©M CAT POST-BOOT ¨Ó¬Ý¦³¨S¦³¥[¶i¥h¦¨¥\. To store changes in flash enter the following commands in your shell: ¥Î¤U±³o¨Ç×§ï¦s¨ì FLASH °O¾ÐÅé Code: flashfs enable flashfs save flashfs commit Necesarry!!! «n, ¤W±³o¨Ç¬O¥²nªº. After reboot busybox_httpd should be startet automaticly on port 81, «¶}¾÷. BUSYBOX_HTTPD ·|¦Û°Ê¶}¦b PORT 81. by the post-boot. Iptables makes it aviable on port 80 for wan site. ¦]¬° POST-BOOT ªº³]©w, IPTABLES ·|Åý WAN ¥Î PORT 80 ¶i¤Jºô¶ªÅ¶¡. To access the webserver from lan site, you need to connect on port 80. F.e.: n¶i¤J§AªºWL500g ³]©w, n¥Î PORT 81. ( ì¤å¬O»¡ 80 , §Ú·Q¬O¥Lµ§»~ ) http://192.168.1.1:81 ¦b IE ¶i¤JºÞ²zµe±¥Îªº«ü¥O If you have problems do not hesitate to message me or post in Q&A forum! ¦³°ÝÃD¨ì°Q½×µo°Ý. |
http://wl500g.info/showpost.php?p=6290&postcount=26
³oùØÁÙ¦³¤@¨Ç¸É¥R. ¦³¤H¦^³ø¶}¾÷«á¤£·|°»´ú¨ì¥~±µ¸Ë¸m, ¾ÉP¥¢±Ñ, The following code can be put in the post-boot script. This will delay furter booting (up to 30 seconds) in order to let the watchdog mount your HDD. Once the script detects the HDD, it will resume booting. Enjoy ¦b POST-BOOT ³oÓ SCRIPT ùØ,¥[¤W¤U±ªº³oµ{¦¡, ¥i¥H¦b¤@¶}¾÷«á, µ¥ 30 ¬í, µ¥¨ì WL-500G MOUNT °»´ú¨ì¤F¥~±µ¸Ë¸m¤§«á, ¦AÄ~Äò§¹¦¨¶}¾÷°Ê§@. Code: i=0 while [ $i -le 30 ]; do if [ -d /tmp/harddisk/ftp_pub ] ; then break fi sleep 1 i=(($i + 1)) done |
¤S¦³¤H¦^³ø»¡, ¥Ln§ï¦¨¤U±³o¨Ç«ü¥O¤~¯à¦b 1.9.2.7 ª©ªº¶´Åé¤u§@¥¿±` .
Code: #!/bin/sh i=0 while [ $i -le 30 ] do if [ -d /tmp/harddisk/ftp_pub ] then break fi sleep 1 i=$i + 1 done busybox_httpd -p 81 -h /tmp/harddisk/web |
| ©Ò¦³ªº®É¶¡§¡¬°GMT +8¡C ²{¦bªº®É¶¡¬O12:49 PM. |
vBulletin Version 3.0.1
powered_by_vbulletin 2026¡C