I have Local mail server with the ip address 192.168.1.50 and public ip can you help me how to configure incoming mail and outgoing email?
We are using router Board 1100 series
Full NAT: (DMZ)
ip firewall nat add chain=dstnat dst-address=xxx.xxx.xxx.xxx action=dst-nat to-addresses=192.168.1.50
ip firewall nat add chain=srcnat src-address=192.168.1.50 action=src-nat to-addresses=xxx.xxx.xxx.xxx
This will make full one-to-one NAT and will forward all WAN traffic to Server.
Best practice is to forward only ports you need:
ip firewall nat add chain=dstnat dst-address=xxx.xxx.xxx.xxx protocol=tcp dst-port=80 action=dst-nat to-addresses=192.168.
1.50 to-ports=80
Repeat this command for each port you need!