Hello,
I have been trying to set up my AC66U so that my it can be a webserver and can be viewed from WAN, but I have the following issues...
1.
I created a user script "post-mount" with simple content of:
This should start lighttpd service automatically everytime that the router mounts my external hard drive right? The script runs fine if I invoke it directly through ssh, but it doesnt automatically run when rebooted... Is there some setting I need to turn on in order for it to run automatically?
I went as far as to making entire /tmp/mnt/media/asusware/etc/init.d folder chmod 777 and still no help...
the script is executable:
Can anyone tell me what I did wrong?
2.
I been looking in the Firewall tab of the web interface, and I cant find a way to allow certain port to go through... All I can do is enable firewall or disable firewall. My webpage is viewable if I turn off the firewall and is not when it is on. SSH into the server does not have the iptable command, and if possible I dont like to install extra packages just for a port to be opened on firewall. Is there something I can do? What I did is I port forwarding port 80 to port 81 (where lighttpd is listening) but the site will only be avaliable if I turn off the firewall.
Anyhelp is great, thank you.
I have been trying to set up my AC66U so that my it can be a webserver and can be viewed from WAN, but I have the following issues...
1.
I created a user script "post-mount" with simple content of:
#!/bin/sh
cd /tmp/mnt/media/asusware/etc/init.d
S80lighttpd start
This should start lighttpd service automatically everytime that the router mounts my external hard drive right? The script runs fine if I invoke it directly through ssh, but it doesnt automatically run when rebooted... Is there some setting I need to turn on in order for it to run automatically?
I went as far as to making entire /tmp/mnt/media/asusware/etc/init.d folder chmod 777 and still no help...
the script is executable:
-rwxrwxrwx 1 admin root 67 Nov 1 17:35 post-mount*
Can anyone tell me what I did wrong?
2.
I been looking in the Firewall tab of the web interface, and I cant find a way to allow certain port to go through... All I can do is enable firewall or disable firewall. My webpage is viewable if I turn off the firewall and is not when it is on. SSH into the server does not have the iptable command, and if possible I dont like to install extra packages just for a port to be opened on firewall. Is there something I can do? What I did is I port forwarding port 80 to port 81 (where lighttpd is listening) but the site will only be avaliable if I turn off the firewall.
Anyhelp is great, thank you.
Last edited: