diff --git a/docs/installation/index.html b/docs/installation/index.html index 8afe4b8..04f324f 100644 --- a/docs/installation/index.html +++ b/docs/installation/index.html @@ -84,6 +84,45 @@ GOARCH=amd64 gokr-packer Configuration +

Interfaces

+

The /perm/interfaces.json configuration file will be automatically created if it is not present when you run the first recovery.

+

Example:

+
{
+    "interfaces": [
+        {
+            "hardware_addr": "12:34:56:78:9a:b0",
+            "name": "lan0",
+            "addr": "192.168.0.1/24"
+        },
+        {
+            "hardware_addr": "12:34:56:78:9a:b2",
+            "name": "uplink0"
+        }
+    ]
+}
+

Schema: see InterfaceConfig

+

Port Forwarding

+

The /perm/portforwardings.json configuration file can be created to define port forwarding rules.

+

Example:

+
{
+    "forwardings": [
+        {
+            "proto": "tcp",
+            "port": "22",
+            "dest_addr": "10.0.0.10",
+            "dest_port": "22"
+        },
+        {
+            "proto": "tcp",
+            "port": "80",
+            "dest_addr": "10.0.0.10",
+            "dest_port": "80"
+        }
+    ]
+}
+

Schema: see portForwardings

+

Please be aware that Hairpinning is currently not supported (see issue #53 Support for Hairpinning)

Updates

Run e.g. rtr7-safe-update -updates_dir=$HOME/router7/updates to: