Summary: | net-misc/openvpn - init script should execute /etc/openvpn/${VPN}.sh | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Wyraz <michael> |
Component: | New packages | Assignee: | Cédric Krier <cedk> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michael Wyraz
2008-12-03 10:58:22 UTC
You sould use /etc/openvpn/${VPN}-up.sh and /etc/openvpn/${VPN}-down.sh where ${VPN} is the name of symlink to the init-script (e.g. openvpn.testvpn). there you can set firewall rules and do other things. the tap/tun-device used for this service is the first parameter ($1) and can also be used in the scripts. Feature already exists as explain in comment #1 /etc/openvpn/${VPN}-up.sh is only called when the VPN runs as client. There should be a similar thing when running as server. So the suggested solution does not apply to the scenario described here. You can configure the up script in the configuration file for the server. |