LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2019, 06:43 AM   #1
root-10
LQ Newbie
 
Registered: Apr 2019
Posts: 1

Rep: Reputation: Disabled
Question 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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] IPtables : ssh port forwarding one port to another port issue routers Linux - Networking 7 08-07-2018 08:41 AM
Redirec port in device eth0 to port+ip in device wlan0 ( port forwarding on hostpd wireless network) MattFly Linux - Networking 2 08-28-2016 07:21 PM
ip forwarding with iptables - double forwarding with openVPN?? sousacanfly Linux - Networking 8 01-20-2014 08:49 AM
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 04:36 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration