]> git.ipfire.org Git - ipfire-2.x.git/commit
ovpnmain.cgi: Manually push a different gateway for static pools
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Sep 2025 10:01:34 +0000 (12:01 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Sep 2025 10:01:34 +0000 (12:01 +0200)
commit6b486bac32699ba9d7f8abc5a4201e5a8a4fec41
tree9ddd519874cb25ffeb3a1dba7f71f3d065b81d55
parent9887048ac4cd5c52a27420ba936952a183129ddf
ovpnmain.cgi: Manually push a different gateway for static pools

This is because in "topology subnet", ifconfig-push is massively broken.
The client is not able to configure any routes correctly by pointing
them to the interface. Instead it is trying to use the gateway address
from the dynamic pool as gateway which cannot be reached if the client
only has an IP address from another subnet. Pushing host routes is not
supported, so we have to create a hack here and pretend that there is a
gateway in the static pool somewhere.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi