I am trying to configure an OpenVPN server into my router. I have followed the guide from the wiki. I have created two users (client1, client2) and each one can connect to the VPN and see the remote network hosted into the router. i do not want to have all the traffic through the VPN for the clients, so i added into their .ovpn file pull-filter ignore redirect-gateway
.
The problem is that the remote users cannot access nothing else apart from the remote network. Even if i delete the option pull-filter ignore redirect-gateway
, still the problem exists. if i do a tracert
from the clinet (Windows 10) to 8.8.8.8
, i am reaching the default gateway IP of the tunnel, but that's it. no further progrss and then i am getting a destination protocol unreachable
if i do a logread -f /var/log/lastlog
then i am getting a lot of entries Mon Sep 26 12:46:19 2022 daemon.err openvpn(client)[6004]: Options error: You must define TUN/TAP device (--dev) Mon Sep 26 12:46:19 2022 daemon.warn openvpn(client)[6004]: Use --help for more information. Mon Sep 26 12:46:24 2022 daemon.warn openvpn(client)[6005]: Cipher negotiation is disabled since neither P2MP client nor server mode is enabled
although if i do an 'ifconfig' i am getting
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.32.1 P-t-P:192.168.32.1 Mask:255.255.255.0
inet6 addr: fe80::b0d8:38b8:ffb4:9ffe/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:229 errors:0 dropped:0 overruns:0 frame:0
TX packets:233 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:12921 (12.6 KiB) TX bytes:14618 (14.2 KiB)
I do not want them to connect to OpenVPN and browse the Internet from the VPN, rather have Internet access from their local DSL and be able to see the remote network when connected to OpenVPN. How could i fix this, please?