Hi. Have have a home network with several machines.
(Mole) with openvpn as client connecting to a vpn service on the web.
(Digger) with openvpn as server that i can connect to my local network remotely.
Now i want to use my phone or my laptop to make a vpn connection to my home network. Using digger Be able to reach my local network and then use the vpn of mole to connect to the internet.
I think that if i tell my vpn clients (phone and laptop) to use mole as gateway i have a working situation.
But im unable to set it. (Im in the park at my phone)
push "remote-gateway 1 2.3.4" isnt working.
Network setup. Vpnin and vpnout as gateway
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 7
- Joined: Wed May 05, 2021 3:07 pm
-
- OpenVpn Newbie
- Posts: 7
- Joined: Wed May 05, 2021 3:07 pm
Re: Network setup. Vpnin and vpnout as gateway
Toughti had it running but tests failed
-
- OpenVpn Newbie
- Posts: 7
- Joined: Wed May 05, 2021 3:07 pm
Re: Network setup. Vpnin and vpnout as gateway
I gave up setting the gateway in the openvpn config.
i added a up script to the openvpn server.
i added a up script to the openvpn server.
Code: Select all
#!/bin/sh
ip route add 10.8.0.0/24 dev tun0 table 12
ip route add default via <my vpn client> dev eth0 table 12
ip rule add from 10.8.0.0/24 table 12
ip rule add to 10.8.0.0/24 table 12