【Linux】CentOS7でfirewalldを使ってルータを作る方法
![](https://vamdemicsystem.black/wp-content/uploads/2019/10/13.jpg)
enp0s3→インターネット側
enp0s8→内部LAN側
1 2 3 4 5 6 7 8 |
firewall-cmd --get-active-zones firewall-cmd --direct --get-all-rules nmcli connection modify enp0s3 connection.zone external nmcli connection modify enp0s8 connection.zone internal firewall-cmd --get-active-zone firewall-cmd --zone=external --query-masquerade cat /proc/sys/net/ipv4/ip_forward |