OpenVZ Forum


Home » International » Russian » iptables
Re: iptables [message #3003 is a reply to message #2975] Sat, 06 May 2006 09:16 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Простите за дурацкий вопрос, но модули до старта VPS загружены?
# lsmod

проделал только что написано Вами, а именно загрузил модули, указал IPTABLES="iptable_filter iptable_mangle ipt_limit ipt_REJECT ipt_length ip_conntrack iptable_nat ipt_REDIRECT "

И вот результат:
-bash-3.00# iptables -t nat -A PREROUTING -p tcp --dport 2525 -j REDIRECT --to-ports 25
-bash-3.00# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
REDIRECT   tcp  --  anywhere             anywhere            tcp dpt:2525 redir ports 25

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination



http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: статистика под дискам вдс-ок
Next Topic: vzquota
Goto Forum:
  


Current Time: Fri Nov 08 02:40:32 GMT 2024

Total time taken to generate the page: 0.03322 seconds