IPTABLES: interface on "192.168.1.0/24" won't route clients from "10.65.0.0"
My linux router has one leg in 192.168.1.0/24 network with ip 192.168.1.254. There is second linux router with one leg in the same network with ip 192.168.1.1. Behind second router there 10.65.1.0/24 network. Second router is routing traffic so traffic would appear as it comes from 10.65.1.0/24.
On the first router I have mail server as well, so I want to give access to 10.65.1.0/24 network to access mail server on 192.168.1.254. Well ... I cannot. It seems that router rejects traffic coming on 192.168.1.254 interface from 10.65.1.0/24 network
iptables -A INPUT -i eth1 -p tcp -s 10.65.1.0/24 --dport 110 -j ACCEPT
does not work.
How can I do this? NAT-ing 10.65.1.0/24 traffic is not option.
|