Hi,
I have a CentOS 5.4 install (host) with OpenVZ on it and another CentOS 5.4 running as a guest OS. Both the host and guest have their own IP addresses and the guest and host can talk to the internet and each other but the guest cannot resolve DNS requests.
If I drop iptables on the host then the guest can lookup addresses by name.
I am at a loss of a rule to allow DNS requests to go from the guest, through the host and return to the guest after being forfilled by my ISP's DNS server.
Ideally I would like to let everything relating to the guests IP address to be forwarded throught he host to the guest. The guest can firewall itself.
I am a bit stuck with the concept on how the host and guest communicate and how the packets get picked up by the host even though they are for the guests IP address.
I believe the host has eth0 and venet0 as it's interfaces and the guest has venet0:0 as its interface (IP address assigned), venet0 has local host assigned as an address (ie. 127.0.0.1).
Any help please (info, links).
Cheers
RB
I have a CentOS 5.4 install (host) with OpenVZ on it and another CentOS 5.4 running as a guest OS. Both the host and guest have their own IP addresses and the guest and host can talk to the internet and each other but the guest cannot resolve DNS requests.
If I drop iptables on the host then the guest can lookup addresses by name.
I am at a loss of a rule to allow DNS requests to go from the guest, through the host and return to the guest after being forfilled by my ISP's DNS server.
Ideally I would like to let everything relating to the guests IP address to be forwarded throught he host to the guest. The guest can firewall itself.
I am a bit stuck with the concept on how the host and guest communicate and how the packets get picked up by the host even though they are for the guests IP address.
I believe the host has eth0 and venet0 as it's interfaces and the guest has venet0:0 as its interface (IP address assigned), venet0 has local host assigned as an address (ie. 127.0.0.1).
Any help please (info, links).
Cheers
RB