Debian系统分发部署配置.docxVIP

  • 9
  • 0
  • 约6.29千字
  • 约 6页
  • 2016-12-06 发布于河南
  • 举报
Debian6系统分发部署配置操作一.服务器网络配置:1.配置双网卡ip:eth0连接公司网络、eth1连接私有网段auto eth0#iface eth0 inet dhcp(默认是DHCP被注释掉)iface eth0 inet static?address 4?netmask ?gateway 33auto eth1iface eth1 inet static?address 0?netmask ifup eth0 #启动eth0ifup eth1 #启动eth1/etc/init.d/networking restart2.配置iptables路由转发1. echo 1 /proc/sys/net/ipv4/ip_forward2. vim /etc/sysct1.conf 添加下面一行 net.ipv4.ip_forward=1 重启生效!3. 然后运行下列命令(iptables:nat表forward链设置路由转发) iptables --table nat --flush iptables --delete-chain iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE iptables --append FORWARD --in-inter

文档评论(0)

1亿VIP精品文档

相关文档