command templates.

This commit is contained in:
Stefan Midjich 2016-04-16 19:09:37 +02:00
parent bf3c01f59a
commit d1ef8b9bee

View file

@ -5,5 +5,11 @@ enabled = True
[iptables]
enabled = True
command_mac = iptables -t mangle -D internet -m mac --mac-source "{mac_address}" -j RETURN
command_ip = iptables -t mangle -D internet -m tcp --source "{ip_address}" -j RETURN
# If you know you won't be able to get the clients HW address then use this.
only_ip = True
# Command templates for arping and iptables.
arping_cmd = arping -f -c 1 -w 30 -I wlp3s0 {ip_address}
iptables_mac = iptables -t mangle -D internet -m mac --mac-source "{mac_address}" -j RETURN
iptables_ip = iptables -t mangle -D internet -m tcp --source "{ip_address}" -j RETURN