需先搭建 openvpn 海外服务端, 具体参考 https://www.cnblogs.com/weifeng1463/p/11041550.html

选择阿里云华东ecs 搭建openvpn 的客户端 , 具体参考 https://www.cnblogs.com/weifeng1463/p/7803354.html

在同一华东ecs上搭建 ss-server 服务端, 具体参考  https://www.cnblogs.com/weifeng1463/p/6759682.html

华东ecs 需只配置内网ip 地址, 通过vpn 或者阿里云后台去ssh登录 。

具体实例配置:

[root@ss-server_vpn-client ~]# ps aux|grep sss
root 2939 0.0 0.4 202128 7976 ? Ss 16:46 0:00 /usr/bin/python /usr/bin/ssserver -c /etc/shadowsocks.json -d start

  

[root@ss-server_vpn-client ~]# ps aux|grep openvpn
root 2950 0.0 0.1 75424 3304 ? Ss 16:46 0:00 openvpn --daemon --cd /etc/openvpn --config fanqiang001.conf --log-append /var/log/openvpn.log

  

[root@ss-server_vpn-client ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.8.200.13 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.0.253 0.0.0.0 UG 0 0 0 eth0
10.8.200.1 10.8.200.13 255.255.255.255 UGH 0 0 0 tun0
10.8.200.13 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
47.252.85.224 192.168.0.253 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 10.8.200.13 128.0.0.0 UG 0 0 0 tun0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
172.20.18.0 192.168.0.253 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

  

[root@ss-server_vpn-client ~]# cat /etc/rc.local
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot. touch /var/lock/subsys/local ssserver -c /etc/shadowsocks.json -d start openvpn --daemon --cd /etc/openvpn --config fanqiang001.conf --log-append /var/log/openvpn.log & ip route add 172.20.18.0/24 via 192.168.0.253

  

win10 , mac 客户端ss 连接服务端后 可正常连接外网 。

最新文章

  1. 如果你也会C#,那不妨了解下F#(7):面向对象编程之继承、接口和泛型
  2. Notepad++编写Markdown
  3. int->string-------------c
  4. TinyFrame升级之七:重构Repository和Unit Of Work
  5. sudo用户管理
  6. c++模板注意事项
  7. android camera(四):camera 驱动 GT2005
  8. iOS摇一摇功能、震动功能、简单的摇动动画、生成二维码图片与发送短信等几个功能
  9. Maven就是这么简单
  10. Server-U FTP与AD完美集成方案详解
  11. Android转换集合数据(ArrayList)为Json格式并上传服务器
  12. babel (三) babel polly-fill
  13. Django 跨域请求
  14. 《Apache kafka实战》读书笔记-管理Kafka集群安全之ACL篇
  15. Linux 下的dd命令使用详解(摘录)【转】
  16. ES5-ES6-ES7_const声明只读常量
  17. Many Website Of WallPaper
  18. MySQL数据库解决乱码 latin1 转 gbk
  19. [UE4]纯函数的执行时机
  20. 初学Struts2

热门文章

  1. hdu3486Interviewe(二分是错的)(ST算法RMQ + 判定上下界枚举)
  2. python3中用HTMLTestRunner.py报ImportError: No module named 'StringIO'的解决方法:
  3. sql分割函数
  4. spring Security的自定义用户认证
  5. Redis 高可用架构设计(转载)
  6. springboot的HTTPS配置
  7. 使用vault pki 为nginx 生成tls 证书文件
  8. linux命令之------Chown命令
  9. js无限轮播算法中干掉if判断
  10. html5获取用户当前位置