mirror of
https://github.com/namibia/openvpn-install.git
synced 2024-06-07 05:50:46 +00:00
Merge pull request #91 from clickworkorange/master
Set "local" in server.conf to the chosen IP address
This commit is contained in:
commit
dd1eeb05f9
|
@ -427,7 +427,8 @@ WantedBy=multi-user.target" > /etc/systemd/system/rc-local.service
|
||||||
chmod 644 /etc/openvpn/crl.pem
|
chmod 644 /etc/openvpn/crl.pem
|
||||||
|
|
||||||
# Generate server.conf
|
# Generate server.conf
|
||||||
echo "port $PORT" > /etc/openvpn/server.conf
|
echo "local $IP" > /etc/openvpn/server.conf
|
||||||
|
echo "port $PORT" >> /etc/openvpn/server.conf
|
||||||
if [[ "$PROTOCOL" = 'UDP' ]]; then
|
if [[ "$PROTOCOL" = 'UDP' ]]; then
|
||||||
echo "proto udp" >> /etc/openvpn/server.conf
|
echo "proto udp" >> /etc/openvpn/server.conf
|
||||||
elif [[ "$PROTOCOL" = 'TCP' ]]; then
|
elif [[ "$PROTOCOL" = 'TCP' ]]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user