OpenVPN file works correctly on windows but not on linux

Need help configuring your VPN? Just post here and you'll get that help.

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
marcuspriett
OpenVpn Newbie
Posts: 1
Joined: Mon Jan 23, 2023 12:27 am

OpenVPN file works correctly on windows but not on linux

Post by marcuspriett » Mon Jan 23, 2023 12:43 am

I've been trying to solve my problem with OpenVPN for almost a month now. The configuration file works perfectly when imported on windows but not on linux, regardless of Distro.

There are no error messages or anything like that, I'm connected to the internet normally but I can't access the network via IP, unlike what happens in Windows which works perfectly. Forgive me, but that's all I can say about networking.

This is my current config file:

Code: Select all

pull
tls-cipher "DEFAULT:@SECLEVEL=0"
client
dev tun
tls-client
remote-cert-eku "TLS Web Server Authentication"
proto udp
remote XX.XX.XXX.XXX 1194 udp
topology subnet
pull
user nobody
group nobody
cipher AES-256-CBC

<ca>
-----BEGIN CERTIFICATE-----
# My certificate
-----END CERTIFICATE-----
</ca>
<cert>
# Certificate info
</cert>
<key>
-----BEGIN PRIVATE KEY-----
# Private key
-----END PRIVATE KEY-----
</key>
<tls-crypt>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
# OpenVPN Static key
-----END OpenVPN Static key V1-----
</tls-crypt>

Code: Select all

$ ifconfig

enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.186  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2804:10f8:a449:a200::103  prefixlen 128  scopeid 0x0<global>
        inet6 fe80::3553:1e8:52f7:4597  prefixlen 64  scopeid 0x20<link>
        ether 3c:7c:3f:7b:6b:06  txqueuelen 1000  (Ethernet)
        RX packets 23313  bytes 17674028 (16.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 20278  bytes 4649238 (4.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 134  bytes 12388 (12.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 134  bytes 12388 (12.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 10.8.0.18  netmask 255.255.255.0  destination 10.8.0.18
        inet6 fe80::6f:9b64:b420:1027  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 30  bytes 1200 (1.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 127  bytes 9788 (9.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Let me know if I can help in another way to understand the problem

Post Reply