insert firewall rule at the head of the chain instead of appending
This commit is contained in:
parent
d02c0ddd82
commit
a6d14a3b06
|
@ -23,7 +23,7 @@ type
|
|||
|
||||
proc addFirewallRule(srcIp: IpAddress, srcPort: Port,
|
||||
dstIp: IpAddress, dstPort: Port) {.async.} =
|
||||
let firewall_cmd = fmt"""iptables -A INPUT \
|
||||
let firewall_cmd = fmt"""iptables -I INPUT \
|
||||
-d {srcIp} \
|
||||
-p icmp \
|
||||
--icmp-type time-exceeded \
|
||||
|
|
Loading…
Reference in New Issue