CentOS as router

1. add the following line to file:

vi /etc/sysctl.conf
net.ipv4.ip_forward=1

2. configure firewall:

firewall-cmd --zone=external --add-interface=enp0s3
firewall-cmd --zone=internal --add-interface=enp0s8

 

Leave a Reply

Your email address will not be published. Required fields are marked *