I have a problem... I worked a lot of days on configure a VPN on my dedicated serv... I started 1 month ago. Now it works, I am able to connect to it. I have no error.
But I want to have a static IP when I'm connected to it, I have read that I must add a gateway, but I haven't understood all and my english isn't that good to understand all explanations...
So could you help me ?
Here are my confs : server.conf
local 12.345.678.901
port 12345
proto tcp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 192.168.0.0 255.255.255.0
push "route 10.4.0.0 255.255.255.0"
keepalive 10 120
cipher AES-128-CBC
comp-lzo
max-clients 5
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 6
client.conf
client
dev tun
proto tcp
remote 12.345.678.901 12345
#tentative de connexion infinie
resolv-retry infinite
nobind
#pour rendre la connexion persistante
persist-key
persist-tun
#pour cacher les avertissements
mute-replay-warnings
ca ca.crt
cert client.crt
key client.key
cipher AES-128-CBC
comp-lzo
verb 5
I also read somthing about add some routes with iptables, but all i tried wasn't working... Thanks for your help!