Port Forwarding on Linux by OpenVpn Server
I created one vpn server with aws by using OpenVpn and assigned the static ip's for the user and connected my exchange server to that vpn. Now as i don;t have static ip for my own internet so i am trying to use aws ip address to host the content. So now what i want is whenever traffic comes to the aws linux server(vpn) on as0t0 with port no. 25 and 443 it should route that traffic to 172.27.224.2:25 and 172.27.224.2:443 (both are internal ip address for interface as0t0 of user 1 which is connected to vpn server) so I can open the ports in public.
Now I think for that I have to setup forwarding rules on linux server in iptables and for that I need help on this.
And also Please suggest do we need to setup some rules on windows server as well, i doubt it because it is already connected to the vpn server and routing all the traffic through there.
|