Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
6ef02284
Commit
6ef02284
authored
May 09, 2014
by
Leigh B Stoller
Browse files
Minor bug fixes.
parent
13f5110a
Changes
2
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/xen/emulab-cnet.pl
View file @
6ef02284
...
...
@@ -254,7 +254,7 @@ sub Online()
"
-j OUTGOING_
${vnode_id}
")
==
0
or
return
-
1
;
DoIPtables
("
-A OUTPUT -d
$vnode_i
d
-j ACCEPT
")
DoIPtables
("
-A OUTPUT -d
$vnode_i
p
-j ACCEPT
")
==
0
or
return
-
1
;
}
# Start a tmcc proxy (handles both TCP and UDP)
...
...
@@ -428,7 +428,7 @@ sub Offline()
"
--physdev-out
$vif
-j INCOMING_
${vnode_id}
");
DoIPtables
("
-D INPUT -s
$vnode_ip
"
.
"
-j OUTGOING_
${vnode_id}
");
DoIPtables
("
-D OUTPUT -d
$vnode_i
d
-j ACCEPT
");
DoIPtables
("
-D OUTPUT -d
$vnode_i
p
-j ACCEPT
");
}
# tmcc
...
...
clientside/tmcc/linux/xen/libvnode_xen.pm
View file @
6ef02284
...
...
@@ -554,6 +554,12 @@ sub rootPreConfig($)
#
# Need these to avoid overflowing the NAT tables.
#
mysystem2
("
$MODPROBE
nf_conntrack
");
if
(
$?
)
{
print
STDERR
"
ERROR: could not load nf_conntrack module!
\n
";
TBScriptUnlock
();
return
-
1
;
}
mysystem
("
$SYSCTL
-w
"
.
"
net.netfilter.nf_conntrack_generic_timeout=120
");
mysystem
("
$SYSCTL
-w
"
.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment