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 - in this lan there is a web server and ssh server on
eth2 - 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.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!