• VMware ESXi 配置小结


    VMware ESXi 配置小结
    ---------------------------------------------------------------------------------------------------

    VMware ESXi, 5.1.0
    ---------------------------------------------------------------------------------------------------
    vSwitch0
    192.168.168.70
    255.255.255.0
    192.168.99.1 (注意:修改了vSwitch1自动修改了)
    vSwitch1
    192.168.99.254
    255.255.255.0
    192.168.99.1


    port
    ---------------------------------------------------------------------------------------------------
    VM Network eth0
    192.168.168.80
    255.255.255.0
    192.168.168.168

    VM Network 2 eth1
    192.168.99.1
    255.255.255.0
    192.168.99.1


    winxp
    ---------------------------------------------------------------------------------------------------
    VM Network 2
    192.168.99.253
    255.255.255.0
    192.168.99.1


    centos10
    ---------------------------------------------------------------------------------------------------
    VM Network 2
    192.168.99.10
    255.255.255.0
    192.168.99.1


    CentOS下iptables设备双网卡的端口转发规则 winxp
    ---------------------------------------------------------------------------------------------------
    http://blog.csdn.net/cjy37/article/details/7094848

    首先利用setup命令关闭防火墙。

    echo 1 > /proc/sys/net/ipv4/ip_forward

    iptables -t nat -A PREROUTING -d 192.168.168.80 -p tcp --dport 3389 -j DNAT --to-destination 192.168.99.253:3389
    iptables -t nat -A POSTROUTING -d 192.168.99.253 -p tcp --dport 3389 -j SNAT --to 192.168.99.1

    iptables -A FORWARD -o eth1 -d 192.168.99.253 -p tcp --dport 3389 -j ACCEPT
    iptables -A FORWARD -i eth1 -s 192.168.99.253 -p tcp --sport 3389 -j ACCEPT

    service iptables save
    service iptables restart

    iptables -t nat -L


    apache
    ---------------------------------------------------------------------------------------------------
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_http_module modules/mod_proxy_http.so


    Listen 8080

    NameVirtualHost *:8080

    <VirtualHost *:8080>
    ServerName 192.168.168.80:8080
    ProxyRequests Off
    #<Proxy *>
    # Order deny, allow
    # Allow from all
    #</Proxy>
    ProxyPass / http://192.168.99.10/
    ProxyPassReverse / http://192.168.99.10/
    </VirtualHost>

  • 相关阅读:
    天气预报APP(2)
    天气预报APP(1)
    android ——网络编程
    android ——Intent
    android ——可折叠式标题栏
    5.1 类,实例,实现,方法
    5.0 面向对象
    python 基础
    模拟实现一个ATM + 购物商城程序
    python 基础
  • 原文地址:https://www.cnblogs.com/coffee_cn/p/3198760.html
Copyright © 2020-2023  润新知