Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Branko Mikić
ipturntables
Commits
ec69f852
Commit
ec69f852
authored
Apr 09, 2016
by
Branko Mikić
Browse files
~ ipturntables is now allowed to be run with superuser privildges only.
parent
edca0ffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
ipturntables.sh
View file @
ec69f852
...
@@ -410,6 +410,8 @@ formatSubnetAsHexID() {
...
@@ -410,6 +410,8 @@ formatSubnetAsHexID() {
((
${#
@
}
==
0
))
&&
printAbout
((
${#
@
}
==
0
))
&&
printAbout
[
$USER
!=
"root"
]
&&
error 46
"Superuser priviledges needed. This script makes heavy use of 'iptables' command which only allowed to be used by root."
[
"
$1
"
==
"-6"
]
&&
arg
=
6
[
"
$1
"
==
"-6"
]
&&
arg
=
6
[
"
$1
"
==
"-4"
]
&&
arg
=
4
[
"
$1
"
==
"-4"
]
&&
arg
=
4
if
[
!
-v
arg
]
;
then
if
[
!
-v
arg
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment