Jump to content

Recommended Posts

Posted

У меня следующая проблема: есть рутер (radhat 9 shrike) на котором висит Kerio mailserver. Рутинг производится следующей командой:

#!/bin/sh

modprobe -k iptable_filter iptable_nat 1>/dev/null 2>/dev/null

if [ -z "$1" ] || [ -z "$2" ]; then

exit 1

fi

if [ -z "`ifconfig $1`" ]; then

echo "error net1"

exit 0

fi

if [ -z "`ifconfig $2`" ]; then

echo "error net2"

exit 0

fi

iptables --flush

iptables --table nat --flush

iptables --delete-chain

iptables --table nat --delete-chain

iptables --table nat --append POSTROUTING --out-interface $1 -j MASQUERADE

iptables --append FORWARD --in-interface $2 -j ACCEPT

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

После 2-3 часов скорость падает до 1kb/s, и через какоето время востонавлевается. В чем может быть проблема? Мтожет кто знает????

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...