分类目录
Blogroll
功能
标签归档:VPN
CentOS下如何建立IP in IP隧道
在Linux之间要建立VPN隧道有很多可以选择,如:pptp、IPsec、OpenVPN等等,如果对于加密要求不高,纯粹是为了网络内部互联,使用iptunnel也是不错的,起码效率很高。 ======================= 机器配置 A: 外网IP:10.10.10.1 VPNIP:192.168.1.1 B: 外网IP:10.10.20.1 VPNIP:192.168.1.2 ======================= A机器相关配置 1、增加/etc/sysconfig/network-scripts/ifcfg-tun0,其内容为: 2、重新启动网络: /etc/init.d/network restart 3、修改防火墙规则,此处-p后面为ipencap。 iptables -I INPUT -s 10.10.20.1 -p ipencap -j ACCEPT B机器相关配置 1、增加/etc/sysconfig/network-scripts/ifcfg-tun0,其内容为: 2、重新启动网络: /etc/init.d/network restart 3、修改防火墙规则,此处-p后面为ipencap。 iptables -I INPUT -s 10.10.10.1 -p ipencap -j ACCEPT … 继续阅读
PPTP Server Installation in CentOS 5
I am writing this document on how to build a Linux Point to Point Tunneling Protocol (PPTP) server using Poptop. This allows roaming users to connect to their corporate network from anywhere on the Internet securely and inexpensively. It supports … 继续阅读
用OpenVPN快速实现VPN
本文介绍如何用OpenVPN快速实现VPN,为提高效率,数据传输过程不对数据进行加密。 环境: A机器: 外网IP: 192.168.0.1 虚拟网卡:10.0.0.1 B机器: 外网IP: 192.168.8.1 虚拟网卡:10.0.8.1 A机器配置文件: local 192.168.0.1 lport 1194 proto tcp-server remote 192.168.8.1 1194 dev tun0 ifconfig 10.0.0.1 10.0.8.1 B机器配置文件: local 192.168.8.1 lport 1194 proto tcp-client remote 192.168.0.1 1194 dev tun0 ifconfig 10.0.8.1 10.0.0.1 … 继续阅读
Linux下用iptunnel实现VPN
环境: A机器: 外网IP: 192.168.0.1 虚拟网卡:10.0.0.1 B机器: 外网IP: 192.168.8.1 虚拟网卡:10.0.8.1 机器A配置: /sbin/modprobe ipip /sbin/iptunnel add tun0 mode ipip local 192.168.0.1 remote 192.168.8.1 ttl 64 /sbin/ifconfig tun0 10.0.0.1 pointopoint 10.0.8.1 netmask 255.255.255.255 机器B配置: /sbin/modprobe ipip /sbin/iptunnel add tun0 mode ipip local 192.168.8.1 … 继续阅读