Skip to content
Snippets Groups Projects
Commit 794962ac authored by Bob Mottram's avatar Bob Mottram
Browse files

Drop any outgoing telnet connections

parent 4a0982ac
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,19 @@ function configure_firewall {
mark_completed $FUNCNAME
}
function firewall_drop_telnet {
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
# telnet isn't enabled as an input and we can also
# drop any outgoing telnet, just in case
iptables -A OUTPUT -p tcp --dport telnet -j REJECT
iptables -A OUTPUT -p udp --dport telnet -j REJECT
function_check save_firewall_settings
save_firewall_settings
mark_completed $FUNCNAME
}
function configure_firewall_ping {
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
......
......@@ -561,6 +561,9 @@ function setup_firewall {
function_check configure_firewall_ping
configure_firewall_ping
function_check firewall_drop_telnet
firewall_drop_telnet
function_check configure_firewall_for_dns
configure_firewall_for_dns
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment