oslyak
Hi!
I have windows with openVPN server with 2 ethernet interfaces:
10.168.4.155/24
10.168.5.100/24 - openVPN server listen only this interface.
There are 2(routes) gateways:
10.168.4.1(default)
10.168.5.1
All vpn client connects only through 10.168.5.1
I have admin access to router 10.168.5.1, but have no access to router 10.168.4.1
On 10.168.5.1 turned on port forwarding from WAN to LAN.
While on the server default gateway set to 10.168.5.1 everything works perfectly.
My issue:
Setup openVPN to use only interface 10.168.5.100 and go throught this interface and 10.168.5.1 gateway.
But default gateway on the server must be 10.168.4.1
When I use 10.168.4.1 as default gw, clients can't to connect
Help me please!
P.S. The main idea:
to use one interface for all tasks except VPN - 10.168.4.155
another interface use only for VPN connections - 10.168.5.100
local 10.168.5.100
port 33194
proto udp
dev tun
dev-node VPN
ca "C:\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\OpenVPN\\easy-rsa\\keys\\server.crt"
key "C:\\OpenVPN\\easy-rsa\\keys\\server.key" # This file should be kept secret
dh "C:\\OpenVPN\\easy-rsa\\keys\\dh2048.pem" # openssl dhparam -out dh2048.pem 2048
server 10.10.10.0 255.255.255.0
ifconfig-pool-persist "C:\\OpenVPN\\ipp.txt"
client-config-dir "C:\\OpenVPN\\ccd"
keepalive 10 120
cipher AES-256-CBC
compress lz4-v2
push "compress lz4-v2"
max-clients 100
persist-key
persist-tun
status "C:\\OpenVPN\\log\\status.log"
log "C:\\OpenVPN\\log\\openvpn.log"
erb 3
mute 10
explicit-exit-notify 1