Is there any way to isolate two different NICs?

  • The server has two network interfaces, which are on different network segments.

    eth0 is located on the 10.10.10.0/24 network segment, and eth1 is located on the 10.10.11.0/24 network segment.

    All content can be accessed by the current two network cards.

    For security reasons, I want to isolate the two network cards. The eth0 network card only passes the data of the host, and the eth1 network card only passes the data of the docker container.


    Any suggestions would be greatly appreciated!!!

    Life is a boring and troublesome thing, it is annoying and stupid.

    • Offizieller Beitrag

    The only OMV way to do that is with firewall/iptables rules but docker will probably mess with those. You could force your docker network to only listen on one adapter and use firewall rules for the data on the other.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    after consulting the docker documentation, I did not find a way to only listen to one adapter.

    It is very easy. You just add it to the port in your compose file:


    Code
    ports:
    - "192.168.13.15:8001:8001"

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • NullIndent

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!