So i was trying to deploy my own OpenVPN server and connect my router as client, so i can route everything.
what i faced was that when i start the OVPN server with the same settings on both Ubuntu and windows,
my router is able to connect to both successfully, but routing only works when OVPN server is on Ubuntu!
this is the OVPN server file:
Code: Select all
port 23
proto tcp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
#comp-lzo (disabled this so it works on mikrotik)!
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
any ideas !?