iptables firewall and routing
Hi, i am studing the funcions of iptables for routing and firewall.
I would like have a Linux with 3 eth. eth0 outside, eth1 inside one, eth2 inside 2.
eth1 192.168.6.0/24 - in this lan there is a web server and ssh server on 192.168.6.100
eth2 192.168.7.0/24 - in this lan there are hosts for developer ad debugger (IP with dhcp).
The call for web server on 443 will be forward to 5656 (i will change port on https).
Only for internal, the developer and debugger can chat with a software work on port 3136.
All segment lan can go outside.
Someone can help me with a script so i can understand and i can do some test. Another question, for wok like a router i should edit also the routes on the linux pc where it will be a router? because i think the different eth dont understand where send package if the routing is not configure. Thanks for patient but i use many years ago IPtables and now i forget everythings.