OpenVZ Forum - RDF feed
type: channel
items: Tricky iptables problem
items: Re: Tricky iptables problem

Tricky iptables problem
type: item
description: Hi folks, due to the new release of a 'cool' scripting language (RoR) I would like setup the following VE's: one HW-node, one web-server running Apache, and one server for Ruby on Rails. My Problem is how to forward the traffic on port 3000-3010 from the webserver to the rails server? (The proxying inside the apache is no problem.) I found iptables snippets for forwarding the traffic from and to the HW-node and the rails server. But how is it possible to forward the traffic from the web to the rails server and back again(both are VE's) Any help is appreciated Greetings, Joker
creator: joker2048
date: 2008-02-03T23:33:22-00:00

Re: Tricky iptables problem
type: item
description: Hi again, The way from outside to inside is pretty simple. Just use the apache as a proxy. But how can I forward the traffic from inside out? Joker
creator: joker2048
date: 2008-02-04T14:29:20-00:00

Re: Tricky iptables problem
type: item
description: Hi, If I understand you right, you won't need any iptables for this. Both VEs have their own IP addresses. The apache VE is just able to access the RoR-machine by it's address, even if that's just a private one. All VE traffic goes through the hardware node which will take care of routing. If all of your VE's IPs are private ones, you still can do a "port forwarding" from the hwnode to the apache-VE. greetings, Hubert
creator: HubertD
date: 2008-02-06T12:11:34-00:00