Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
794962ac
Commit
794962ac
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Drop any outgoing telnet connections
parent
4a0982ac
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-utils-firewall
+13
-0
13 additions, 0 deletions
src/freedombone-utils-firewall
src/freedombone-utils-setup
+3
-0
3 additions, 0 deletions
src/freedombone-utils-setup
with
16 additions
and
0 deletions
src/freedombone-utils-firewall
+
13
−
0
View file @
794962ac
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-setup
+
3
−
0
View file @
794962ac
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment