Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
<u><b>Prerequisites</b></u><br/>
*A router that can hand out DNS. (DD-WRT .v24 -sp2 which comes with DNSMasq can handle that nicely.) Find out more at http://www.dd-wrt.com/site/index<br/>*This document assumes that Fedora 14 & Amahi are installed on both HDAs.<br/>*BE SURE that each HDA has a unique hostname (domain name) & IP address that is within your network.<br/>
<u><b>Accessing HDAs Locally</b></u><br/>
I personally deleted all of the Amahi links on each HDA's Fedora desktop and created a launcher that opens the Amahi dashboard by IP address.<br/>
To create the launcher
*Right-click on an empty space of the Fedora Desktop and choose "Create Launcher"
*Change "Type" to "Location."
*Give it a name (i. e. <i>Amahi HDA Dashboard</i>)
*Under "Command" enter http:// and the IP of the HDA
<u><b>Change External DNS on HDA2</b></u><br/>
<u><b>Apps You Need</b></u><br/>
*Amahi Web-Apps Proxy (http://www.amahi.org/apps/amahi-web-apps-proxy) on both HDAs.
<blockquote>*Go to the Amahi Dashboard and under "Apps" find and install Amahi Web-Apps Proxy. In order to configure Amahi Web-Apps Proxy, access the Amahi Web-Apps Proxy for each HDA the first time from a computer <u>outside </u> of the Local Area Network. Then change the user name and password to suite your needs.</blockquote>
*Ajaxplorer (http://www.amahi.org/apps/ajaxplorer) installed on HDA1. This met my external file access needs for HDA1.<br/>
*OpenVPN ALS (formerly Adito)(http://www.amahi.org/apps/openvpn-als) on HDA2. This app has a convenience fee to install that it is well worth it. :-)<br/>
<ul>
<u><b>Configuring OpenVPN ALS</b></u><br/>
<li>Web Forwards - The Tunneled Web Appsfeature of OpenVPN ALS (Adito) allows clients to externally use an application on your HDA as if they are in the Local Area Network.
* Login as administrator
* Select Web Forwards (middle of left menu)
* Select Create Web Forward
* Select Tunneled Web and select Next
* Each time the agent is executed, the SSL tunnel uses a random port (may not work with firewalled client network)
<li>Configure Shares. See "Map HDA folders (Network Places)" on http://wiki.amahi.org/index.php/Adito for more details.<br/>
</ul>
<u><b>Router Configuration</b></u><br/>
This is the configurations under DD-WRT v.24-2
*Port Forwarding<br/>
Forward to HDA1IPofHDA1: Port 80 TCP/UDP, Port 1192 UDP, Other Apps possible<br/>Forward to HDA2IPofHDA2: Port 443 TCP/UDP, Port 4443 TCP/UDP (for OpenVPN ALS) and other apps possible.
*Turn off DHCP in both HDAs. Allow DD-WRT to handle DHCP.<br/>
Under "Services > DHCP Server" in DD-WRT set "Used Domain" to "LAN & WAN"<br/>
Give the router's LAN a name and assign static DHCP leases for each HDA using the real MAC addresssaddress, hostname and IP of each.<br/>
*DO NOT turn off DNS on either HDA.<br/>
*DD-WRT Dnsmasq config. The DNSMasq feature in DD-WRT allows you to direct DNS requests to the each of the DNS servers of the respective HDAs. This prevents one HDA from taking over DNS and preventing the other from using its DNS driven apps.<br/>
Under "DNSMasq" enable "DNSMasq" and "Local DNS".<br/>
Under "Additional DNSMasq Options" input something like the following.:<blockquotebr/:server=/hda1username.com/192.168.1.20:ptr-record=20.1.168.192.in-addr.arpa,hda1username.com:server=/hda2username.com/192.168.1.21:ptr-record=12.1.168.192.in-addr.arpa,hda2username.com:expand-hosts<br/blockquote
Just change the above to reflect your hostnames and IP addressess. (Note that ptr-record ips are backwards.)
128

edits