Geek pop quiz.
Jul. 27th, 2012 06:05 pmA server is, for unknown reasons, trying to connect to ip A for updates to an application. It SHOULD be connecting to ip B. The application configuration is correct. A complete reinstall, down to digging it out of the registry and deleting all the folders, has not solved the problem.
A brute-force solution presents itself: forcibly redirect all connection to A to B instead. Difficulty: they are on the same subnet, and you cannot change anything about the switches, routers, or, in fact, anything except Windows itself on this one machine.
And it's an IP, NOT a dns name. Hosts file won't do it unless you can provide syntax for ip redirection via hosts.
Is there a way to do that in windows server 2008, via "route" or something?
Posted via the phone of doom
A brute-force solution presents itself: forcibly redirect all connection to A to B instead. Difficulty: they are on the same subnet, and you cannot change anything about the switches, routers, or, in fact, anything except Windows itself on this one machine.
And it's an IP, NOT a dns name. Hosts file won't do it unless you can provide syntax for ip redirection via hosts.
Is there a way to do that in windows server 2008, via "route" or something?
Posted via the phone of doom
(no subject)
Date: 2012-07-27 10:31 pm (UTC)(no subject)
Date: 2012-07-28 02:41 am (UTC)I don't expect we'll find a solution, to be honest.
(no subject)
Date: 2012-07-28 02:49 am (UTC)Depending on if that other IP is occupied, assigning it to the same NIC on the Windows machine could work, but then you've got to run your redirect under windows and I don't know of a tool for that and/or the magic spell with Route for "all incoming traffic on this IP, send to that IP"
(no subject)
Date: 2012-07-28 02:50 am (UTC)(no subject)
Date: 2012-07-28 02:58 am (UTC)(no subject)
Date: 2012-07-28 03:03 am (UTC)(no subject)
Date: 2012-07-28 03:00 am (UTC)(no subject)
Date: 2012-07-28 03:04 am (UTC)(no subject)
Date: 2012-07-28 09:23 am (UTC)Butt-fugly, and likely to break at some point, of course. And not necessarily less work than wiping/reinstalling the originally offending Windos box.
Alternatively, hunt for something that can do proper NAT natively on WIndos. I'm sure there's something Out There.
(no subject)
Date: 2012-07-28 03:33 am (UTC)(no subject)
Date: 2012-07-28 03:35 am (UTC)(no subject)
Date: 2012-07-29 02:23 am (UTC)(no subject)
Date: 2012-07-28 03:00 pm (UTC)1) Statically define the MAC address for machine B as as the ARP answer for IP A on the server.
That will send all traffic to machine B when it tries to connect to IP A.
2) Add IP A as a dummy / loopback address on machine B. That will allow it to terminate the TCP sessions to IP A on machine B, and reply back successfully.
3) Cry in horror at the hack you've created.
(no subject)
Date: 2012-07-29 02:32 am (UTC)