خرید بک لینک

I am building a network which consists of

  • a gateway (192.168.0.254) to a WAN which provides via DHCP the gateway address for my network. This is the part imposed on me.
  • a central machine ruing Linux (Ubuntu) with a single NIC which will be
    • the firewall between my network and the gateway above
    • the host for two virtualized containers (using LXD)
  • an WiFi AP which will allow for the coection of mobile devices

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.

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 25 اسفند 1394 ساعت: 14:09

صفحه بندی