Hello Traffic!
The script is different. I.e. the line "DAEMON="
yours: DAEMON=/usr/local/sbin/openvpn
mine: DAEMON=/usr/sbin/openvpn
Mine is fine there: script is located in "/usr/sbin/openvpn".
There is one more variable initialisation after "STATUSREFRESH=10":
OMIT_SENDSIGS=0
Mine has an additional block in "start_vpn()":
# tun using the "subnet" topology confuses the routing code that wrongly
# emits ICMP redirects for client to client communications
SAVED_DEFAULT_SEND_REDIRECTS=0
if grep -q '^[[:space:]]*dev[[:space:]]*tun' $CONFIG_DIR/$NAME.conf && \
grep -q '^[[:space:]]*topology[[:space:]]*subnet' $CONFIG_DIR/$NAME.conf ; then
# When using "client-to-client", OpenVPN routes the traffic itself without
# involving the TUN/TAP interface so no ICMP redirects are sent
if ! grep -q '^[[:space:]]*client-to-client' $CONFIG_DIR/$NAME.conf ; then
sysctl -w net.ipv4.conf.all.send_redirects=0 > /dev/null
# Save the default value for send_redirects before disabling it
# to make sure the tun device is created with send_redirects disabled
SAVED_DEFAULT_SEND_REDIRECTS=$(sysctl -n net.ipv4.conf.default.send_redirects)
if [ "$SAVED_DEFAULT_SEND_REDIRECTS" -ne 0 ]; then
sysctl -w net.ipv4.conf.default.send_redirects=0 > /dev/null
fi
fi
fi
and at the end of "start_vpn()" an other block:
[ "$OMIT_SENDSIGS" -ne 1 ] || ln -s /var/run/openvpn.$NAME.pid /run/sendsigs.omit.d/openvpn.$NAME.pid
# Set the back the original default value of send_redirects if it was changed
if [ "$SAVED_DEFAULT_SEND_REDIRECTS" -ne 0 ]; then
sysctl -w net.ipv4.conf.default.send_redirects=$SAVED_DEFAULT_SEND_REDIRECTS > /dev/null
fi
That's all.
Very strage too is the following:
I just startet
/etc/init.d/openvpn start
and got
[ ok ] Starting virtual private network daemon:.
But I can't find
- any "openvpn.*.pid",
- ps aux | grep vpn
- ps -ef | grep vpn
- and log entries...
May be ist better to "apt-get purge" and install new from openvpn repository(?)