Score:0

static IP with openVPN

in flag

here is my problem: I have an OPENvpn server, with some linux user. (raspberry and custom embedded linux OS with openVPN).


client.conf:

client
proto udp
explicit-exit-notify
remote ################
dev tun
resolv-retry infinite
nobind
#persist-key !!!!!!!!!!
#persist-tun !!!!!!!!!!
remote-cert-tls server
verify-x509-name server_XL98c6RoSdvOVX3E name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
ignore-unknown-option block-outside-dns
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
comp-lzo no
verb 4

I have to remove persist-key and tun because if my client lost the connection, they dont reconnect automatically. So... i must call my clients to reboot their system. Not so good...

But, since i have removed persist-key & persist-run from conf, every time my clients reconnect, IP affected by OPENvpn change. 10.8.0.4, and... after reconnect, 10.8.0.7 or others...

I want to know if i can use another option. I saw that i can configure a file called ipp.txt. With

<client><ip>, but i really dont understand how i can do that.

Can you help me bit with that ?


server.conf:

port 1194
proto udp6
dev tun
user nobody
group nogroup
persist-key
persist-tun
duplicate-cn
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 94.140.14.14"
push "dhcp-option DNS 94.140.15.15"
push "redirect-gateway def1 bypass-dhcp"
server-ipv6 fd42:42:42:42::/112
tun-ipv6
push tun-ipv6
push "route-ipv6 2000::/3"
push "redirect-gateway ipv6"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key
crl-verify crl.pem
ca ca.crt
cert server_XL98c6RoSdvOVX3E.crt
key server_XL98c6RoSdvOVX3E.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
client-config-dir /etc/openvpn/ccd
status /var/log/openvpn/status.log
client-to-client
verb 4
mute 20
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
comp-lzo no
push "comp-lzo no"
#compress no
#push "compress no
client-config-dir ccd
management 127.0.0.1 8989
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.