Hallo I have a configuration problem.
I my ubuntu server (with iptables) I have 3 interfaces (ip ending with 1)
I have a private network ETH2�192.168.238.0/24
a DMZ: ETH1�192.168.238.0/24
and an external interface (eth 0 -->10.20.4.0/23)
im my dmz I have a webserver (192.168.238.2)
How can I access to the webserver from the private network?
I opened the ports with 2 FORWARD rules (from eth2 to eth1 and from eth1 to eth2)
Now I have to set a nat rule, but If I make this rule:
iptables �t nat �A PREROUTING �i eth2 �p tcp --dport 80 -j DNAT --to 192.168.238.2
It is working but I cannot go to internet (eth0) anymore, because each http packet is going to the internal webserver.
How to relolve that?
Thank you very much