Hi, I want to implement a DMZ.
For example:
I have 3 interfaces: LAN, DMZ and WAN
*Traffic initiated in LAN with destination DMZ or WAN must be allowed, and also DMZ or WAN response to LAN
*Traffic initiated in DMZ with destination LAN must be denied. Only must be permited if exists a rule allowing that connection initiated on DMZ.
Can you show me how to do firewall rules to get what I want?
I was thinking sometime like:
(Permit all traffic from LAN)
chain=forward action=accept in-interface=LAN
(Permit response from DMZ to LAN when traffic is initiated on LAN)
chain=forward action=accept connection-state=established,related in-interface=DMZ out-interface=LAN
(Drop traffic initiated on DMZ to LAN)
chain=forward action=drop connection-state=new in-interface=DMZ out-interface=LAN log=no log-prefix=""
Thanks!