fixed chain command to insert.

This commit is contained in:
Stefan Midjich 2016-04-16 21:30:43 +02:00
parent 04bc90e6ec
commit e93a31b09d

View file

@ -14,10 +14,9 @@ enabled = True
only_ip = True only_ip = True
# Command templates for arping and iptables. # Command templates for arping and iptables.
# Arping might block so make sure you use a timeout and limit the number of # Arping might block so make sure you use a timeout and limit the number of
# packets it sends. # packets it sends.
arping = -f -c 1 -w 30 -I wlp3s0 {ip_address} arping = -f -c 1 -w 30 -I wlp3s0 {ip_address}
iptables_mac = -t mangle -D internet -m mac --mac-source "{mac_address}" -j RETURN iptables_mac = -t mangle -I internet 1 -m mac --mac-source {mac_address} -j RETURN
iptables_ip = -t mangle -D internet -m tcp --source "{ip_address}" -j RETURN iptables_ip = -t mangle -I internet 1 -m tcp --source {ip_address} -j RETURN