|
From: Silver S. <si...@ul...> - 2007-01-29 07:54:32
|
Hello! I use OpenVPN 2.0.6 on FreeBSD. My OpenVPN-server isn't configured to give its clients DHCP-addresses - it's done by bridging and ISC-DHCP server (in order to be able to give static addresse based on MACs). The problem is that I'd like to add a specific route based on client's real interface's IP-address - to check whether it wouldn't conflict with any existing route and then add the route to that net to the routing table. With such schema (external DHCP and matched MACs-IPs) I'm somewhat able to give clients static addresses basing on MACs and create routes based on these addresses, but for an instance, FreeBSD creates its devices dynamically so the TAP-device has a different MAC after every reboot. If OpenVPN gave addresses, I could match $common_name and $ifconfig_pool_remote_ip (I guess - I haven't tried it yet) with client-connect script, but as an external DHCP-server is used, is there a way to know what's the address that remote TAP gets from external DHCP? Or what's the address of the remote "real interface"? Is there any other solution to what I'm trying to achieve? Thanks in advance, Silver |