Created
August 31, 2016 11:21
-
-
Save spangenberg/6bfe47553264231e2d95dc883151d5f4 to your computer and use it in GitHub Desktop.
Unifi - Add the ability to adjust system ARP settings via the CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\" " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\" " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\" " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\" " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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