Hello,
I have a slightly stupid question about iptables.
At my "router" I have 2 internal networks in different IP networks.
eth0: inet 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
eth1: inet 10.1.0.1 netmask 255.255.255.0 broadcast 10.1.0.255
Default gateway is 10.0.0.1
Most devices are attached to eth0 with ips within 10.0.0.x.
Now there are a few devices within eth1 (e.g. 10.1.0.10) which i would like to reach from certain eth0 devices.
e.g.
10.0.0.100 and 10.0.0.101 should be able to access 10.1.0.10 and vice versa.
Additionally, 10.1.0.10 should also have "external access" via 10.0.0.1 (default gw).
What is the correct way to implement this with iptables?
Thanks
Dieter
Bookmarks