Answer the question
In order to leave comments, you need to log in
How to set up a PPTP VPN server on AirOS?
Good day, gentlemen!
The question arose of how it is possible to raise a VPN server on the Nanostation Loco m5 device. Please do not offer a variant with DD-WRT and Open-WRT firmware.
I came across a manual, in Catalan . Perhaps someone will tell the veracity of this method.
And my story is this, I fled the country "U" for all known reasons, but in the state "P" there is a global firewall, so I would like to get a little freedom from one personal remote device.
Answer the question
In order to leave comments, you need to log in
In vain he fled to the state "P" !!!!
Were you able to set up a VPN?
1- SSH your device
2- cd /etc/persistent
3- vi rc.poststart
4- Make sure you use Insert and paste the content down here
5- Edit with your values
6- ESC, :wq (saves with vi)
7- save (saves permanently on flash)
8- reboot and enjoy
#CONTENTS OF /etc/persistent/rc.poststart
killall pptp
killall pppd
killall pwdog
rm -rf /etc/ppp/peers/xdccxdcc
rm -rf /etc/ppp/chap- secrets
rm -rf /etc/ppp/reconnect-script
mkdir /etc/ppp/peers/
touch /etc/ppp/peers/xdccxdcc
touch /etc/ppp/chap-secrets
touch /etc/ppp/reconnect-script
chmod +x /etc/ppp/reconnect-script
chmod 0600 /etc/ppp/chap-secrets
cat << EOF > /etc/ppp/peers/xdccxdcc
pty "pptp HOSTNAME --nolaunchpppd"
noproxyarp
ipparam xdccxdcc
remotename xdccxdcc
name USERNAME
require-mppe-128
nobsdcomp
nodeflate
lock
noauth
refuse-eap
mtu 1400
mru 1400
EOF
cat << EOF > /etc/ppp/chap-secrets
USERNAME xdccxdcc PASSWORD *
EOF
cat << EOF > /etc/ppp/reconnect-script
killall pptp
killall pppd
sleep 5
pppd call xdccxdcc
sleep 40
ping -c 5 10.147.147.1 &
sleep 20
killall ping
exit 0
EOF
echo "route add -net 192.168.27.0 netmask 255.255.255.0 gw 10.147.147.1 dev ppp0" >> /etc/ppp/ip-up
echo "route add -net 10.147.147.0 netmask 255.255.255.0 gw 10.147.147.1 dev ppp0 " >> /etc/ppp/ip-up
/bin/pwdog -d 60 -p 140 -c 4 -m 300 -e "cd /etc/ppp && ./reconnect-script" 10.147.147.1 &
pppd call xdccxdcc &
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question