[deleted] I want create openVPN tunnel between two VMs and connect from browser on client side to Apache server that starts up on server side. I write my server.conf and client.conf. Problem is the connection doesn't pass from tunnel. How should I do routing of server and client that all traffic of client pass through the tunnel? #server config (ip : 10.0.6.5) #Network Configuration mode server proto tcp-server dev tun topology subnet ifconfig xxxx 255.255.255.0 port 1194 user nobody group nogroup persist-key persist-tun keepalive 10 120 dh none tls-server tls-version-min 1.3 tls-version-max 1.3 ca /home/ca.crt cert /home/server.crt key /home/server.key tls-ciphersuites TLS_AES_256_GCM_SHA384 cipher AES-256-GCM verb 5 # client config (ip : 10.0.6.4): #Network Configuration proto tcp-client dev tun pull remote 10.0.6.5 port 1194 user nobody group nogroup persist-key persist-tun keepalive 10 120 # Control Configuration (Crypto) tls-client tls-version-min 1.3 tls-version-max 1.3 ca /home/ca.crt cert /home/client.crt key /home/client.key tls-ciphersuites TLS_AES_256_GCM_SHA384 cipher AES-256-GCM verb 5 redirect-gateway local Thanks in advance, hope somebody help me.
TinCanTech ankh75613 wrote How should I do routing of server and client that all traffic of client pass through the tunnel? --redirect-gateway def1 is the most common solution.