Hi!
I'm installed OpenVPN server on my RT-N16 router with TomatoUSB firmware by shibby. My ISP gave me dynamic IP so I've used DynDNS-service to make it accessible anytime from the Web, but it's name very ugly and long... so I've made a nice trick. I have a VDS with CentOS where I created nice short domain and made redirect with .htaccess from that domain:
RewriteEngine On
RewriteCond %{SERVER_PORT} 1194
RewriteCond %{REQUEST_URI} ^/
RewriteRule (.*) http://myroutername.dyndns.org:1194
Of course I've got much pain to configure my httpd.conf, vhosts, iptables and fail2ban to make server listen custom port and resolve it (if smbd interested I can explain all steps) so I can open my.new.domain:1194 and get redirect to myroutername.dyndns.org:1194. But I get it only through web-browser! It seems that .htaccess works only for web-clients, not FTP or even VPN. So when I'm trying to connect to my VDS via VPN-client I don't get redirect to my my router's DynDNS name and then to my actual router's IP. As I see in logs VPN-client resolves and trying to connect to VDS IP without any redirect.
How I can fix it? As resume: I need redirect from my.new.domain:1194 (VDS) to my.old.domain:1194 (DynDNS) and then to RouterIP:1194 (Router). Redirect from DynDNS->Router via VPN-client works properly, but when I'm trying to connect through my.new.domain VPN-client resolving VDS's IP, not DynDNS's.