Ipfw2 with mac filtering


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Ipfw2 with mac filtering
# 1  
Old 06-15-2007
Ipfw2 with mac filtering

Work with FreeBSD with firewall ipfw + dummynet and I need to allow to some IP by MAC address and to deny to the others, since I can do it?

Thanks.
# 2  
Old 06-18-2007
Take a look at this thread it has explanations and examples.
# 3  
Old 06-20-2007
Bandwith Control...

## EXAMPLE ONE

-f flush
add 150 allow ip from any to any layer2 mac-type arp
add 160 allow all from 10.0.1.1 to 192.168.1.0/24
add 161 deny tcp from 10.0.1.0/24 to 192.168.1.0/24
add 162 deny udp from 10.0.1.0/24 to 192.168.1.0/24

#
#MAC ADDRESS USERS
#
#User 1
add 180 skipto 201 MAC any 00:30:f2:c4:09:02 in via vr0 layer2

#Deny all other mac address
add 200 deny MAC any any in recv vr0 layer2

add 201 divert natd all from any to any via rl0

#
#BANDWITH
#
#
add pipe 1 MAC 00:30:f2:c4:09:02 any
add pipe 2 MAC any 00:30:f2:c4:09:02

pipe 1 config bw 10KBytes/s
pipe 2 config bw 10KBytes/s

# other rules...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. IP Networking

Mac Filtering in REDHAT-el5

Need help to filter the MAC address for the specific ipaddress., HOW?? I had try the rule for: iptables -A FORWARD -i eth1 -s 192.168.129.57 -m mac --mac-source 00:02:6F:48:8A:85 -j ACCEPT But Not working now and if you have any alternate solution Help us.:confused::confused: (1 Reply)
Discussion started by: thakshina
1 Replies

2. OS X (Apple)

Let's get a .mac top level domain! As in www.xyz.mac

ICANN, the Internet Corporation for Assigned Names and Numbers, is inviting proposals for new sponsored top level domains. This may be wishful thinking, but isn't that a chance to push for a .mac top level domain (TLD)? I for one would VASTLY like the idea of having a domain of something.mac --... (0 Replies)
Discussion started by: ropers
0 Replies
Login or Register to Ask a Question