|
我在linux下配置两块网卡
地址分别为eth0:192.168.1.1、 eth1:10.0.0.1
安装apache , 绑定地址10.0.0.1:80
将我的windows 的机器的设为 192.168.1.2 网关为 192.168.1.1
windows机器直接与eth0 网线直连。
浏览器中输入 10.0.0.1 可以看到apache的页面。
我希望绑定了10.0.0.1 ,就只有连接到eth1 的机器可以访问到。不希望 eth0端口上的机器可以访问到。
我在linux下设置了。 /proc/sys/net/ipv4/conf/*/rp_filter , accept_redirects accept_source_route 等配置文件均无效。 |
|