public
Description: A rigorous set of firewall scripts for BSD ipfw, and Linux iptables
Homepage:
Clone URL: git://github.com/jwiegley/jw.firewall.git
jw.firewall / gateway-mac
100755 4 lines (3 sloc) 0.117 kb
1
2
3
4
#!/bin/sh
arp `netstat -nr | grep ^default | awk '{print $2}'` | \
    perl -ne 'print $1, "\n" if / at (.+?) on /;'