Hello,
I have a little problem on a linux computer that I will named L1.
This computer have two network interfaces connected to two different
networks :
- eth0 : 192.168.0.1/24
- eth1 : 192.168.1.1/24
I don't want any routing between this two networks. So a computer
(named C1) from the first network cannot ping a computer (named C2)
from the other network.
I have no iptables rules set on my L1 computer. The /proc/sys/net/ipv4/
ip_forward parameter is set to 0.
For the moment, everything is ok.
My problem is that C1 is able to ping the 192.168.1.1 IP address of L1
even if it is not in the same network. (The default gateway of C1 is
L1).
My goal is to hide maximum information from L1 to others computers
(without iptables). So I would that L1 does not reply to IP packet
destinated to 192.168.1.1 if they arrive on eth0 interface and L1 does
not reply to IP packet destinated to 192.168.0.1 if they arrive on
eth1.
I thought that rp_filter kernel parameter (
http://www.mjmwired.net/
kernel/Documentation/networking/ip-sysctl.txt#692) would have helped
me, but it seems to does nothing for my problem.
I have of course two solutions to solve it :
- The first is to set iptables rules, but I would like to do without.
- The second is to delete default gateways of C1/C2, but this
computers don't belong to me, so I can't.
If you have a third solution, it would be very helpfull.
Thank you in advance !