Skip to content

Commit

Permalink
job/prep: Enable IPv4 forwarding on host
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <a.jung@lancs.ac.uk>
  • Loading branch information
nderjung committed Jan 7, 2021
1 parent a912f89 commit afd5590
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions job/prep.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ func PrepareEnvironment(cpus []int, dryRun bool) error {
return err
}

err = setProcfsValue("/proc/sys/net/ipv4/ip_forward", "1", dryRun)
if err != nil {
return err
}

err = setProcfsValue("/proc/sys/net/ipv4/ip_local_port_range", "1024 60999", dryRun)
if err != nil {
return err
Expand Down

0 comments on commit afd5590

Please sign in to comment.