forked from ocurrent/obuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give jail an isolated loopback interface with ip 127.0.0.1/8
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,8 @@ let jail_options config rootdir tmp_dir = | |
match config.network with | ||
| [ "host" ] -> | ||
"ip4=inherit" :: "ip6=inherit" :: "host=inherit" :: options | ||
| _ -> options | ||
| _ -> | ||
"exec.start=\"/sbin/ifconfig lo0 127.0.0.1/8\"" :: "vnet" :: options | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mtelvers
Author
Owner
|
||
in | ||
List.rev_append options commandline | ||
|
||
|
It might be simpler to use
"ip4.addr=127.0.0.1"
rather than execifconfig
on jail startup, here.