Skip to content

Instantly share code, notes, and snippets.

@spangenberg
Created August 31, 2016 11:21
Show Gist options
  • Save spangenberg/6bfe47553264231e2d95dc883151d5f4 to your computer and use it in GitHub Desktop.
Save spangenberg/6bfe47553264231e2d95dc883151d5f4 to your computer and use it in GitHub Desktop.
Unifi - Add the ability to adjust system ARP settings via the CLI
help: Enable arp-ignore on this interface
create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../@)/arp_ignore\" "
delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/arp_ignore\" "
help: Disable arp-filter on this interface
create:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/arp_filter\" "
delete:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../@)/arp_filter\" "
help: Enable arp-accept on this interface
create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../@)/arp_accept\" "
delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/arp_accept\" "
help: Enable arp-announce on this interface
create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../@)/arp_announce\" "
delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/arp_announce\" "
/opt/vyatta/share/vyatta-cfg/templates/interfaces/ethernet/node.tag/ip/disable-arp-filter/node.def
/opt/vyatta/share/vyatta-cfg/templates/interfaces/ethernet/node.tag/ip/enable-arp-accept/node.def
/opt/vyatta/share/vyatta-cfg/templates/interfaces/ethernet/node.tag/ip/enable-arp-announce/node.def
/opt/vyatta/share/vyatta-cfg/templates/interfaces/ethernet/node.tag/ip/enable-arp-ignore/node.def
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment