OpenVPN Server - how to give access to an internal Server IP

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
klein7
OpenVpn Newbie
Posts: 1
Joined: Mon Mar 08, 2021 3:50 pm

OpenVPN Server - how to give access to an internal Server IP

Post by klein7 » Mon Mar 08, 2021 3:55 pm

Hello,

I have configured an openVPN server (192.168.1.2) on specific IP address and clients can now connect to it.
However, I have another server (192.168.1.3) which I would like my clients to access when they are on the VPN I have setup.

I have read some documentation, but I am not sure how to achieve this.
Would it be possible for someone to give a hint?

Thank you.

My Server configuration can be found below:

Server


dev-node "OpenVPNServer"
mode server
port 67001

proto tcp4-server
dev tun

tls-server
tls-auth "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key" 0

tun-mtu 1500
tun-mtu-extra 32
mssfix

ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\OpenVPNServer.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\OpenVPNServer.key"
dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh2048.pem"

server 10.10.10.0 255.255.255.0

client-to-client
keepalive 10 120
cipher AES-128-CBC
comp-lzo

persist-tun
persist-key

duplicate-cn

client-config-dir "C:\\Program Files\\OpenVPN\\config\\SRV-Client-67001"

verb 3

# script-security 3 system
# auth-user-pass-verify "C:\\Windows\\System32\\cscript.exe /H:cscript C:\\Progra~1\\OpenVPN\\config\\SRV\\AuthUserOpenVPN.vbs" via-env

script-security 3
auth-user-pass-verify "C:/Windows/System32/cscript.exe /H:cscript C:/Progra~1/OpenVPN/config/SRV/AuthUserOpenVPN.vbs" via-env

route-delay 5
route-method exe

push "route 192.168.0.0 255.255.255.0"
route 192.168.182.0 255.255.255.255.0
route 192.168.1.0 255.255.255.255.0
route 0.0.0.0 0.0.0.0 vpn_gateway 500

Post Reply