Virtual interface
Virtual interface
- Subject: Virtual interface
- From: Robert Dylan Stewart <email@hidden>
- Date: Sat, 28 Jul 2007 15:15:03 -0500
I'm trying to set up a virtual network interface. Specifically, I'm wanting it to exist in the routing table such that packets can be routed out of it, then I want to take those packets, encapsulate them, and send them out a physical interface based on the system's default route. My program will also need to be able to detect inbound encapsulated packets, handle them, and inject them into the routing table.
Eventually, I want all traffic to go out through my virtual interface, get handled by my software, then get routed out the real interface. Any suggestions on where to start for something like this?
I've looked at enetlognke, which would seem to do some of what I'm wanting (at least in terms of packet interception), but the way I understand it, it is applied to an existing interface. Could I just create a loopback programatically, add some routes pointing to it and attach to that? I get the impression that I'm missing an obvious drawback to that approach. How would I then inject decapsulated packets into the system?
For now, all I'm really needing is some idea of the directions in which I should look.
--
Robert D. Stewart AC5ZH |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden