Re: Translate MAC address to IP address

2003-12-07 Thread Mike Silbersack
On Mon, 8 Dec 2003, Dan Constantinescu wrote: > My name is Dan , and i would ask you for help...how can i filter users > from a LAN to acces internet throuh a freebsd server (i've installed it) > by MAC? Or i need a script to bind ip to mac? Thank's Dan. If you're running a recent release of fr

Re: Translate MAC address to IP address

2003-08-15 Thread Nick Barnes
At 2003-08-15 14:15:00+, Lars Eggert writes: > Nick Barnes wrote: > ... > > I can provide sources on request any time; once these things are a bit > > more polished I will put them on the web. > > Interesting! Maybe turn them into a port once they're stable? I'm unlikely to invest the effort

Re: Translate MAC address to IP address

2003-08-15 Thread Nick Barnes
At 2003-08-15 14:15:00+, Lars Eggert writes: > Nick Barnes wrote: > > Thanks for the reference. I had a look at arping. It works by sending > > a broadcast ping to the specified MAC address (not to the broadcast > > MAC). I note that FreeBSD machines do respond to such pings (unlike > > regul

Re: Translate MAC address to IP address

2003-08-15 Thread Lars Eggert
Nick, Nick Barnes wrote: At 2003-08-13 15:43:51+, Lars Eggert writes: Nick Barnes wrote: I have some MAC addresses from a local Ethernet segment. I want to convert them into IP addresses. How can I do that programmatically? net/arping from port: Thanks for the reference. I had a look at arp

Re: Translate MAC address to IP address

2003-08-15 Thread Nick Barnes
At 2003-08-15 11:13:57+, I wrote: > Next week I may spend the time to extend my "ethercount" program, > using the "pingall" code and the guts of "arp -a", to report using IP > addresses instead of MACs. FYI, here are the relevant guts of "arp -na": /* Usual BSD copyright notice goes here */

Re: Translate MAC address to IP address

2003-08-15 Thread Nick Barnes
At 2003-08-13 15:43:51+, Lars Eggert writes: > This is a cryptographically signed message in MIME format. > > --ms070709090404010406080107 > Content-Type: text/plain; charset=us-ascii; format=flowed > Content-Transfer-Encoding: 7bit > > Nick Barnes wrote: > > > [-net seems to be

Re: Translate MAC address to IP address

2003-08-14 Thread Nick Barnes
At 2003-08-13 12:13:24+, Mitch Collinsworth writes: > > If you ping the broadcast addr you will (should) get a reply from > all hosts. This will give you a full arp table that can be > grep'd programatically. The only hitch is that it's possible for > someone to put a firewall or other custo

Re: Translate MAC address to IP address

2003-08-14 Thread Nick Barnes
At 2003-08-13 13:58:51+, Robert Watson writes: > > On Wed, 13 Aug 2003, Nick Barnes wrote: > > > I have written a small utility for traffic volume monitoring on an > > Ethernet segment. It uses libpcap to capture the ethernet header of > > every packet and counts traffic volume by source and

Re: Translate MAC address to IP address

2003-08-14 Thread Mitch Collinsworth
If you ping the broadcast addr you will (should) get a reply from all hosts. This will give you a full arp table that can be grep'd programatically. The only hitch is that it's possible for someone to put a firewall or other custom setup on a machine to prevent it from replying to ping. Another

Re: Translate MAC address to IP address

2003-08-14 Thread Lars Eggert
Nick Barnes wrote: [-net seems to be the right forum for this.] I have some MAC addresses from a local Ethernet segment. I want to convert them into IP addresses. How can I do that programmatically? net/arping from port: [EMAIL PROTECTED]: ~] arping -i em1 00:07:e9:0a:23:91 ARPING 00:07:e9:0a:

Re: Translate MAC address to IP address

2003-08-14 Thread Robert Watson
On Wed, 13 Aug 2003, Nick Barnes wrote: > I have written a small utility for traffic volume monitoring on an > Ethernet segment. It uses libpcap to capture the ethernet header of > every packet and counts traffic volume by source and destination MAC. A > bit like a lobotomized tcpdump (and inde