Modifié : sisr1/tp07/files_firewall/current_ruleset_v1.nft
This commit is contained in:
		| @@ -1,13 +1,17 @@ | ||||
| define netif = enp0s3 | ||||
| define dmzif = enp0s8 | ||||
| define lanif = enp0s9 | ||||
|  | ||||
| table ip ipfilter { | ||||
| 	chain routing { | ||||
| 		type filter hook forward priority filter; policy accept; | ||||
| 		icmp type echo-request iif { "enp0s3", "enp0s8" } drop | ||||
| 		icmp type echo-request iif { $netif, $dmzif } drop | ||||
| 		icmp type { echo-reply, echo-request } accept | ||||
| 		drop | ||||
| 	} | ||||
|  | ||||
| 	chain system_in { | ||||
| 		type filter hook input priority filter; policy accept; | ||||
| 		icmp type echo-request iif { "enp0s3", "enp0s8" } drop | ||||
| 		icmp type echo-request iif { $netif, $dmzif } drop | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user