Access Admin Pages Remotely
From WL-HDD Wiki
| WL-HDD Contents |
|---|
| What is the WL-HDD |
| Features |
| Pro's/con's |
| Reviews |
| Hacking |
| Inserting the HDD |
| Hacking Guides |
| Basic setup guides |
| Packages guides |
| Requests |
| Troubleshooting |
| This Wiki |
| Credits |
| Editing help |
| Contact Me |
[edit] Prerequisites
To complete this guide, the following is assumed:
| You are running Oleg's firmware (1.9.2.7-6b or later) |
| You have harddisk partitions up and running with an extended filesystem mounted to /opt |
| You have installed the Ipkg package system. |
| You have configured your partitions to automount. |
| You will need to have completed the DynamicDNS guide. |
| You may want to setup a webhop, although this is not necessary. |
| It is recommended that your router admin pages do not run on port 80. |
[edit] Make WL-HDD accessible from WAN
You will need to edit the iptables rules in /usr/local/sbin/post-firewall
nano /usr/local/sbin/post-firewall
Add the following lines
iptables -D INPUT -j DROP iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 80 -j DNAT --to-destination $4:80 iptables -A INPUT -j DROP
Save and Exit nano
Ctrl + O Ctrl + X
Make changes permanent
flashfs save flashfs commit flashfs enable
That particular iptable rule will accept connections to port 80 on your WL-HDD but drop all other connections.
[edit] Port Forwarding
You will need to do the following changes in your router (not the WL-HDD) configuration pages. First, be sure that your routers admin pages do not run on port 80 of the router or you will not be able to access your routers admin pages remotely (this may not be an issue).
Different routers have different names for port forwarding (such as virtual server). They also have different entry fields. You will have to figure this out for yourself. Read your routers user manual!
Add the following Rule:
Port Range 80 to 80 (or just 80 if available)
Local IP (your WL-HDD) eg.192.168.1.8
Local Port (or Port Map) 80
Protocol TCP
and a description: eg. web from WAN
So your WL-HDD admin pages will be accessible via WAN at:
eg. http://wlhdd.hopto.org:80 or your webhop address
Notes:
Via Lan your configuration page remains eg.192.168.1.8
