Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. The script is passed the common name and IP address of
  2. the just-authenticated client as environmental variables
  3. (see environmental variable sec- tion below). The script is
  4. also passed the pathname of a not-yet-created temporary file
  5. as $1 (i.e. the first command line argument), to be used
  6. by the script to pass dynamically generated config file
  7. directives back to OpenVPN.
  8.  
  9. # first local address assigned to the vpn tunnel, then remote
  10. # [ this is not SIPx/CIPx - it's just private addressing for the tunnel ]
  11. ifconfig 10.255.255.10 10.255.255.9
  12. # here you install a new route on the server whenever vpn is established
  13. # you want to put CIP1/32 routed via vpn ip assigned to the remote end of vpn
  14. route 10.13.0.0 255.255.0.0 10.255.255.9
  15. port somePort
  16. [..]
  17.  
  18. # put your SIP1 here and some port on which server is configured
  19. remote 213.xxx.xxx.xxx somePort
  20. # again - first is local, second - remote address of vpn tunnel
  21. ifconfig 10.255.255.9 10.255.255.10
  22. # you want to put below SIP1/32 routed via vpn ip from far end of the tunnel
  23. route 10.15.0.0 255.255.0.0 10.255.255.10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement