Не работает модуль utm5_rfw

Технические вопросы по UTM 5.0
Ответить
J0hn
Сообщения: 15
Зарегистрирован: Сб май 05, 2007 20:07

Не работает модуль utm5_rfw

Сообщение J0hn »

Здравствуйте, помогите пожвлуйста решить проблему

Код: Выделить всё

rfw_name=127.0.0.1
firewall_path=/sbin/iptables
firewall_flush_cmd=/sbin/iptables -F
firewall_type=local
sudo_path=/usr/bin/sudo
log_level=10
core_host=127.0.0.1
core_port=11758
rfw_login=web
rfw_password=***
log_level=3
log_file_main=/netup/utm5/log/rfw-main.log
log_file_debug=/netup/utm5/log/rfw-debug.log
log_file_critical=/netup/utm5/log/rfw-critical.log
# uncomment this line if you want to start firewall rules one after another
dont_fork=yes
Запускаю с правами nobody, в /etc/sudores необходимое прописанно для iptables:

Код: Выделить всё

nobody    5976     1  0 14:01 ?        00:00:00 /netup/utm5/bin/utm5_rfw
При включении пользователя в биллинге в логе видем:

Код: Выделить всё

?Debug : May 22 14:08:48 RFW URFA[plugin]: Got 'exec' command...
?Debug &#58; May 22 14&#58;08&#58;48 FWCntl&#58; Executing command </usr/bin/sudo>
?Debug &#58; May 22 14&#58;08&#58;48 FWCntl&#58; Waiting second child process ... second child pid <6898>
?Debug &#58; May 22 14&#58;08&#58;48 FWCntl&#58; Second child process <6898> exited with status <512>
?Debug &#58; May 22 14&#58;08&#58;48 FWCntl&#58; Executing FW rule&#58; /sbin/iptables -A FORWARD -s 172.16.0.100/32 -j ACCEPT is done.
Но толку от этого нет, т к iptables --list пуст, а если делать так:

Код: Выделить всё

$ sudo /sbin/iptables -A FORWARD -s 172.16.0.100/32 -j ACCEPT
$ sudo iptables --list
Chain FORWARD &#40;policy DROP&#41;
target     prot opt source               destination
ACCEPT     0    --  172.16.0.100         anywhere
$ id
uid=65534&#40;nobody&#41; gid=65534&#40;nogroup&#41; группы=65534&#40;nogroup&#41;
видно что правила добавляются от пользователя nobody коммандой sudo без пароля. Помогите, выложу другую инфу если нужно

Ответить