globaltech hello, i have openvpn that are configure to run using statickey, everythings is workfine my problem is the server not working as gateway on the client so what i have to do ? this is my serverconf: port 3389 proto udp dev tun ifconfig 10.8.0.1 10.8.0.2 secret static.key comp-lzo keepalive 10 60 ping-timer-rem persist-tun persist-key status openvpn-status.log log openvpn.log log-append openvpn.log verb 3 client conf: remote myip 3389 proto udp dev tun ifconfig 10.8.0.2 10.8.0.1 secret static.key comp-lzo ping-timer-rem persist-tun persist-key verb 3 and what if i have many clients what i have to do ? thanks.
janjust for a single client, add redirect-gateway def1 to the client config and solve any routing issues. If you need to support multiple clients then switch to a client/server setup using certificates.
globaltech how i can do it ? could please more details ? i am setup already the certifcate but i am using the static key becuse the otherway is using tls.and my isp is block it. thanks.
janjust if you need to support multiple clients you need to use cerificates; if you use certificates you end up using TLS. if your ISP/country blocks that, then you're out of luck. An alternative would be to run a separate static-key openvpn process for each client.
globaltech hello, thanks for your answer. how i can make a static key for each client ? what's the client and server config? any artical or book can help me? or simple config files? please not that: regarding documentation the statickey use in gerneral for site to site, in my case i have to use this way to make the connection througe this way but i have many clients to one server. regding the confige above i have only one static ip for the client? so can i make it as dhcp? regarding the config above i dont have a getway that assign to tun adapter so i have to assigen it. thanks.