summaryrefslogtreecommitdiff
path: root/simple/0
diff options
context:
space:
mode:
authordautor <karlo98.m@gmail.com>2024-11-15 13:47:50 +0100
committerdautor <karlo98.m@gmail.com>2024-11-16 14:25:00 +0100
commitbdd2396d19f5465ecaac3195deeceef29a867d52 (patch)
tree2dbe4c83c833ef8b8bfe1473fda3a028136b4299 /simple/0
Create example structure and add 2 examples
Diffstat (limited to 'simple/0')
-rw-r--r--simple/0/conf20
-rw-r--r--simple/0/root/etc/rc.conf6
-rw-r--r--simple/0/root/etc/resolv.conf1
3 files changed, 27 insertions, 0 deletions
diff --git a/simple/0/conf b/simple/0/conf
new file mode 100644
index 0000000..bc8c79b
--- /dev/null
+++ b/simple/0/conf
@@ -0,0 +1,20 @@
+{
+ module: sf.jail
+ configuration: {
+ interfaces: {
+ eth0 { type: eiface }
+ eth1 { type: eiface }
+ eth2 { type: steal, interface: re0 }
+ }
+ filesystem: {
+ layers: [
+ simple/0/root
+ /tmp/lamina.dns
+ /tmp/lamina.machine
+ /lab/jail/base/14.1-RELEASE
+ ]
+ }
+ init: [ sh, /etc/rc ]
+ shutdown: [ sh, /etc/rc.shutdown ]
+ }
+}
diff --git a/simple/0/root/etc/rc.conf b/simple/0/root/etc/rc.conf
new file mode 100644
index 0000000..d7ef5ce
--- /dev/null
+++ b/simple/0/root/etc/rc.conf
@@ -0,0 +1,6 @@
+hostname="test-0"
+sshd_enable="YES"
+ifconfig_eth0="inet 10.1.0.2/24 up"
+ifconfig_eth1="inet 10.2.0.2/24 up"
+ifconfig_eth2="inet 10.0.1.2/24 up"
+defaultrouter="10.0.1.1"
diff --git a/simple/0/root/etc/resolv.conf b/simple/0/root/etc/resolv.conf
new file mode 100644
index 0000000..35fb6f9
--- /dev/null
+++ b/simple/0/root/etc/resolv.conf
@@ -0,0 +1 @@
+nameserver 1.0.0.1