[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Re: Confuesing on Learn-address cmd


  • Subject: Re: [Openvpn-users] Re: Confuesing on Learn-address cmd
  • From: Charles Duffy <cduffy@xxxxxxxxxxx>
  • Date: Fri, 05 Aug 2005 12:35:21 -0500

Yaoning Tao wrote:

This is what I understand:
when new client connect with VPN server and his IP is 192.168.21.2, we use
"learn-address add 192.168.21.2 ./Script" use the script file to generate the firewall
for this client. When he disconnect, we use "learn-address delete 192.168.21.2 ./scritp"
to do same thing.
It's correct?

No.

the directive is simply "learn-address ./SCRIPT". When a user connects authenticating with a certificate CN and is given the IP 192.168.21.2, "./SCRIPT add 192.168.21.2 CN" is called. The environment variable script_type will also be set to "learn-address".

This is well-documented in the man page; please read it before posting -- and post to or CC the list rather than sending private mailo.

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-08/msg00069.html on line 191

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-08/msg00069.html on line 191