Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2005 15:46:38 +0000 (GMT)
From:      Nate Nielsen <nielsen-list@memberwebs.com>
To:        mario.lobo@ipad.com.br
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Forcing a packet through an interface (OT?)
Message-ID:  <20050712154637.01FB670DBB5@mail.npubs.com>
References:  <42D2A405.10443.923658@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Mario Lobo wrote:
> Forgive me if this is off-topic.
> 
> How could I force a packet to go out through an interface, 
> despite the default route?

What I do for testing is:

1. Assign additional local IP aliases.
2. Use IPFW or pf to forward packets that from those IPs
    through the different NICs.
3. Ping an IP online using the '-S' argument to specify
    the source as one of the IP aliases.

Cheers,
Nate




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050712154637.01FB670DBB5>