人的头脑太复杂,时间过得久,有时候连自己也被自己骗了,记下来才是最真实的...... 注册 | 登陆
浏览模式: 标准 | 列表分类:??????

[置顶] ????VPN???

????VPN???

???vps?????SSH???????/??SSH??

1??putty??VPS????????????????????username???????????
??useradd -M -s /sbin/nologin -n username
2??????????
    passwd username
??????????????????????????????SSH?????????

????OpenVPN????????

OpenVPN????????VPN?????SSL?????????????????????? OpenVPN?????www.openvpn.net ?

    ????Openvpn??????
  1???OpenVPN???
OpenVPN???????? http://openvpn.net/index.php/open-source/downloads.html ??????????
  2?????OpenVPN???????????OpenVPN?????config?????????????OpenVPN?????????????????ca.crt?lxvoip.crt?lxvoip.key?(?????????????????)
  3?????????/bin/???openvpn-gui.exe?????????OpenVPN??????????????????
    ??????????????????OpenVPN???????????????????????????????VPN????

????DIY??-GAE?

?????????????GAE??fan??????
??????????????????
????IP???????????
??????? Web proxy??????????????VPN????VPN???????
?????DIY????????????

????????????????????????????????VPN??

??
1.??????google? GAE web??????????? ?? web proxy???????fan???????????????????????????????????2.?GAE??????? Google App Engine?google????????? Google ?????????? WEB ??????????????
3.?????????GAE???????2G????????????1G?????????
4.?????
   1)?gmail????????GAE;
   2)????????????????? ?? ????? ????????????????GAE???????GV???;
   3)?SDUpload??????????????? 2.1M, ?????????GAE???????1?
   4??fetchserver?????7KB ?????GAE???????????sever?????????????????2?
   5??GAppProxy???7.5M????????????????? ???????3?

???????????
GAE????????SDUpload???? fetchserver ? ????GAE? GAppProxy?????????fetchserver?????GAE???????fan??????????
  
   

????????????????????????

???????GAE?

1. ????
???? https://appengine.google.com ??gmail??????????????????Create Application?


2. ????
?????????????????????????????????????????????????????GV????????????united states?????????????????????GV???????????????????????????GV?????????send???


??????GV?????????Google App Engine Code: 7224471? ????????????????????????????


???????Country and Carrier?????????????????T-mobile????????GV???+1???????GV?????send???????????????????????????????????????????7224471?????????????????


??????????????????????????????????????????????????

????GAE??????

????????????????????????????????????????Check Availability??????????????yes???????????????????????????????????I accept this term????Create Application?




????????????????????


??????????????????????????? My Account?????????????? My Applications??????????????????


?????????????

?????????fetchserver??????GAE
1. ???fetchserver?
????????????SDUpload??????????1?????? fetchserver??????2?? ??????????D????????????????fetchserver????? SDUpload??????????


???? fetchserver ??????UNIX???????????Notepad++???app.yaml???????????????????????? test ?????????????????????????? XXXXXX.appspot.com ?XXXXXX???????????????


2. ???fetchserver?????????????????-?????”CMD”?

?????????????SDUpload???????sdupload update fetchserver ??????????????????????


???????????????????gmail??????

????????gmail???????????????????????????????????????????????

??????????fetchserver?????????GAE,???????????


??????????????????????????????????

?????OK??????????fan???

???????fan??
1.???GAppProxy?
?????????????????????????????????? GAppProxy???????3?????????????????? gui.exe ?? FetchServer ??????????????http://??Appspot??/fetch.py ????Save???OK??????


????Service???????Yes




2.?????????
???????????????????????127.0.0.1:8000??????GAE???????????????????????fan??????????Chrome?Proxy Switchy?Firefox?Autoproxy?????360?????????
??????--->?????----->????????????????????????????---->?????---->??127.0.0.1:8000 ?????


OK???????fan?????????????????????

?????????GAE???????????
1.???2G????????????1G???GAE??????HTTPS????????????????????
2.????????????????????????????FetchServer??????????????????????????????????????????????2G????????????????????????????

================================== ?????=============================================
????????????????fan???????????????????????????????????????????????!

================================================?????================================
?SDUpload?????1?http://good.gd/1518590.htm
?fetchserver?????2?http://good.gd/1518595.htm
?GAppProxy?????3?http://good.gd/1518599.htm http://www.lxvoip.com/thread-41524-1-1.htm

?Debian?????PPTP?VPN

?????VPS???PPP?TUN/TAP???XEN VPS?????????????

??????/etc/network/interfaces,???????????,??????

auto eth0:0
iface eth0:0 inet static
address 192.168.10.1
netmask 255.255.255.0
broadcast 192.168.10.255

????????/etc/init.d/networking restart??????,??????????,????,??????ifconfig,?????????:

eth0:0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

??????????/etc/network/if-up.d/iptables(?????,????),???????:

#! /bin/sh
# External Interface , Public Interface
EXTIF="eth0"
# Internal Interface, Private Interface
INIF="eth0:0"
# Internal Network
INNET="192.168.10.0/24"
# Enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# Flush all rules.
iptables -F
iptables -t nat -F
# Set up NAT.
iptables -t nat -A POSTROUTING -s $INNET -o $EXTIF -j MASQUERADE
# for MSN
iptables -A FORWARD -o $EXTIF -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1400:1536 -j TCPMSS --clamp-mss-to-pmtu

????????,???????????:
chmod +x /etc/network/if-up.d/iptables

??????,??/etc/init.d/networking restart,??????,??,nat???????.?????,?????????,????,???????????.

??????PPTP,?debian?,????????apt-get install pptpd????pptp.????????????.

????/etc/ppp/pptpd-options,??????????,???????????:
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
ms-dns 8.8.8.8
ms-dns 8.8.4.4

??????????google?????dns??,??,????,???????????dns??.

??????????/etc/pptpd.conf,??????????,???????????:
option /etc/ppp/pptpd-options
logwtmp
localip 192.168.10.1
remoteip 192.168.10.10-255

???,???vpn???ip???192.168.10.1,??????ip???192.168.1.10-255,??????nat?????ip????,?????????ip??????.

??,????????/etc/ppp/chap-secrets???vpn??,????????????vpn,???123456???,??:
vpn pptpd 123456 *

????,vpn??????,?????????,???????????/etc/ppp/chap-secrets??.

?????????????vpn????619??,?????????:

mknod /dev/ppp c 108 0

?????????????pptp?vpn???.

??PPTP???? /etc/init.d/pptpd restart

??????????