You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
firejail --net=firejail5 --dns=192.168.55.1 --blacklist=/var/run/nscd # nscd is cache service, which shouldn't be accessable here
257
+
firejail --net=firejail5 --dns=192.168.55.1 --blacklist=/var/run/nscd # nscd is cache service, which shouldn't be accessed in jail here
241
258
```
242
259
243
260
</details>
@@ -283,11 +300,13 @@ Options:
283
300
whose destination port is 53 to this host
284
301
--log-dns Show DNS query log
285
302
--dhcp-dns <IP1[,IP2]>|no
286
-
Set IPv4 DNS offered by DHCP (default: this host)
303
+
Set IPv4 DNS offered by DHCP (default: this host).
304
+
This will enable '--no-dns' (Do not serve DNS)
287
305
--dhcp-dns6 <IP1[,IP2]>|no
288
306
Set IPv6 DNS offered by DHCP (RA)
289
307
(default: this host)
290
308
(Note IPv6 addresses need '[]' around)
309
+
This will enable '--no-dns' (Do not serve DNS)
291
310
--hostname <name> DNS server associate this name with this host.
292
311
Use '-' to read name from /etc/hostname
293
312
-d DNS server will take into account /etc/hosts
@@ -344,7 +363,15 @@ Options:
344
363
--stop <id> Stop a running instance
345
364
For <id> you can use PID or subnet interface name.
346
365
You can get them with '--list-running'
366
+
```
347
367
368
+
</details>
369
+
370
+
## Notice
371
+
372
+
<details>
373
+
374
+
```
348
375
Notice 1: This script assume your host's default policy won't forward
349
376
packets, so the script won't explictly ban forwarding in any
350
377
mode. In some unexpected case may cause unwanted packets
@@ -356,9 +383,7 @@ Options:
356
383
357
384
## What changes are done to Linux system
358
385
359
-
On exit of an instance, script will do cleanup, i.e. undo the changes to system. Though, some changes won't be restored.
360
-
361
-
These changes to system will **not** be restored by script's cleanup:
386
+
On exit of a linux-router instance, script **will do cleanup**, i.e. undo most changes to system. Though, **some** changes will **not** be undone, which are:
362
387
363
388
1.`/proc/sys/net/ipv4/ip_forward = 1` and `/proc/sys/net/ipv6/conf/all/forwarding = 1`
0 commit comments