Answer the question
In order to leave comments, you need to log in
How to isolate two lans on linux from each other?
There are two network cards in linux based on the clearos distribution, each with its own network interface, both are lan.
Out of the box, clearos routes all lan interfaces to each other, but I need to make lan isolated from each other.
How? Not necessarily by means of clearos, console commands will also work.
Answer the question
In order to leave comments, you need to log in
iptables -I FORWARD -i eth0 -o eth1 -j DROP
iptables -I FORWARD -i eth1 -o eth0 -j DROP
Method number 1. Fast.
Cut with iptables.
Look away iptables -A FORWARD (FORWARD chain)
Kill any traffic entering eth0 and leaving eth1.
to be sure, add the reverse sequence
Divide the network into VLANs (802.1q), but this is a long time, it can’t be explained in a nutshell.
Very well described here:
https://wiki.debian.org/NetworkConfiguration?highl...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question