Networking Forums

Networking Forums > Computer Networking > Linux Networking > using mac address instead of an IP address of hostname

Reply
Thread Tools Display Modes

using mac address instead of an IP address of hostname

 
 
H.S.
Guest
Posts: n/a

 
      11-21-2007, 12:41 AM

Hi,

Can one make rules in iptables to allow outgoing connections based only
on destination mac addresses? I looked at the man page of iptables and
looks like that it can be used for incoming packets in some chains only.

thanks,
->HS

 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      11-21-2007, 03:42 AM
On 2007-11-21, H.S. <(E-Mail Removed)> wrote:
>
>
>
> Hi,
>
> Can one make rules in iptables to allow outgoing connections based only
> on destination mac addresses? I looked at the man page of iptables and
> looks like that it can be used for incoming packets in some chains only.
>

Mac addresses exist only on local networks. They aren't transmitted
over the internet.
 
Reply With Quote
 
H.S.
Guest
Posts: n/a

 
      11-21-2007, 03:58 AM
Bill Marcum wrote:
> On 2007-11-21, H.S. <(E-Mail Removed)> wrote:
>>
>>
>> Hi,
>>
>> Can one make rules in iptables to allow outgoing connections based only
>> on destination mac addresses? I looked at the man page of iptables and
>> looks like that it can be used for incoming packets in some chains only.
>>

> Mac addresses exist only on local networks. They aren't transmitted
> over the internet.


Yes, I was thinking the same thing after reading up on the material in
the last hour or so. Many thanks for the confirmation.

regards,
->HS
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      11-21-2007, 08:07 AM
Hello,

Bill Marcum a écrit :
> On 2007-11-21, H.S. <(E-Mail Removed)> wrote:
>
>>Can one make rules in iptables to allow outgoing connections based only
>>on destination mac addresses?

>
> Mac addresses exist only on local networks. They aren't transmitted
> over the internet.


Besides, at the time an outgoing packet traverses iptables chains the
destination MAC address is not known yet (except when the chain in
called from the bridging firewall framework bridge-nf). However if the
output interface is a bridge, ebtables can be used to do filtering based
on the MAC addresses.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get hostname from IP address??? Neroku Linux Networking 4 04-22-2007 01:04 AM
how to resolve IP address to hostname arturo1957 Linux Networking 7 03-11-2007 06:18 PM
can't get internal ip address when ping hostname Fong Windows Networking 2 02-17-2006 03:04 AM
Configuring hostname, domainname, and IP address linuxquestion@yahoo.com Linux Networking 38 01-10-2004 12:54 AM
Problem with Hostname changing to IP Address Nathan Given Linux Networking 6 09-17-2003 02:37 PM



1 2 3 4 5 6 7 8 9 10 11