
VPN 연결을 설정하기 위해 터미널에서 vpnc를 사용하고 있습니다. 스크립트를 실행할 때 시작되도록 스크립트를 만들 수 있는 방법이 있습니까? 모든 게이트웨이 정보를 다시 입력하는 대신 등.
답변1
에서 man vpnc
:
CONFIGURATION
The daemon reads configuration data from the following places:
· command line options
· config file(s) specified on the command line
· /etc/vpnc/default.conf
· /etc/vpnc.conf
· prompting the user if not found above
예를 들어 다음을 입력 하거나 (아마도 sudo를 사용하여) /etc/vpnc/default.conf
새 항목을 수정하거나 생성할 수 있습니다./etc/vpnc/myvpn.conf
vpnc
vpnc myvpn