Rainman_34 Posted July 20, 2017 Posted July 20, 2017 I am having a bit of an issue and I know everyone here can help me. I am running a VPN server and want my pineapple to automatically connect to VPN server on startup. I installed openvpn on the pineapple and copied the .ovpn file to my sd card. I then did chmod +x rc.local I then edited the rc.local file and put the below command at the very top. openvpn /etc/sd/openvpn/filename.ovpn (this command works if I do it from the terminal) However when I power on the pineapple the pineapple does not connect to the VPN. Do I need to create a bash script and make it sleep for say 60 seconds after startup to give it time to be setup prior to running?
Lord_KamOS Posted July 20, 2017 Posted July 20, 2017 it might breaks because its a verbose command, try it like this. openvpn /etc/sd/openvpn/filename.ovpn > /dev/null 2>/dev/null & I added something that will redirect the output to /dev/null (the void)
Rainman_34 Posted July 21, 2017 Author Posted July 21, 2017 8 hours ago, Lord_KamOS said: it might breaks because its a verbose command, try it like this. openvpn /etc/sd/openvpn/filename.ovpn > /dev/null 2>/dev/null & I added something that will redirect the output to /dev/null (the void) I tried that as well and it failed. Still no connection on boot.
Lord_KamOS Posted July 21, 2017 Posted July 21, 2017 7 hours ago, Rainman_34 said: I tried that as well and it failed. Still no connection on boot. can you try and run rc.local manually.
mikew Posted July 23, 2017 Posted July 23, 2017 Is there a repo I can add to get a newer openvpn-ssl package than the default one opkg finds (2.3.6)? I'm trying to connect to my vpn provider from the nano, but it fails because my VPN provider offers IPv6, which the nano does not support and OpenVPN 2.3.6 exits with a fatal error if the provider offers it and the device doesn't support it. They added some bypass switches in 2.4, but I can't seem to find a openwrt compatible distribution. Any pointers? Either to fix the IPv6 issue or update to a more compatible OpenVPN. TIA
Rainman_34 Posted July 24, 2017 Author Posted July 24, 2017 Sorry it has taken me so long to get back. I can run it manually but it's not working on startup for some reason.
Freddy Sulbarán Posted January 30, 2018 Posted January 30, 2018 On 7/20/2017 at 10:51 PM, Rainman_34 said: I tried that as well and it failed. Still no connection on boot. Thank you!
Olaf Mufjay Posted February 16, 2019 Posted February 16, 2019 Hello friends, I have a pineapple Tetra I use this as my home server and wanted to connect this with openvpn when booting. I am also frustrated because i did not make it after the first attempts. But first please be very very careful with these autoboot directories /etc/init.d you can cause a lot of damage that fixes only one factory reset and you lose valuable data the solution is very simple ... 1. Download the autologin file from your VPN Access server 2. Copy the client.ovpn to your pineapple. scp /root/Downloads/client.ovpn 172.16.42.1:/root 3. Connect with SSH with your pineapple ssh 172.16.42.1 4. Copy the client file into the ovpn path of the etc directory and change it as a configuration mv /root/client.ovpn /etc/openvpn/client.conf 5. Restart and see what happens reboot Greetings from Germany !!!
rr_123 Posted March 24, 2021 Posted March 24, 2021 how can I install packages via command line on the Mark 7 pineapple? I'm trying to install openvpn on the new Mark 7 pineapple. I've tried: opkg install openvpn and get: Unknown package 'openvpn'. Collected errors: * opkg_install_cmd: Cannot install package openvpn.
chrizree Posted March 24, 2021 Posted March 24, 2021 Ask Mk7 questions in the Mk7 section of the forum... always run "opkg update" before trying to install anything
Recommended Posts
Archived
This topic is now archived and is closed to further replies.