OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Network equipment testing with two NICs

From: Matthew R. Dempsky (mrdalkemio.org)
Date: Tue Aug 01 2006 - 23:01:03 CDT


On Tue, Aug 01, 2006 at 11:24:17PM +0200, Michal Soltys wrote:
> icmp's replies would go through loopback in such case.

Really? I got the impression from tcpdump that traffic from sk0 to sk1
(whether ICMP request or reply) always went over the ethernet cable
while traffic from sk1 to sk0 did not.

The output of ``tcpdump -i sk0'' shows only and all packets that were
sent through or received from sk0's PHY, right? (And if not, what
output will?)

> If you wanted to force it to go over the cable, you could use route(8) to
> manually set routing or use pf and set reply-to option on interface, where
> icmp request is incoming.

I'll give those a try. (FYI, later I plan to replace ping with iperf or
something more thorough/intensive, so ICMP-specific fixes will not
suffice.)

Thanks.