I did searched the QNAP and Transmission forums and it still unclear form me how I can protect traffic to Transmission WebUI when I connect remotely. As the first option I considered use of reverse proxy on qnap embedded Apache server. I have done the following config for Transmission WebUI virtual host:
Code: Select all
[~] # vi /etc/config/apache/extra/httpd-ssl-vhosts-user.conf
NameVirtualHost *:80
<VirtualHost _default_:80>
DocumentRoot "/share/Web"
</VirtualHost>
<VirtualHost *:3030>
ServerName servername.com
ProxyPreserveHost On
ProxyRequests Off
ProxyVia Off
<Location /transmission/web>
order deny,allow
# Redirect permanent /torrents https://127.0.0.1/transmission/web
ProxyPass http://127.0.0.1:9091/transmission/web
ProxyPassReverse http://127.0.0.1:9091/transmission/web
</Location>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
DocumentRoot "/share/Web"
<Directory "/share/Web">
Options FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Code: Select all
ProxyPass http://127.0.0.1:9091/transmission
ProxyPassReverse http://127.0.0.1:9091/transmission
Code: Select all
[/] # ls /share/MD0_DATA/Web/ -l
lrwxrwxrwx 1 admin administ 27 Jul 11 00:07 Optware -> /home/httpd/html/Management/
lrwxrwxrwx 1 admin administ 34 Jul 11 00:07 airplay -> /share/MD0_DATA/.qpkg/QAirplay/api/
-rw-rw---- 1 admin administ 1003 Jul 10 16:51 customized.bak
-rw-rw---- 1 admin administ 715 Jul 10 17:10 customized.conf
lrwxrwxrwx 1 admin administ 27 Jul 11 00:07 gt -> /mnt/ext/opt/DSv3/gt/www/gt/
lrwxrwxrwx 1 admin administ 32 Jul 11 00:07 gt_test -> /mnt/ext/opt/DSv3/gt/www/gt_test/
lrwxrwxrwx 1 admin administ 23 Jul 11 00:07 hc -> /mnt/ext/opt/DSv3/gt/hc/
-rwxrwx--- 1 admin administ 1139 Jul 2 20:20 index.php*
lrwxrwxrwx 1 admin administ 33 Jul 2 23:21 istat -> /share/MD0_DATA/.qpkg/iStat/istat/
lrwxrwxrwx 1 admin administ 48 Jul 2 21:58 transmission -> /share/MD0_DATA/.qpkg/Transmission/web-gui/admin/
-rw-rw---- 1 admin administ 1182 Jul 10 18:14 trbox.conf
[/] # ls -l /share/MD0_DATA/.qpkg/Transmission/
drwxr-xr-x 2 admin administ 4096 Dec 30 2012 bin/
drwxr-xr-x 5 admin administ 4096 Jul 11 11:28 conf/
drwxr-xr-x 2 admin administ 4096 Dec 30 2012 lib/
drwxr-xr-x 4 admin administ 4096 Oct 21 2011 scripts/
drwxr-xr-x 4 admin administ 4096 Nov 9 2011 tmp/
-rwxr-xr-x 1 admin administ 18349 Dec 30 2012 transmission.sh*
lrwxrwxrwx 1 admin administ 50 Jul 2 21:58 web -> /share/MD0_DATA/.qpkg/Transmission/web-gui/default/
drwxr-xr-x 7 admin administ 4096 Jul 2 21:57 web-gui/
So when I connect from outside I reach ... web-gui/admin/ but not web-gui/default/
I know I have got confused by trivial thing, shame on me, but what's wrong with reversing?