sap-vpn.pl
changeset 9 b8eabdc8e452
parent 8 9f1f562a69a1
child 10 13b84a92a65a
equal deleted inserted replaced
8:9f1f562a69a1 9:b8eabdc8e452
   335 
   335 
   336 Host to connect to. (defaults to C<connectwdf.sap.corp>)
   336 Host to connect to. (defaults to C<connectwdf.sap.corp>)
   337 
   337 
   338 =item B<-k>|B<--kill>
   338 =item B<-k>|B<--kill>
   339 
   339 
   340 This is not really an option. It kills the link. This functionality
   340 This is not really an option, it's an operation. It kills the link. This
   341 relies on finding the PID file of the PPPD in
   341 functionality relies on finding the PID file of the PPPD in
   342 F</var/run/ppp->I<linkname>F<.pid>.
   342 F</var/run/ppp->I<linkname>F<.pid>.
   343 
   343 
   344 =item B<-l>|B<--linkname> I<linkname>
   344 =item B<-l>|B<--linkname> I<linkname>
   345 
   345 
   346 The name for the PPP link. Only word characters and "-" (minus sign) are
   346 The name for the PPP link. Only word characters and "-" (minus sign) are
   373 =item B<-s>|B<--script> I<script>
   373 =item B<-s>|B<--script> I<script>
   374 
   374 
   375 Script to execute after establishing the IP link.  If we're running as
   375 Script to execute after establishing the IP link.  If we're running as
   376 SUID-root, this script is executed under the effective UID and GID of
   376 SUID-root, this script is executed under the effective UID and GID of
   377 its owner, otherwise just with the permissions we have. (See the B<-d>
   377 its owner, otherwise just with the permissions we have. (See the B<-d>
   378 option above!). (no default)
   378 option above!). Currently this script is only called on connection
       
   379 establishment, but I'm thinking about calling it on closing the
       
   380 connection too. (no default)
   379 
   381 
   380     #! /bin/bash
   382     #! /bin/bash
   381     # How to know the interface name and the local/remove
   383     # How to know the interface name and the local/remove
   382     # ip addresses?
   384     # ip addresses?
   383     # Please se below.
   385     # Please se below.
   396 
   398 
   397 Your D|C|I user, not really optional. (no default)
   399 Your D|C|I user, not really optional. (no default)
   398 
   400 
   399 =back
   401 =back
   400 
   402 
       
   403 =head1 CONFIGURATION
       
   404 
       
   405 There is almost nothing that could go into a config file. I suggest
       
   406 using an alias in your shell, if you really want to "configure"
       
   407 something.
       
   408     
       
   409     alias sap-vpn-up="sap-vpn -v -u c5092986 -s $HOME/.vpn-script -p"
       
   410     alias sap-vpn-down="sap-vpn -k"
       
   411 
   401 =head1 VERSION and SOURCE
   412 =head1 VERSION and SOURCE
   402 
   413 
   403     $Id$
   414     $Id$
   404     $URL$
   415     $URL$
   405 
   416