Linux Netfilter discussions
 help / color / mirror / Atom feed
* A secure router, by MAC address
@ 2004-10-20 18:46 jgalvez
  2004-10-20 19:12 ` Eric Leblond
  2004-10-20 20:39 ` Jason Opperisano
  0 siblings, 2 replies; 5+ messages in thread
From: jgalvez @ 2004-10-20 18:46 UTC (permalink / raw)
  To: netfilter

I am trying to setup a router, that forwards traffic from one interface
for only a specific set of MAC addresses.

Users on eth1 side will use a static IP address with a known MAC
address. DHCP will be running on eth1 for rogue users. If the source IP
is 10.0.0.0/8 all port 80 traffic needs to be redirected to localhost
port 80. ONLY traffic from a listed IP and MAC should be allowed to be
forwarded out.

I need some recommendation on how to accomplish this.  If you could
point me to a similar example or something I can figure it out . The
more specific the better.  I have a few of my notes and attempts below.

TIA
-Josh

eth0:
 -Allow all traffic, in and out
eth1:
 -Allow all DHCP traffic - something like below
  #iptables -I INPUT -i eth1 -p udp --dport 67:68 --sport 67:68 \
  -j ACCEPT
 -Allow all incoming traffic by source IP and MAC address
  #iptables -A PREROUTING -i eth1 -t mangle -m mac \
  --source 208.5.x.242 --mac-source 00:30:65:0e:91:d6 -j ACCEPT
 -Redirect all port 80 traffic from 10.0.0.0/8 to localhost:80
 -Drop all other incoming traffic
  #iptables -A PREROUTING -i eth1 -t mangle -j DROP

	



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-20 20:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20 18:46 A secure router, by MAC address jgalvez
2004-10-20 19:12 ` Eric Leblond
2004-10-20 19:28   ` jgalvez
2004-10-20 20:23     ` Eric Leblond
2004-10-20 20:39 ` Jason Opperisano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox