Hi,

I have a setup where each client have a /32 IPv4 (not /24) because the
/24 is not only used for the VPN. The server have the address
89.234.186.3 on eth0 and 89.234.186.4 on tun0.

The gateway for the clients is 89.234.186.4. But, as it’s not a /24
network, openvpn try to add a route (0.0.0.0/0 or 0.0.0.0/1 and
128.0.0.0/1) to a non-directly connected gateway.

I would like to add a route like “89.234.186.4 dev tun0” by pushing
it to each client. But, if I add “push "route 89.234.186.4"” on the
server config, the client try to add 89.234.186.4 via 89.234.186.4. So
obviously, it’s not working.

I have this error message:
/bin/route add -net 89.234.186.4 netmask 255.255.255.255 gw 89.234.186.4
SIOCADDRT: Network is unreachable

The client interface looks like this:
3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state 
UNKNOWN group default qlen 100
   link/none 
   inet 89.234.186.9/32 brd 89.234.186.9 scope global tun0
      valid_lft forever preferred_lft forever
   inet6 2a00:5884:8309::1/112 scope global 
      valid_lft forever preferred_lft forever

The server interface looks like this:
7: tun-udp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc 
pfifo_fast state UNKNOWN group default qlen 100
    link/none 
    inet 89.234.186.4/32 brd 89.234.186.4 scope global tun-udp0
       valid_lft forever preferred_lft forever
    inet6 2a00:5884::4/64 scope global 
       valid_lft forever preferred_lft forever

I there a way to do `ip route add 89.234.186.4/32 dev tun0`?

Thanks,
-- 
alarig

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to