I am building a network which consists of
192.168.0.254) to a WAN which provides via DHCP the gateway address for my network. This is the part imposed on me.LXD)The gateway, central machine and AP are on the same physical network (all coected to a single switch).
In order to segment the network and ensure correct communication between the various bits (the LAN with the mobile devices, the two containers and the gateway) I decided to leave the NIC unconfigured (no IP address assigned) and rather create bridges (with IP addresses) which would serve as entry/bind points for my network sections:
# /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface, unconfigured
auto enp3s0
# bridge for the gateway
auto br_gateway
iface br_gateway inet dhcp
bridge_ports none
# bridge for one container, there will be another one
auto br_container1
iface br_container1 inet static
bridge_ports none
address 10.10.11.11
network 10.10.11.0
netmask 255.255.255.0
# bridge for the LAN
auto br_lan
iface br2 inet static
bridge_ports none
address 10.10.10.10
network 10.10.10.0
netmask 255.255.255.0
I will then bind the containers to their respective br_container<n> interfaces and use iptables to restrict and route the traffic around.
Are there drawbacks to use such an approach to segment networks? I am thinking mostly in terms of performance (the network performance is not a primary conce - this is a development network without particular needs in terms of network bandwidth) but any other conces are welcome.
I am also aware that one could configure a mobile device with the appropriate routes to bypass the firewall - security is not a conce in this setup.
برچسب:
نویسنده: استخدام کار