Здравствуйте. Настраивал на Ubuntu шлюз для организации и заметил странность, всё что я прописал в rc.local по какой-то причине не обрабатывается при запуске, только после ручного старта. Вот содержимое rc.local:
root@haba-ubuntu:/etc# cat rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -P OUTPUT ACCEPT
/sbin/iptables -P FORWARD ACCEPT
#/sbin/iptables -I INPUT 1 -i eth0 -j ACCEPT
#/sbin/iptables -I INPUT 1 -i lo -j ACCEPT5
/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
# -s 192.168.10.0/24
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 85.198.124.18 --dport 5000 -j DNAT --to 192.168.10.10:3389
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 85.198.124.18 --dport 50000 -j DNAT --to 192.168.10.10:3389
#/sbin/iptables -A FORWARD -s 192.168.10.0/24 -j ACCEPT
#/sbin/iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT
sysctl -w net.ipv4.conf.all.forwarding=1
exit 0
Ubuntu 10.04 LTS
root@haba-ubuntu:/etc# ls -la | grep rc.local
-rwxr-xr-x 1 root root 947 2010-09-10 10:52 rc.local
ЗЫ: Если еще кто сможет, расскажите почему форвард портов не пашет?

ЗЗЫ: Буду очень благодарен ответам ибо в организации часто свет тухнет, а от меня они в 70 км.
