OVH Community, your new community space.

Routing traffic between servers.

28-05-2010, 23:00
Thanks freshwire I will give that a go over the weekend

28-05-2010, 16:58
One nice solution I sometimes use is PacketProxy. You just run the program with some command line args and it will forward traffic on particular ports.

Otherwise the following should do the trick with iptables.

# rewrite incoming packets with new destination
iptables -t nat -A PREROUTING -d -p tcp -j DNAT --to-destination

# rewrite source of outgoing packets  
iptables -t nat -A POSTROUTING -p tcp -d -j SNAT --to-source

# apply the rule to packets we generate
iptables -t nat -A OUTPUT -p tcp -d -j DNAT --to-destination
In the above is the server the traffic is going to and is the new target you want it to go to.

Note that all traffic will appear to come from

28-05-2010, 11:14
How to route traffic to another ovh server ?

Is there a way to route traffic from an ovh server to another, no matter their datacenter/ip, like from 188.165.200.x to 91.121.14.x ? Using iptables