README 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. The vpnc client expects to be configured using the uci interface.
  2. To setup a VPN connection, add the following to /etc/config/network:
  3. config interface 'MYVPN'
  4. option proto 'vpnc'
  5. option interface 'wan'
  6. option server 'vpn.example.com'
  7. option username 'test'
  8. option password 'secret' # or:
  9. option hexpasswd 'AE7FF6A0426F0A0CD0A02EB9EC3C5066FAEB0B25'
  10. option authgroup 'DEFAULT'
  11. option passgroup 'groupsecret' # or:
  12. option hexpassgroup '52B0BEAF6605C3CE9BE20A0DC0A0F6240A6FF7EA'
  13. option domain 'WORKGROUP'
  14. option vendor 'cisco' # or 'netscreen'
  15. option natt_mode 'natt' # or 'none' or 'force-natt' or 'cisco-udp'
  16. option dh_group 'dh2' # or 'dh1' or 'dh5'
  17. option pfs 'server' # or 'nopfs' or 'dh1' or 'dh2' or 'dh5'
  18. option enable_single_des '0'
  19. option enable_no_enc '0' # '1' to enable unencrypted VPN
  20. option mtu '0'
  21. option local_addr '0.0.0.0'
  22. option local_port '500' # '0' to use a random port
  23. option udp_port '10000' # '0' to use a random port
  24. option dpd_idle '300'
  25. option auth_mode 'psk' # or 'hybrid'
  26. option target_network '0.0.0.0/0.0.0.0' # network/netmask or CIDR
  27. The additional file(s) are also used:
  28. /etc/vpnc/ca-vpn-MYVPN.pem: The server's CA certificate (for auth_mode 'hybrid')
  29. After these are setup you can initiate the VPN using "ifup MYVPN", and
  30. deinitialize it using ifdown. You may also use the luci web interface
  31. (Network -> Interfaces -> MYVPN Connect).
  32. Note that you need to configure the firewall to allow communication between
  33. the MYVPN interface and lan.
  34. If you install this package via opkg, there are reports that you must reboot
  35. before it can be used.