復(fù)制代碼 代碼如下:
ifconfig eth0 192.168.10.222 //配置網(wǎng)卡0
ifconfig eth1 192.168.9.254 //配置網(wǎng)卡1
route add default gateway 192.168.10.254 //配置默認(rèn)網(wǎng)關(guān)
復(fù)制代碼 代碼如下:
iptables -t nat -a POSTROUTING -o eth0 -s 192.168.9.0/24 -j SNAT --to 192.168.10.222 //將9網(wǎng)段NAT為192.168.10.222出去
復(fù)制代碼 代碼如下:
/sbin/iptables -I FORWARD -d gateway.messenger.hotmail.com -j DROP
/sbin/iptables -I FORWARD -p tcp --dport 1863 -j DROP
新聞熱點
疑難解答
圖片精選