Redirect traffic of forwarded ports from open vpn server into a vpn client

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
sirdranzer
OpenVpn Newbie
Posts: 1
Joined: Sun Jul 26, 2020 4:28 am

Redirect traffic of forwarded ports from open vpn server into a vpn client

Post by sirdranzer » Sun Jul 26, 2020 9:24 am

Image

Hello
Ive managed to setup an open vpn server (fedora with ip 192.168.1.78 and several ports forwarded)
My VPN client (192.168.100.2) is under a cg-nat. It succesfully connects to my Fedora open vpn server and it gets ip 10.8.0.2


I would like to know If is possible to accomplish the following:

Image

1. Redirect all traffic of the forwarded ports (except 1194) into my fedora open vpn server to my vpn client (maybe with ip tables Please give me advice if I'm right)

2. Allow any client to connect to openvpn freely (with no need of creating users)

Thank you in advance

Post Reply