Allowing access only some sites - onely some mac address
Dears,
I'd like to allow access only to some sites by some mac address.
For example:
I have a list of the mac address 00:0c:6E:11:E8:B0, 00:D8:02:D8:C8:DF, 00:E7:05:C9:07:EA............ and and I'd like that only these mac address could access only the following IP: 200.221.2.128, 200.221.2.129, 200.221.2.130, 200.221.2.131, 200.205.144.75, 200.205.144.76. But the other mac address could access everything.
How is the better way to do this??
Thks
I think ipset is a good idea.
# ipmap The ipmap set type uses a memory range, where each bit represents one IP address and can store up to 65535 (B-class network) entries. You can store same size network addresses in an ipset as well and an IP address will be in the set if the network address it belongs to can be found in the set. # macipmap The macipmap set type uses a memory range, where each 8 bytes represents one IP and a MAC addresses. A macipmap set type can store up to 65535 (B-class network) IP addresses with MAC.
Look http://ipsec.netfilter.org
Att,
Sp0oKeR
Quoted 19 lines · Sebastião Antônio Campos (GWA)
Dears,
I'd like to allow access only to some sites by some mac address.
For example:
I have a list of the mac address 00:0c:6E:11:E8:B0, 00:D8:02:D8:C8:DF, 00:E7:05:C9:07:EA............ and and I'd like that only these mac address could access only the following IP: 200.221.2.128, 200.221.2.129, 200.221.2.130, 200.221.2.131, 200.205.144.75, 200.205.144.76. But the other mac address could access everything.
How is the better way to do this??
Thks
Just wanted to point to what I think was the intended website:
Quoted 42 lines · On Mon, 29 Aug 2005, Sp0oKeR wrote:
I think ipset is a good idea.
# ipmap The ipmap set type uses a memory range, where each bit represents one IP address and can store up to 65535 (B-class network) entries. You can store same size network addresses in an ipset as well and an IP address will be in the set if the network address it belongs to can be found in the set. # macipmap The macipmap set type uses a memory range, where each 8 bytes represents one IP and a MAC addresses. A macipmap set type can store up to 65535 (B-class network) IP addresses with MAC.Look http://ipsec.netfilter.org
Att,
Sp0oKeR
Quoted 19 lines · Sebastião Antônio Campos (GWA)
Dears,
I'd like to allow access only to some sites by some mac address.
For example:
I have a list of the mac address 00:0c:6E:11:E8:B0, 00:D8:02:D8:C8:DF, 00:E7:05:C9:07:EA............ and and I'd like that only these mac address could access only the following IP: 200.221.2.128, 200.221.2.129, 200.221.2.130, 200.221.2.131, 200.205.144.75, 200.205.144.76. But the other mac address could access everything.
How is the better way to do this??
Thks
You are right! My bad.
Thanks,
Sp0oKeR
Quoted 51 lines · Damon Gray
Just wanted to point to what I think was the intended website:
Quoted 42 lines · On Mon, 29 Aug 2005, Sp0oKeR wrote:
I think ipset is a good idea.
# ipmap The ipmap set type uses a memory range, where each bit represents one IP address and can store up to 65535 (B-class network) entries. You can store same size network addresses in an ipset as well and an IP address will be in the set if the network address it belongs to can be found in the set. # macipmap The macipmap set type uses a memory range, where each 8 bytes represents one IP and a MAC addresses. A macipmap set type can store up to 65535 (B-class network) IP addresses with MAC.Look http://ipsec.netfilter.org
Att,
Sp0oKeR
Quoted 19 lines · Sebastião Antônio Campos (GWA)
Dears,
I'd like to allow access only to some sites by some mac address.
For example:
I have a list of the mac address 00:0c:6E:11:E8:B0, 00:D8:02:D8:C8:DF, 00:E7:05:C9:07:EA............ and and I'd like that only these mac address could access only the following IP: 200.221.2.128, 200.221.2.129, 200.221.2.130, 200.221.2.131, 200.205.144.75, 200.205.144.76. But the other mac address could access everything.
How is the better way to do this??
Thks
Quoted 5 lines · Sebastião Antônio Campos (GWA)
I have a list of the mac address 00:0c:6E:11:E8:B0, 00:D8:02:D8:C8:DF, 00:E7:05:C9:07:EA............ and and I'd like that only these mac address could access only the following IP: 200.221.2.128, 200.221.2.129, 200.221.2.130, 200.221.2.131, 200.205.144.75, 200.205.144.76. But the other mac address could access everything.
I would be tempted to do something like the following:
# Create a new chain to put the allowed sites in for filtered MACs. iptables -t filter -N MACFilteredSites
# Watch for a specific MAC address and jump to said chain on matches.
iptables -t filter -A FORWARD -i ${LAN} -o ${INet} -m mac --mac-source 00:0c:6E:11:E8:B0 -j MACFilterdSites iptables -t filter -A FORWARD -i ${LAN} -o ${INet} -m mac --mac-source 00:D8:02:D8:C8:DF -j MACFilterdSites iptables -t filter -A FORWARD -i ${LAN} -o ${INet} -m mac --mac-source 00:E7:05:C9:07:EA -j MACFilterdSites
# Only allow the filtered MACs to go to these sites (IP addresses).
# Note: We do not need to test for -i and -o interfaces b/c we tested for this before we got to this chain. iptables -t filter -A MACFilteredSites -d 200.221.2.128 -j RETURN
iptables -t filter -A MACFilteredSites -d 200.221.2.129 -j RETURN
iptables -t filter -A MACFilteredSites -d 200.221.2.130 -j RETURN
iptables -t filter -A MACFilteredSites -d 200.221.2.131 -j RETURN
iptables -t filter -A MACFilteredSites -d 200.205.144.75 -j RETURN
iptables -t filter -A MACFilteredSites -d 200.205.144.76 -j RETURN
iptables -t filter -A MACFilteredSites -j LOG
iptables -t filter -A MACFilteredSites -j DROP
Grant. . . .
Quoted 7 lines · Sebastião Antônio Campos (GWA)
Dears,
I'd like to allow access only to some sites by some mac address.
For example:
Quoted 8 lines
I have a list of the mac address 00:0c:6E:11:E8:B0, 00:D8:02:D8:C8:DF, 00:E7:05:C9:07:EA............ and and I'd like that only these mac address could access only the following IP: 200.221.2.128 <http://200.221.2.128>,
200.221.2.129 <http://200.221.2.129>,
200.221.2.130 <http://200.221.2.130>, 200.221.2.131 <http://200.221.2.131>,
200.205.144.75 <http://200.205.144.75>, 200.205.144.76<http://200.205.144.76>. But the other
mac address could access everything.
IIRC, MAC addresses (layer 2) do not go beyond the router (layer 3). I think you can only do what you are proposing if all your boxes are behind the same broadcast domain.
Signature · 3 lines
Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman