plexaphone 0 Posted ... Let me start by saying I am not that confident with networking but have some limited experience. I was having problems connecting to my Synology DS1817+ from the internet. I am running OpenVPN on a ddwrt router on which I have made no changes. I did forward 2 ports to 5000 and 5001 in the AIRVPN Client Area but nothing was working.I read everything I could find within the AIR VPN forums ,Synology's , and beyond.In the end my problem was solved when I changed my DDNS address in Synology -Control Panel - External Access - DDNS to something like 8.8.8.8.Sorry to just now get to the point.1. Did I create a security vulnerability?2. Is this the correct method to setup external access to my N.A.S.?3. Should I consider entering an ip table into the ddwrt that only forwards those ports to my N.A.S.? Thank you in advance for any advice/information here. Ryan Quote Share this post Link to post
plexaphone 0 Posted ... After more tinkering, I see now that the external address which Synology chooses for you is a problem. Although it is your public address it is no good as a DNS. Choose something else like 8.8.8.8 and everything should be fine. So if anyone is interested in getting Synology access from outside their LAN while connected to AirVPN running on their router, my solution was to simply forward ports to 5000 and 5001 through AirVPN's client area and change the DDNS address in Synology -Control Panel - External Access - DDNS to something like 8.8.8.8. That's it.Then you could add something like this to your firewall::From AIRVPN Forum on setting up Tomato router....[destIP is the IP address of the destination deviceport is the port you wish to forward to that devicetun1 is the tun interface of your router (please check! on some routers it can be tun0, on Tomato it can be tun11)you need to forward both TCP and UDP packetsyou need to add the following rules.Please note that the following rules do NOT replace your already existing rules, you just have to add them. iptables -I FORWARD -i tun1 -p udp -d destIP --dport port -j ACCEPTiptables -I FORWARD -i tun1 -p tcp -d destIP --dport port -j ACCEPTiptables -t nat -I PREROUTING -i tun1 -p tcp --dport port -j DNAT --to-destination destIPiptables -t nat -I PREROUTING -i tun1 -p udp --dport port -j DNAT --to-destination destIP hope someone finds this helpful. Quote Share this post Link to post