Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
0830f6a9
Commit
0830f6a9
authored
Nov 29, 2016
by
Francesc Guasch
Browse files
[#51] Ravada iptables chain is first to jump
parent
309c9768
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain.pm
View file @
0830f6a9
...
...
@@ -859,6 +859,7 @@ sub _obj_iptables {
(
$rv
,
$out_ar
,
$errs_ar
)
=
$ipt_obj
->
chain_exists
('
filter
',
$IPTABLES_CHAIN
);
if
(
!
$rv
)
{
$ipt_obj
->
create_chain
('
filter
',
$IPTABLES_CHAIN
);
$ipt_obj
->
add_jump_rule
('
filter
','
INPUT
',
0
,
$IPTABLES_CHAIN
);
}
# set the policy on the FORWARD table to DROP
$ipt_obj
->
set_chain_policy
('
filter
',
'
FORWARD
',
'
DROP
');
...
...
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