How can I tell if a host is bridged and acting as a router

Posted by makerofthings7 on Server Fault See other posts from Server Fault or by makerofthings7
Published on 2012-10-21T01:58:42Z Indexed on 2012/10/21 5:08 UTC
Read the original article Hit count: 151

Filed under:
|
|
|
|

I would like to scan my DMZ for hosts that are bridged between subnets and have routing enabled. Since I have everything from VMWare servers, to load balancers on the DMZ I'm unsure if every host is configured correctly.

What IP, ICMP, or SNMP (etc) tricks can I use to poll the hosts and determine if the host is acting as a router?

I'm assuming this test would presume I know the target IP, but in a large network with many subnets, I'd have to test many different combinations of networks and see if I get success. Here is one example (ping):

  1. For each IP in the DMZ, arp for the host MAC
  2. Send a ICMP reply message to that host directed at an online host on each subnet

I think that there is a more optimal way to get the information, namely from within ICMP/IP itself, but I'm not sure what low level bits to look for.

I would also be interested if it's possible to determine the "router" status without knowing the subnets that the host may be connected to. This would be useful to know when improving our security posture.

© Server Fault or respective owner

Related posts about security

Related posts about ip