OpenVZ Forum


Home » General » Support » Tricky iptables problem
Tricky iptables problem [message #26854] Sun, 03 February 2008 23:33 Go to next message
joker2048 is currently offline  joker2048
Messages: 9
Registered: March 2007
Junior Member
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 Smile

Greetings, Joker

[Updated on: Mon, 04 February 2008 14:43]

Report message to a moderator

Re: Tricky iptables problem [message #26871 is a reply to message #26854] Mon, 04 February 2008 14:29 Go to previous messageGo to next message
joker2048 is currently offline  joker2048
Messages: 9
Registered: March 2007
Junior Member
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

[Updated on: Mon, 04 February 2008 14:44]

Report message to a moderator

Re: Tricky iptables problem [message #26980 is a reply to message #26871] Wed, 06 February 2008 12:11 Go to previous message
HubertD is currently offline  HubertD
Messages: 22
Registered: August 2006
Junior Member
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
Previous Topic: VPS Have no network connection
Next Topic: *SOLVED* Starting old VEs on 2.6.24
Goto Forum:
  


Current Time: Sun Aug 11 08:24:50 GMT 2024

Total time taken to generate the page: 0.02902 seconds