Skip to content

Commit

Permalink
Adding ebtables rule to prevent rogue dhcp servers on open net.
Browse files Browse the repository at this point in the history
  • Loading branch information
max-b committed Dec 22, 2015
1 parent ed7512c commit c330dc4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ start() {
# no internet to internet forward
iptables -A FORWARD -i $WAN -o $WAN -j DROP

# if ebtables, prevent rogue dhcp servers
if command -v ebtables; then
ebtables -F FORWARD
ebtables -I FORWARD -p ipv4 --in-interface $OPEN --out-interface $OPEN --ip-protocol udp --ip-source-port 67:68 --ip-destination-port 67:68 --jump DROP
fi

waitForWifi

iw open2 set bitrates legacy-2.4 6 9 12 18 24 36 48 54
Expand Down

0 comments on commit c330dc4

Please sign in to comment.