CentOS 6 配置 PPTP VPN 概述

来源:互联网 发布:网络劫持是什么意思 编辑:程序博客网 时间:2024/06/08 05:01

参考文章:

https://help.aliyun.com/knowledge_detail/41345.html

http://www.123haitao.com/question/67945?notification_id-263877__rf-false__comment-2__item_id-94748__answer_id-94748__single-TRUE


注意事项:

1:iptables -t nat -A POSTROUTING -s 123.57.219.0/24 -j MASQUERADE

这步的ip地址第四位是0.不是完整的ip。

2:iptables -t nat -A POSTROUTING -o eth0 -s 103.226.126.0/24 -j SNAT --to-source 103.226.126.21

如果参考第二个文档,注意实际网卡编号.eth0。可通过ifconfig查看。





0 0