From 11423795a911520badce51a65e331f692a11f617 Mon Sep 17 00:00:00 2001 From: Sliim Date: Fri, 26 Apr 2019 14:06:28 +0200 Subject: [PATCH] Allow ICMP protocol for linux machine Required for setup_linux_share.bat provisioning script on the windows machine. Fix #393 --- chef/cookbooks/metasploitable/recipes/iptables.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chef/cookbooks/metasploitable/recipes/iptables.rb b/chef/cookbooks/metasploitable/recipes/iptables.rb index 1382f5f..24ecf80 100644 --- a/chef/cookbooks/metasploitable/recipes/iptables.rb +++ b/chef/cookbooks/metasploitable/recipes/iptables.rb @@ -14,6 +14,10 @@ iptables_rule '01_ssh' do lines "-A INPUT -p tcp --dport 22 -j ACCEPT" end +iptables_rule '01_icmp' do + lines "-A INPUT -p icmp -j ACCEPT" +end + iptables_rule '999_drop_all' do lines '-A INPUT -j DROP' end