Created
July 30, 2019 07:49
-
-
Save utarn/56ad1e3667f60d56fb71749d6e819ca5 to your computer and use it in GitHub Desktop.
Sample & Simple dhcpd.conf
This file contains hidden or 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
| default-lease-time 86400; # 24 hours | |
| max-lease-time 172800; # 48 hours | |
| subnet 192.168.13.0 netmask 255.255.255.0 { | |
| option domain-name "myrmutsb.com"; | |
| option domain-name-servers 8.8.8.8, 8.8.4.4; | |
| option routers 192.168.13.1; | |
| option subnet-mask 255.255.255.0; | |
| range 192.168.13.101 192.168.13.200; | |
| } | |
| host debian-8 { | |
| hardware ethernet 52:54:00:61:e4:e7; | |
| fixed-address 192.168.13.128; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add net.ipv4.ip_forward=1 to /etc/sysctl.conf
sysctl -p
firewall-cmd --permanent --zone=trusted --add-source=192.168.13.0/24
firewall-cmd --permanent --direct --passthrough ipv4 -t nat -I POSTROUTING -o ens192 -j MASQUERADE -s 192.168.13.0/24