diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-11-09 19:42:30 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-11-11 10:50:16 +0100 |
commit | b0fd63195bec8bcfe1cc0a2a0f949911109426b5 (patch) | |
tree | af6fc0c98c70f71a3a18fe4183d79d937c65f429 | |
parent | 924261bc926ce497eecad2d0f10b03088e3fdec7 (diff) | |
download | fastd-b0fd63195bec8bcfe1cc0a2a0f949911109426b5.tar fastd-b0fd63195bec8bcfe1cc0a2a0f949911109426b5.zip |
docs: examples/openwrt: support all handler commands via UCI
-rw-r--r-- | doc/examples/openwrt/fastd.config | 10 | ||||
-rw-r--r-- | doc/examples/openwrt/fastd.init | 11 | ||||
-rw-r--r-- | doc/source/releases/v15.rst | 4 |
3 files changed, 24 insertions, 1 deletions
diff --git a/doc/examples/openwrt/fastd.config b/doc/examples/openwrt/fastd.config index 69e3b21..e2c6db6 100644 --- a/doc/examples/openwrt/fastd.config +++ b/doc/examples/openwrt/fastd.config @@ -90,6 +90,16 @@ config fastd sample_config # command to execute before the tunnel interface is set down; $1 will be the interface name (optional) # option down '' + # commands executed by fastd ($INTERFACE can be used for the interface name; optional) +# option on_pre_up '' +# option on_up '' +# option on_down '' +# option on_post_down '' +# option on_connect '' +# option on_establish '' +# option on_disestablish '' +# option on_verify '' + config peer sample_peer diff --git a/doc/examples/openwrt/fastd.init b/doc/examples/openwrt/fastd.init index 325ea12..25a3bb8 100644 --- a/doc/examples/openwrt/fastd.init +++ b/doc/examples/openwrt/fastd.init @@ -79,6 +79,14 @@ config_string_hide_ip_addresses='hide ip addresses $(yes_no "$value");' config_string_hide_mac_addresses='hide mac addresses $(yes_no "$value");' config_string_secure_handshakes='secure handshakes $(yes_no "$value");' config_string_packet_mark='packet mark $(guard_value "$value");' +config_string_on_pre_up='on pre-up $(escape_string "$value");' +config_string_on_up='on up $(escape_string "$value");' +config_string_on_down='on down $(escape_string "$value");' +config_string_on_post_down='on post-down $(escape_string "$value");' +config_string_on_connect='on connect $(escape_string "$value");' +config_string_on_establish='on establish $(escape_string "$value");' +config_string_on_disestablish='on disestablish $(escape_string "$value");' +config_string_on_verify='on verify $(escape_string "$value");' config_string_peer='peer $(escape_string "$value") {' config_string_peer_group='peer group $(escape_string "$value") {' @@ -234,7 +242,8 @@ generate_config() { append_options "$s" config \ config config_peer config_peer_dir bind method syslog_level mode interface mtu peer_limit \ - user group status_socket pmtu forward hide_ip_addresses hide_mac_addresses secure_handshakes packet_mark + user group status_socket pmtu forward hide_ip_addresses hide_mac_addresses secure_handshakes packet_mark \ + on_pre_up on_up on_down on_post_down on_connect on_establish on_disestablish on_verify config_get mode "$s" mode diff --git a/doc/source/releases/v15.rst b/doc/source/releases/v15.rst index 664ca16..1e370aa 100644 --- a/doc/source/releases/v15.rst +++ b/doc/source/releases/v15.rst @@ -27,6 +27,10 @@ New features * Fix warnings with CMake 3.0 +* OpenWrt: allow setting on-connect, on-verify, on-establish... hooks via UCI + +* OpenWrt: allow specifying bind interfaces in UCI + Bugfixes ~~~~~~~~ * Signal handling improvements |