Change Network interface file from enp7s0 to eth0

This commit is contained in:
2024-04-09 16:13:00 +02:00
parent f6353fc036
commit b71e9c7c39
3 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -19,8 +19,8 @@
blockinfile:
path: /etc/network/interfaces
block: |
auto enp7s0
iface enp7s0 inet dhcp
auto eth0
iface eth0 inet dhcp
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/16' -o enp7s0 -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/16' -o eth0 -j MASQUERADE