site to site (client side) route dont publish correctly

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
ahiyaz
OpenVpn Newbie
Posts: 12
Joined: Thu Jul 23, 2020 3:50 pm

Re: site to site (client side) route dont publish correctly

Post by ahiyaz » Mon Jul 27, 2020 4:05 pm

300000 wrote:
Mon Jul 27, 2020 2:33 pm
inside that file just add this

iroute 172.17.200.0 255.255.255.0
this is what ive configured. and now ive tried without the apostrophes but still same result. although this time I didn't get the error message.

additionally ive just tried to configure the route manually towards 10.8.0.6 (client tun0).
but the command fails due to an invalid gateway.

route
root@ip-172-30-0-139:~# ip route add 172.17.200.0/24 via 10.8.0.6
Error: Nexthop has invalid gateway.
root@ip-172-30-0-139:~#


and this is becouse the mask of int tun0 at the server side is /32. i dont know if ubuntu support recursive routes.

Code: Select all

172.17.200.0/24 via 10.8.0.2 dev tun0
int
tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100
link/none
inet 10.8.0.1 peer 10.8.0.2/32 scope global tun0

ahiyaz
OpenVpn Newbie
Posts: 12
Joined: Thu Jul 23, 2020 3:50 pm

Re: site to site (client side) route dont publish correctly

Post by ahiyaz » Mon Jul 27, 2020 4:13 pm

300000 wrote:
Mon Jul 27, 2020 2:33 pm
inside that file just add this

iroute 172.17.200.0 255.255.255.0
Thanks, it works!!!
i have ping from both sides.

deleting the apostrophes from the ccd file did the job.

now ill scale it up to multiple sites.

thank you all and especially "300000 "
;) ;)

Post Reply