Possible Duplicate:
simple networking/routing question

I need server A to be able to reach server C (a mail server). server B can already reach server C and server A can reach server B. Is there a few simple steps I can take to add a static route to server A to solve this?

link|improve this question
What operating system(s) are A and B running? – Chris J Aug 19 '09 at 18:23
feedback

migrated from stackoverflow.com Aug 20 '09 at 0:30

This question came from our site for professional and enthusiast programmers.

closed as exact duplicate by mrdenny Aug 30 '09 at 1:50

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

If you have access to both servers A and B, you can do this on server A:

sudo route add server.C.ip.address server.B.ip.address

and on server B you need to turn on packet forwarding. If it's a unixy/BSD system you might do that via:

sudo sysctl -w net.inet.ip.forwarding=1

If you don't have root access to both servers, there's no way to do what you want.

link|improve this answer
feedback