[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Port Forward by MAC

On 10/7/06, George P Boutwell <george.boutwell@gmail.com> wrote:
I know it's an odd request, but is it possible to port forward based
on MAC address instead of by IP address?

You can create rules using the module mac:

iptables -t filter -A FORWARD -m mac --mac-source 00:00:00:00:00:00 -o
eth0 -j ACCEPT

All packets originated from a computer with MAC 00:00:00:00:00:00
outgoing by eth0 are accepted. (in chain FORWARD/table filter, at
least :)

Try the command "iptables -m mac --help" to see more about mac module.

Maxwillian Miorim <miorimmax@gmail.com>
Slackware 11.0/current, OpenBSD 3.9 and Debian SID/experimental "user".

Reply to: