insert firewall rule at the head of the chain instead of appending

This commit is contained in:
Christian Ulrich 2020-08-16 15:45:18 +02:00
parent d02c0ddd82
commit a6d14a3b06
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ type
proc addFirewallRule(srcIp: IpAddress, srcPort: Port, proc addFirewallRule(srcIp: IpAddress, srcPort: Port,
dstIp: IpAddress, dstPort: Port) {.async.} = dstIp: IpAddress, dstPort: Port) {.async.} =
let firewall_cmd = fmt"""iptables -A INPUT \ let firewall_cmd = fmt"""iptables -I INPUT \
-d {srcIp} \ -d {srcIp} \
-p icmp \ -p icmp \
--icmp-type time-exceeded \ --icmp-type time-exceeded \