(networking) added sample config for dnsmasq and note on how to enable
routing
This commit is contained in:
22
network.md
Normal file
22
network.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# network
|
||||
|
||||
This document holds network related notes.
|
||||
|
||||
<!--toc:start-->
|
||||
- [network](#network)
|
||||
- [enable routing](#enable-routing)
|
||||
<!--toc:end-->
|
||||
|
||||
|
||||
## enable routing
|
||||
|
||||
To enable routing permanently add a file `/etc/sysctl.d/` with the following contents:
|
||||
|
||||
```ini
|
||||
net.ipv4.ip_forward=1
|
||||
```
|
||||
|
||||
## simple gateway with nftables
|
||||
|
||||
> **WARNING:** do not use this configuration for an edge router (directly connected to the internet/isp)!
|
||||
|
||||
Reference in New Issue
Block a user