If a VPN-symbol appears the tunnel is established. (Select the stored VPN configuration and switch VPN to ON) Now disable all other port-forwarding configurations in the router where remote access will be done by using VPN in the future.ĭisable WLAN (only for testing) on your smartphone and start the VPN client. Raspberry.Pi.IP.address port 1723 to port 1723 Enter your router menu and configure port-forwarding for your VPN-server IP address: One port-forwarding in the router is still necessary. * Password is the password used in the VPN server configuration * Account: is the user name used in the VPN server configuration * Server: is the dyndns-address of the router * Description: Give the VPN channel configuration a name It is recommended to use a passwor longer than 13 characters:Ĭlient installation on an iPhone4S (R7) * Settings -> General-> VPN -> Add VPN Configuration Both have to be the same as later on used in the smartphone client configuration. Now add a user and password in "chap-secrets". Sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEĪdd following line at the lower sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE Now configure internet traffic forwarding in your Pi to get access to your local network: #localip 192.168.0.1 change to localip 192.168.178.28Īdd following at the end of the file (DNS-servers): Remove the “#” and place there the IP-address of the Raspberry Pi. Sudo apt-get update & sudo apt-get dist-upgrade Or if your Debian installation is very old use: Sudo apt-get update & sudo apt-get upgrade In case of something is going wrong this is an easy way to fall back.Īt first install the latest updates (optional): Before starting it is strongly recommended to save an image using Win32DiskImager should be taken from the Raspberry Pi, especially if it is the same one were Domoticz is running on. Because OpenVPN is not supported by an iOS device (iPhone) and PPTP VPN is much more save than “nothing” here is the installation guide. The blogger informs that using PPTP VPN server is not 100% save and proposes to install OpenVPN instead. It is written in German but more or less only the way and the commands are interesting. The blogger (Jan) approved the usage of the commands used in this wiki guide. The original instruction can be found here: Therefore it is advised to use the "VPN tunnel security feature" only for those users who needs secure access to the local nework only from time to time.An open VPN tunnel needs additional power from the iPhone which results in less standby time.Therefore a VPN connection has to be established always before getting access to the local network.An iPhone 4S with iOS7 (editors smartphone) will disable a VPN tunnel after some minutes if switched off/sleep mode.a Smartphone) and a server (Raspberry Pi, NAS, PC,…) all local devices are accessible by their local IP-address:port from remote without individual port forwarding for each IP-address in the router. Once a VPN channel is established between a client (e.g. There is only one VPN server neccessary in the local network!Ī VPN server offers a secure tunnel from a remote client to the local network and there to all devices. This can be done on the same Raspberry Pi where Domoticz is running on or any other Raspberry Pi in the private network. This wiki describes the installation of a VPN server on a Raspberry Pi as a termination point. Using a VPN tunnel gives much more security. 1.3 Client installation on an Android phoneĪ lot of Domoticz users have remote access using a "dyndns" service and port forwarding for every local IP device like a Domoticz server.1.2 Client installation on an iPhone4S (R7).
0 Comments
Leave a Reply. |