美文网首页
2018-10-15

2018-10-15

作者: 小夜_9027 | 来源:发表于2019-06-25 18:49 被阅读0次

一级标题

#! /bin/bash
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/default/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/bond-pro/send_redirects

iptables -t nat -F
iptables -t nat -X
iptables -t nat -A POSTROUTING -s 192.168.27.0/24 -j MASQUERADE
IPVSADM='/sbin/ipvsadm'
$IPVSADM -C
$IPVSADM -A -t 172.25.224.47:18010 -s wrr
$IPVSADM -a -t 172.25.224.47:18010 -r 192.168.27.61:57001 -m -w 1
$IPVSADM -a -t 172.25.224.47:18010 -r 192.168.27.61:57002 -m -w 1

#$IPVSADM -a -t 172.25.224.47:18010 -r 192.168.27.98:57001 -m -w 1
#$IPVSADM -a -t 172.25.224.47:18010 -r 192.168.27.98:57002 -m -w 1

相关文章

网友评论

      本文标题:2018-10-15

      本文链接:https://www.haomeiwen.com/subject/ieuqzftx.html