Hi,
First, sorry for my bad english...
I am using OpenVZ kernel 2.6.26 under Debian Lenny. My container is under Debian Lenny too.
In my host node, i have some PHP files. These files need to access MySQL database. The MySQL database is in a container. The problem is that i can't access MySQL server from my host node.
I'm using this iptables script:
HOST_IP="192.168.1.60"
HOST_PORTS="22 80"
iptables -P FORWARD ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
for port in $HOST_PORTS ; do
iptables -A INPUT -p tcp -d $HOST_IP --dport $port -j ACCEPT
iptables -A INPUT -p udp -d $HOST_IP --dport $port -j ACCEPT
done
I tried whitout iptables but it is the same.
Can someone help me ? Thank you