I have centOS mail & web servers configured in a computer in LAN.
My cisco router carries a external IP needs translation so that any request to my global IP at http port will be forwarded to my LAN's centOS carrying terminal.
So I did that with the following command.
ip nat inside source static tcp 192.168.1.422 80 interface VLan1 80 access-list 105 permit tcp any host 218.104.22.1682 eq 80 access-list 105 permit tcp any any established access-list 105 permit udp any eq domain
In the same way I want to send email through port 25 from my centOS.
Now I want to forward from INSIDE TO OUTSIDE, centos to router. (Opposite to HTTP in which request to the router is forwarded to my centos host.)
So, what is the right command to create a NAT port forwarding so that I can send emails from my host machine through router ?
Thanks in advance