如何提高用户的pop3登陆速度

由 小红帽 在 11-11-2002 12:45 发表:

如何提高用户的pop3登陆速度

我用iptables做防火墙,

部分代码如下:

#!/bin/sh

#echo "Start IPTABLE"

IPTABLES="/sbin/iptables"

LT_IFACE="eth1"

FW_IFACE="eth0"

/etc/rc.d/init.d/iptables stop

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

/sbin/modprobe ip_tables

/sbin/modprobe ip_nat_ftp

/sbin/modprobe ip_conntrack

/sbin/modprobe ip_conntrack_ftp

$IPTABLES -F

$IPTABLES -F -t nat

$IPTABLES -P INPUT DROP

$IPTABLES -P OUTPUT DROP

$IPTABLES -P FORWARD DROP

$IPTABLES -A INPUT -i lo -j ACCEPT

$IPTABLES -A OUTPUT -o lo -j ACCEPT

$IPTABLES -A FORWARD -o lo -j ACCEPT

$IPTABLES -A FORWARD -i lo -j ACCEPT

#打开pop3服务

$IPTABLES -A INPUT -p tcp -s any/0 --sport 1024:65535 -d $MAIL_IP

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus