zoukankan      html  css  js  c++  java
  • vtun 配置文件

    一、客户端

    options {
      port 5000;            # Listen on this port.
      ppp           /usr/sbin/pppd;
      ifconfig      /sbin/ifconfig;
      route         /sbin/route;
      firewall      /sbin/iptables;
    }

    server {
      passwd  Ma&^TU;       # Password
      keepalive yes;        # Keep connection alive
      type tun;
      proto udp;
    up {
            ifconfig "%% 10.10.10.88 pointopoint 10.10.10.99 mtu 1450";
      };
    }

    三、服务器

    options {
      port 5000;            # Listen on this port.
      ppp           /usr/sbin/pppd;
      ifconfig      /sbin/ifconfig;
      route         /sbin/route;
      firewall      /sbin/iptables;
      ip            /sbin/ip;
    }
    default {
      compress no;          # Compression is off by default
      speed 0;              # By default maximum speed, NO shaping
      type tun;
      proto udp;
      keepalive yes;
    }

    server {
      passwd  Ma&^TU;       # Password
      keepalive yes; # Keep connection alive
      type tun; # IP tunnel
      proto udp; # UDP protocol
      keepalive yes; # Keep connection alive
    up {
      ifconfig "%% 10.10.10.99 pointopoint 10.10.10.88 mtu 1450";
      program /sbin/arp "-sD 10.10.10.88 eth1 pub";
      firewall "-I forward -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT";

    };
    down {
      firewall "-D forward -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT";
      program "/sbin/arp -d 10.10.10.88 -i eth1";
    };
    }

  • 相关阅读:
    冒泡排序
    Windows 10家庭版升级专业版
    VRRP + MSTP实验
    MSTP多生成树协议
    解决office 2016提示“你的许可证不是正版,并且你可能是盗版软件的受害者。使用正版Office,避免干扰并保护你的文件安全”
    路由器开启ssh实现远程管理
    CentOS 7安装Telnet服务进行远程管理
    CentOS 7开启ssh服务进行远程管理
    华为特有接口Hybrid
    Vlan Mapping
  • 原文地址:https://www.cnblogs.com/helloweworld/p/2691707.html
Copyright © 2011-2022 走看看