2012 年五月
« 四    
 12345
6789101112
13141516171819
20212223242526
2728293031  
  • Posts Tagged ‘openvpn’

    OpenVPN Setup – Xen CentOS 5

    Note: This tutorial is based on the YardVPS Xen (Tree plan) using CentOS 5

    Please select CentOS 5 32bit as your OS when you purchase your YardVPS or rebuild the VPS via SolusVM.

    Read the rest of this entry »

    让你的家庭也接入IPV6网络吧。

     

     

    为什么我们中国的网络发展总是那么的滞后呢?

     

     

    为什么我们国家的CNNIC总在叫着要加快IPV6的步伐! 可是却没有任何进展??

     

     

    我们也不去报怨了。   现在让我们的家庭也接入IPV6吧。(不是指某一台机器哟)

     

     

    要想让你的家庭也接入IPV6网络。肯定得有一段地址吧!    这个简单   申请吧! (是不是在想我去哪儿申请呢? )   

    去国外申请。 为什么要去国外。  因为国外拥有大量的IPV6地址。人家的地址段可以约等于我们的地址位。

     

    Read the rest of this entry »

    openvpn in Linux (FC5)

    [root@localhost src]# gzip -dc openvpn-2.1.1-ipv6-0.4.10.patch.gz | patch –p1

     

    ifconfig eth0 add 2005::4/64

    route –A inet6 add default gw 2005::1

    加入 /etc/rc.d/rc.local

     

    cp /etc/sysconfig/network-script/ifcfg-eth0 /etc/sysconfig/network-script/ifcfg-eth0:1

    Change device eth0 ==>eth0:1

     

     

    OpenVPN 2.1.1 use bridge (TAP Driver)

    dev tap0 (根据实际情况调整。)

     

    Server-bridge 192.168.8.4 255.255.255.0  192.168.8.20 192.168.8.250

                       —————————————  ——————  ——————–

                                         |                               |                   |

                          服务端的IP地址和掩码        客户端分配的开始范围

     

    如果启用了防火墙(Iptables)

    iptables -A INPUT -i tap0 -j ACCEPT
    iptables -A INPUT -i br0 -j ACCEPT
    iptables -A FORWARD -i br0 -j ACCEPT

    [root@localhost sample-scripts]# cat bridge-start
    #!/bin/bash

    #################################
    # Set up Ethernet bridge on Linux
    # Requires: bridge-utils
    #################################

    # Define Bridge Interface
    br="br0"

    # Define list of TAP interfaces to be bridged,
    # for example tap="tap0 tap1 tap2".
    tap="tap0"

    # Define physical ethernet interface to be bridged
    # with TAP interface(s) above.
    eth="eth1"
    eth_ip="192.168.8.4"
    eth_netmask="255.255.255.0"
    eth_broadcast="192.168.8.255"

    eth_ipv6="2005::1/64"
    for t in $tap; do
        openvpn –mktun –dev $t
    done

    /usr/sbin/brctl addbr $br
    /usr/sbin/brctl addif $br $eth

    for t in $tap; do
        brctl addif $br $t
    done

    for t in $tap; do
        ifconfig $t 0.0.0.0 promisc up
    done

    ifconfig $eth 0.0.0.0 promisc up

    ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast
    ifconfig $br add $eth_ipv6

    OpenVPN IPv6 Tunnel Broker Guide

    最近在调试OpenVPN IPV6,发觉这个有用的资料。特收集到这里。

    Copyright © 2004 by Christian Strauf

    Acknowledgements go to people from the University of Erlangen for inspiring us with the idea to use OpenVPN for a tunnel broker service. Thank you, guys, it works like a charm!


    Table of Contents:

    1. Introduction
    2. Definition of the term "tunnel broker"
    3. Tunnel broker clients
    4. Installation of tunnel broker components
      1. Installation of OpenSSL CA
      2. Installation of OpenVPN server
      3. Installation of user database
    5. Functionality of tunnel broker and its components
      1. OpenSSL CA
      2. OpenVPN server
    6. Routing configuration
    7. Sample server configuration
    8. Sample subnet client configuration
    9. Management (and download of JOIN tunnel broker scripts)
    10. Client user guide
    11. Appendix

     

    Read the rest of this entry »

    OpenVPN and CentOS 5 Installation and Configuration Guide

    Many ppl found that installing VPN on linux is not that easy, the abvailable installation guides on VPN is often limited. I have tried a lot of installation guides and finally get it connected successfully.

    Here are the steps to guide you installed a secure connection between your? CentOS5 and Windows with OpenVPN open source application.

     

     

    Read the rest of this entry »

    win7 会自动创建IPV6隧道?

        最近在配置OpenVPN服务器,准备拿来做为IPV6 用户远程接入。当我在本地计算机上测试网络联通性时,突然发现 我不会开任何的IPV6工具软件。也能PING通IPV6地址。

     

    我计算机的系统是:

    image

     

    我的网络是:  内网环境 (IPV4地址为:192.168.77.*/24)   

     

        当时我正准备用PING测试一下服务器的IPV6地址能不能通,但是又忘了开启IPV6接入软件。  却惊奇的发现可以PING同服务器。

    ipv6.ghitr.com

     

    Read the rest of this entry »