Skip to content

Commit

Permalink
Add additional keywords to OpenVPN lens and extend http-proxy:
Browse files Browse the repository at this point in the history
New
---
up
plugin
ping
ping-restart
ping-timer-rem

http-proxy now also supports authentication.
  • Loading branch information
James Juran committed Mar 31, 2015
1 parent be4a905 commit 2845769
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lenses/openvpn.aug
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ let empty = Util.empty
* - ns-cert-type => "server"
* - resolv-retry => "infinite"
* - script-security => [0-3] (execve|system)?
* - ping => num
* - ping-restart => num
* - up => filename
*************************************************************************)

let single_ip = "local"
Expand All @@ -75,6 +78,8 @@ let single_num = "port"
| "mute"
| "fragment"
| "mssfix"
| "ping"
| "ping-restart"
let single_fn = "ca"
| "cert"
| "key"
Expand All @@ -85,6 +90,7 @@ let single_fn = "ca"
| "log"
| "log-append"
| "client-config-dir"
| "up"
let single_an = "user"
| "group"

Expand Down Expand Up @@ -119,6 +125,7 @@ let single = single_entry single_num num_re
* - mute-replay-warnings
* - http-proxy-retry
* - daemon
* - ping-timer-rem
*
*************************************************************************)

Expand All @@ -133,6 +140,7 @@ let flag_words = "client-to-client"
| "mute-replay-warnings"
| "http-proxy-retry"
| "daemon"
| "ping-timer-rem"

let flag_entry (kw:regexp)
= [ key kw . comment_or_eol ]
Expand All @@ -151,6 +159,7 @@ let flag = flag_entry flag_words
* - tls-auth => filename [01]
* - remote => hostname/IP num
* - management => IP num filename
* - plugin => filename filename
*
*************************************************************************)

Expand Down Expand Up @@ -193,7 +202,9 @@ let remote = [ key "remote" . sep

let http_proxy = [ key "http-proxy" .
( sep . [ label "server" . store /[A-Za-z0-9._-]+/ ] .
( sep . [ label "port" . num ] )? )?
( sep . [ label "port" . num ] .
( sep . [ label "authfile" . store /[A-Za-z0-9._\/-]+/ ] .
( sep . [ label "authtype" . store /(none|basic|ntlm)/ ] )? )? )? )?
. comment_or_eol
]

Expand All @@ -203,6 +214,10 @@ let management = [ key "management" . sep
. [ label "pwfile" . filename ] . comment_or_eol
]

let plugin = [ key "plugin" . sep
. [ label "module" . store /[A-Za-z0-9._\/-]+/ ] . sep
. [ label "initstring" . filename ] . comment_or_eol
]

let other = server
| server_bridge
Expand All @@ -213,6 +228,7 @@ let other = server
| remote
| http_proxy
| management
| plugin


(************************************************************************
Expand Down

0 comments on commit 2845769

Please sign in to comment.