NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
63 stars 18 forks source link

OpenVPN tunnels revert to UDP protocol #5446

Closed filippocarletti closed 6 years ago

filippocarletti commented 6 years ago

OpenVPN tunnels configured to use the TCP protocol go back to using UDP when the configuration database is initialized.

Steps to reproduce

Expected behavior

Protocol should remain TCP

[root@rc3 ~]# rpm -qf /etc/e-smith/db/vpn/migrate/5313.ns7
nethserver-openvpn-1.6.7-1.ns7.noarch

Details:

[root@rc3 ~]# db vpn show
ovt1=openvpn-tunnel-server
    Cipher=
    Compression=enabled
    LocalNetworks=192.168.56.0/24
    Network=10.191.157.0/24
    Port=1274
    Protocol=tcp-server
    PublicAddresses=2.237.88.6
    Topology=subnet
    status=enabled
[root@rc3 ~]# /etc/e-smith/events/actions/initialize-default-databases 
Migrating existing database configuration
...
Migrating existing database vpn
[root@rc3 ~]# db vpn show
ovt1=openvpn-tunnel-server
    Cipher=
    Compression=enabled
    LocalNetworks=192.168.56.0/24
    Network=10.191.157.0/24
    Port=1274
    Protocol=udp
    PublicAddresses=2.237.88.6
    Topology=subnet
    status=enabled
nethbot commented 6 years ago

in 7.4.1708/testing:

filippocarletti commented 6 years ago

Updated: nethserver-openvpn.noarch 0:1.6.7-1.2.gc9c940b.ns7

Complete! [root@ns7 ~]# db vpn show | grep Protocol Protocol=tcp-server

nethbot commented 6 years ago

in 7.4.1708/updates: