Hi!
When the connection is up, I'd like the OpenVPN client to add a route without a gateway (I need to do this to properly route multicast data through a bridged TAP VPN)
If I add this to the client config file:
route 239.255.255.0 255.255.255.0
Then the added route has a gateway (see 4th route):
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.162.0.1 0.0.0.0 UG 0 0 0 ens4
10.162.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ens4
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 tap0
239.255.255.0 192.168.5.1 255.255.255.0 UG 0 0 0 tap0
However I need the route to be added like when I do this command:
ip route add 239.255.255.0/24 dev tap0
Which adds a route without a gateway:
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.162.0.1 0.0.0.0 UG 0 0 0 ens4
10.162.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ens4
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 tap0
239.255.255.0 0.0.0.0 255.255.255.0 U 0 0 0 tap0
I know I could use an external script and use the "up" option to execute the script, but I'd really like everything included in the config file.
Is that possible?