Route Vpn traffic over my home Wan Ip

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
christian_domes
OpenVpn Newbie
Posts: 5
Joined: Thu Apr 28, 2022 7:34 am

Route Vpn traffic over my home Wan Ip

Post by christian_domes » Thu Apr 28, 2022 7:40 am

Hello
I want to route my vpn traffic over my home wan adress.
When i use push "redirect-gateway def1 bypass-dhcp" on my server config all traffic routes over my home network and when i check my public ip adress on my client it is my home ip but when i access a domain example.at in my webserver logs the ip adress is not my home wan ip adress but it is the wan adress of my clients network. How can i change this.

christian_domes
OpenVpn Newbie
Posts: 5
Joined: Thu Apr 28, 2022 7:34 am

Re: Route Vpn traffic over my home Wan Ip

Post by christian_domes » Thu Apr 28, 2022 8:37 pm

Solved the problem. route example.at 255.255.255.255 vpn_gateway must be in the client config, not in the server config

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Route Vpn traffic over my home Wan Ip

Post by TinCanTech » Thu Apr 28, 2022 8:45 pm

You can optionally --push that from the server.

Post Reply