How To or What Are the Options of Adding ROUTES to Server.conf and Client.conf ?

Need help configuring your VPN? Just post here and you'll get that help.

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
TheVPN
OpenVpn Newbie
Posts: 2
Joined: Wed Nov 01, 2023 9:42 am

How To or What Are the Options of Adding ROUTES to Server.conf and Client.conf ?

Post by TheVPN » Fri Nov 10, 2023 3:47 pm

Hello,
How to add Route between OpenVPN Server using server.conf and OpenVPN Client using client.conf ?

The host 10.80.70.10 behind OpenVPN client cannot reach the host 192.168.80.12 behind OpenVPN Server.

I am establishing the OpenVPN Tunnel successfully by running this comamnds on the Modem in HO

Code: Select all

/mnt/nvram/ovpn# openvpn --config  server.conf
and remote Modem in Branch

Code: Select all

/mnt/nvram/ovpn# openvpn  --config  client.conf

server.conf

Code: Select all

	
	dev tun
	cipher AES-256-CBC
	auth sha256
	comp-lzo
	ifconfig 11.11.11.1  11.11.11.2
	secret myKey.key
  
client.conf

Code: Select all

	remote 172.18.18.1
	comp-lzo	
	dev tun
	auth sha256
	cipher AES-256-CBC
	ifconfig 11.11.11.2   11.11.11.1
	secret myKey.key
  
+++
How to add the route in each .conf file to enable the routing via the tunnel ?


Thanks

Post Reply