33 lines
1019 B
Bash
Executable File
33 lines
1019 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
. /usr/share/debconf/confmodule
|
|
|
|
db_input high vpn-router/platform || true
|
|
db_input high vpn-router/external_interface || true
|
|
db_input high vpn-router/internal_interface || true
|
|
db_input high vpn-router/local_fqdn || true
|
|
db_input high vpn-router/local_id_mode || true
|
|
db_input high vpn-router/local_cidrs || true
|
|
db_input high vpn-router/int_gateway_ip || true
|
|
db_input high vpn-router/remote_addrs || true
|
|
db_input high vpn-router/remote_id || true
|
|
db_input high vpn-router/remote_cidrs || true
|
|
db_input high vpn-router/psk || true
|
|
db_input high vpn-router/p2s_enabled || true
|
|
db_input high vpn-router/wg_enabled || true
|
|
db_go || true
|
|
|
|
db_get vpn-router/p2s_enabled
|
|
if [ "$RET" = "true" ]; then
|
|
db_input high vpn-router/p2s_address_pool || true
|
|
db_input high vpn-router/p2s_ca_name || true
|
|
db_go || true
|
|
fi
|
|
|
|
db_get vpn-router/wg_enabled
|
|
if [ "$RET" = "true" ]; then
|
|
db_input high vpn-router/wg_address || true
|
|
db_input high vpn-router/wg_listen_port || true
|
|
db_go || true
|
|
fi
|