zhu894532094 发表于 2015-4-4 11:29:25

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 Networketh0
192.168.168.80
255.255.255.0
192.168.168.168
  VM Network 2eth1
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.iyunv.com/cjy37/article/details/7094848
  首先利用setup命令关闭防火墙。
  echo1 > /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
  
    ServerName 192.168.168.80:8080
    ProxyRequests Off
    #
    #    Order deny, allow
    #    Allow from all
    #
    ProxyPass / http://192.168.99.10/
    ProxyPassReverse / http://192.168.99.10/

  
页: [1]
查看完整版本: VMware ESXi 配置小结