I have 4 different subnets that go in to one Linux box that have openswan and configured VPN's. In the linux box i have configured one interface that is public and sub interfaces that are private. For example
eth0 - 1.1.1.1
eth0:0 - 192.168.0.1
eth0:1 - 192.168.1.1
etc...
And PC from 192.168.0.1 can reach PC that is on 192.168.1.1. I need to disable this type of communication. Iptables is the answer as i know but im confused about the rule how should be implement. Or if there is some other way to do it it will be great.