![](http://content.invisioncic.com/r167241/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
David A Lewis
-
Posts
3 -
Joined
-
Last visited
Posts posted by David A Lewis
-
-
Hi All,
I am hoping someone is able to assist me in what I am sure is a beginner question.
I have configured my pineapple nano to work with my openvpn server and to route all connected pineapple traffic via the VPN (thanks to the Hak5 video).
I have created a script (1.sh) that contain the following:
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 ACCEPTThis works fine.
Is there a way that I can get 1.sh to run on boot up?
Thanks
David
-
Hi All,
I am hoping someone is able to assist me in what I am sure is a beginner question.
I have configured my pineapple nano to work with my openvpn server and to route all connected pineapple traffic via the VPN (thanks to the Hak5 video).
I have created a script (1.sh) that contain the following:
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 ACCEPTThis works fine.
Is there a way that I can get 1.sh to run on boot up?
Thanks
David
A Real Newbie Question - Autorun at boot up
in Questions
Posted
Sorry - posted in wrong area and not sure how to remove message. Please ignore....