Would like to forward requests received on Server in one subnet to server on another
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Would like to forward requests received on Server in one subnet to server on another
Hi all, I have been looking for a solution to this since I implemented our new openVPN server at the office. We has been using MS PPTP running from a RAS box but for efficiency, security, and because the RAS PPTP software stopped working. We quickly switched to OpenVPN. That said, we had implemented OpenVPN for one user to a special subnet, however, there is no Public access via WAN to this server, for security purposes and because we don't have an IP address to serve it on, but more because of security; so he would connect to the network by connecting to PPTP VPN then to the openvpn vpn on the other network. This worked because pptp proxied all network traffic. With the new setup though our main VPN is on a network that is 192.168.100.x and the other vpn is on 192.168.168.x Our internal router knows how to route to this 192.168.168.x network, but his Windows PC isn't going to when out of the office connected by VPN, it is not going to see a route to this secondary network and try to use it's default WAN gateway. Now both openVPNs are bridged VPNs for mulitple reasons. So I think I see two solutions to this issue.
1)Push a route the clients saying that the 192.168.168.x network gateway is 192.168.100.1, not sure if this works in Bridged mode, or how well it will work, plus can you run two OpenVPN sessions at once where one needs to be tunneled over an existing VPN session, this also adds overhead.
2)Have the current Main VPN server listen for requests on the port the other VPN is setup on and then have it forwarded by proxy more or less to the second internal server. Because the gateway on the server machine network does know how to get to this other internal network.
Details about setup running a firewall/gateway with that does one-one WAN IP translation to internal private ips i.e. WAN interface 12.22.43.65 maps to internal 192.168.100.5 anything coming in on that WAN IP gets directed to the internal IP addresses that are mapped. So we have an external IP that maps to our main VPN server. There is no port forwarding so I cannot redirect to the other server on that mapped IP address. So is there anyway to do this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.