diff --git a/container/80-container-ve.network b/container/80-container-ve.network new file mode 100644 index 0000000000000000000000000000000000000000..41b92ae9a8c35c03860e97e885577b77ff753d49 --- /dev/null +++ b/container/80-container-ve.network @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +# This network file matches the host-side of the virtual Ethernet link +# created by systemd-nspawn's --network-veth switch. See systemd-nspawn(1) for +# details. + +[Match] +Name=ve-{{ name }} +Driver=veth + +[Network] +Address={{ ip_address_host }} +IPMasquerade=yes +LLDP=yes +EmitLLDP=customer-bridge +IPForward=1 diff --git a/container/80-container.host0.network b/container/80-container.host0.network new file mode 100644 index 0000000000000000000000000000000000000000..9a017decafe7fb39cad081c085f6ba90133e69f4 --- /dev/null +++ b/container/80-container.host0.network @@ -0,0 +1,11 @@ +[Match] +Virtualization=container +Name=host0 + +[Network] +DHCP=no +DNS={{ dns_server }} +Address={{ ip_address_container }} +Gateway={{ gateway }} +LLDP=yes +EmitLLDP=customer-bridge diff --git a/container/nspawn b/container/nspawn index bc2699962bc872fceab01751a7fc440e35b51a40..11944f6afa2db014c48f1d00a08fced77d41c41d 100644 --- a/container/nspawn +++ b/container/nspawn @@ -1,8 +1,8 @@ [Network] -VirtualEthernet=no +VirtualEthernet=yes [Files] Bind=/var/www/{{name}}:/var/www [Exec] -PrivateUsers=off \ No newline at end of file +PrivateUsers=off