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,
|
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 \
|
||||||
|
|
Loading…
Reference in New Issue