|
|
Setup VPN FAKE for Linux
1 You need to download last version of ppp and pptp.
You can download them from http://poptop.org/.
2 Compile and install them. Alll the previous versions you have to uninstall.
Example:
tar zxvf pptp-linux-XXX.tar.gz
cd pptp-linux-XXX
make
make install
|
3 Then, you have to setup some connection parameters.
3.1 Create file pptpfake in the directory /etc/ppp/peers:
name YOUR_LOGIN
-pap
+chap
noauth
debug
|
3.2 Change file chap-secrets in the directory /etc/ppp:
|
YOUR_LOGIN * YOUR_PASSWORD *
|
3.4 Change file options in the directory /etc/ppp.
It have to contain only one line:
4 That is script for establishing VPN Fake for example on Express AM1 sat:
#!/bin/bash
MY_GW="xxx.xxx.xxx.xxx"
start(){
echo "Starting VPN Fake... "
/sbin/modprobe ipip && \
/sbin/modprobe ip_gre && \
/sbin/ip route add 82.211.136.2 via ${MY_GW} && \
/usr/sbin/pptp 82.211.136.2 call pptpfake && \
/bin/sleep 10 && \
/sbin/ip route delete default && \
/sbin/ip route add default dev ppp0 && \
echo "OK"
}
stop(){
/usr/bin/killall -9 pptp
/sbin/ip route delete 82.211.136.2 > /dev/null 2>&1
/sbin/ip route delete default && \
/sbin/ip route add default via ${MY_GW}
}
case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo "usage: $0 start|stop "
;;
esac
|
VPN_SERVER it is name of vpn server. It depend from your satellite:
| Express AM1 |
am1-vpn-fake.planetsky.com |
| PAS7 |
pas7-vpn-fake.planetsky.com |
| PAS10 |
pas10-vpn-fake.planetsky.com |
| W6 |
w6-vpn-fake.planetsky.com |
|