i have a client who has a need to route traffic from one server back to the lan, apparently, and wants to do it via static routes. i most likely don't have all the details on this, but it seems something like this (fictitious IPs):
cable modem/gateway: 184.108.40.206
router lan ip: 192.168.40.1
lan range: 192.168.40.0/24
the cable modem connects to a small hub with at least the router and this one server attached.
client wants to set a static route from the server (220.127.116.11) to the lan IP of the router (192.168.40.1).
first, is this even possible?
second, is it advisable?
i tried looking at setting a static route with something like the following but am hesitant to leave it in place. i'm not even convinced it will work.
ip route add 192.168.40.0/24 via 18.104.22.168 dev eth0
i've also looked into using /etc/sysconfig/network-scripts/route-eth0 to do this with similar parameters.
thanks for any tips.