Page 1 of 1

Route all traffic

Posted: Thu Mar 17, 2022 8:51 am
by avyannz
Hi everyone, sorry for being a noob, I am sure this has been asked so many time. I would like my client to use all traffic from the VPN server.

I am setting a server in the office (window 10), the server setting as below:

---------------------------------------------------------
port 1194
proto udp
dev tun

ca ca.crt
cert server.crt
key server.key
dh dh.pem

server 10.50.8.0 255.255.255.0
ifconfig-pool-persist ipp.txt

push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"

keepalive 10 120

persist-key
persist-tun
---------------------------------------------------------

I know I have to put push "redirect-gateway def1" into config to make it works. And I know I am missing some settings in my server or server's router to teach the server to handle client's traffic? Adding a route or NATing or something like this? But I do not know how to do it.

Currently, I have to manually share my internet traffic in (Window's Network connection > Internet connection sharing) to the VPN's adapter. I know this is not the proper way to do.

Would anyone help? Thanks a lot!

Re: Route all traffic

Posted: Thu Mar 17, 2022 2:03 pm
by TinCanTech