mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-16 18:14:14 +02:00
Land #490, allow all loopback traffic
This commit is contained in:
commit
72516dc014
|
@ -10,6 +10,14 @@ iptables_rule '00_established' do
|
||||||
lines '-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT'
|
lines '-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
iptables_rule '00_lo_allow_in' do
|
||||||
|
lines '-I INPUT -i lo -j ACCEPT'
|
||||||
|
end
|
||||||
|
|
||||||
|
iptables_rule '00_lo_allow_out' do
|
||||||
|
lines '-I OUTPUT -o lo -j ACCEPT'
|
||||||
|
end
|
||||||
|
|
||||||
iptables_rule '01_ssh' do
|
iptables_rule '01_ssh' do
|
||||||
lines "-A INPUT -p tcp --dport 22 -j ACCEPT"
|
lines "-A INPUT -p tcp --dport 22 -j ACCEPT"
|
||||||
end
|
end
|
||||||
|
@ -21,6 +29,3 @@ end
|
||||||
iptables_rule '999_drop_all' do
|
iptables_rule '999_drop_all' do
|
||||||
lines '-A INPUT -j DROP'
|
lines '-A INPUT -j DROP'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user