树莓派 more


树莓派 rust
https://tech.iotcomeon.com/2018/06/tech/deploy/515/
sudo curl https://sh.rustup.rs -sSf | sh

利用树莓派搭建PPTP协议的VPN服务端
http://www.nrjs.cn/ctt/11120053.html
https://www.domoticz.cn/wiki/%E5%9C%A8%E6%A0%91%E8%8E%93%E6%B4%BE%E4%B8%AD%E5%AE%89%E8%A3%85PPTP-VPN%E6%9C%8D%E5%8A%A1%E5%99%A8

 

----

ref:
IPtables中SNAT和MASQUERADE的区别
http://server.zhiding.cn/server/2008/0317/772069.shtml

centos 6.5搭建 pptp VPN连接上了无法上网
https://zhidao.baidu.com/question/433558963614296524.html
你的默认网关走的是vpn线路吗?
vpn服务器设置了nat地址转换吗?
追问
NAT转换下面这一条命令就够了吧?
iptables -t nat -A POSTROUTING  -o eth1 -s 192.168.0.0/24 -j MASQUERADE
追答
-o 是你的出口网卡,怎么是eth1 ? 你有两块网卡吗?
-s 参数如果不确定,可以不要。

然后用tcpdump抓一下包,看看有没有vpn客户的数据包过来。
tcpdump -i ppp0

posted on 2019-05-03 23:51  cutepig  阅读(184)  评论(0编辑  收藏  举报

导航