make_a_dd-wrt_bridge_silently_eat_dhcp_traffic
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| make_a_dd-wrt_bridge_silently_eat_dhcp_traffic [2008/04/11 21:08] – tkbletsc | make_a_dd-wrt_bridge_silently_eat_dhcp_traffic [2008/04/11 21:17] (current) – tkbletsc | ||
|---|---|---|---|
| Line 60: | Line 60: | ||
| I took the original ebt_ip.o, and ran "gzip -c ebt_ip.o | uuencode -m -", which means " | I took the original ebt_ip.o, and ran "gzip -c ebt_ip.o | uuencode -m -", which means " | ||
| - | ===== WRONG INFORMATION ===== | ||
| - | **This was my first pass; it didn't work. Preserved for comedy value.** | ||
| - | |||
| - | After some trial and error, I found the iptables rules that would do that: | ||
| - | |||
| - | iptables -t mangle -I PREROUTING 1 -p UDP --sport 67 -j DROP | ||
| - | iptables -t mangle -I PREROUTING 1 -p UDP --sport 68 -j DROP | ||
| - | iptables -t mangle -I PREROUTING 1 -p UDP --dport 67 -j DROP | ||
| - | iptables -t mangle -I PREROUTING 1 -p UDP --dport 68 -j DROP | ||
| - | |||
| - | The only question then is how to make these rules get applied automatically at bootup. | ||
| - | |||
| - | nvram set rc_firewall=" | ||
| - | iptables -t mangle -I PREROUTING 1 -p UDP --sport 68 -j DROP | ||
| - | iptables -t mangle -I PREROUTING 1 -p UDP --dport 67 -j DROP | ||
| - | iptables -t mangle -I PREROUTING 1 -p UDP --dport 68 -j DROP" | ||
| - | nvram commit | ||
| - | |||
| - | Reboot, and presto, the bridge is eating all DHCP traffic: | ||
| - | |||
| - | < | ||
| - | # iptables -t mangle -vL | ||
| - | Chain PREROUTING (policy ACCEPT 262 packets, 50464 bytes) | ||
| - | pkts bytes target | ||
| - | 0 0 DROP | ||
| - | 37 14776 DROP | ||
| - | 0 0 DROP | ||
| - | 0 0 DROP | ||
| - | </ | ||
make_a_dd-wrt_bridge_silently_eat_dhcp_traffic.1207973322.txt.gz · Last modified: by tkbletsc
