P
P
plr2014-01-03 18:25:52
linux
plr, 2014-01-03 18:25:52

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

3 answer(s)
I
Ilya Evseev, 2014-01-03
@plr

iptables -I FORWARD -i eth0 -o eth1 -j DROP
iptables -I FORWARD -i eth1 -o eth0 -j DROP

Notice the "-I" (insert) instead of "-A" (append).

K
kindacute, 2014-01-03
@kindacute

Try this: xmodulo.com/2012/03/how-to-enable-ip-forwarding-in...

M
Michaelikus, 2014-01-03
@Michaelikus

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 question

Ask a Question

731 491 924 answers to any question