• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

OpenVPN compression

Scheduled Pinned Locked Moved General pfSense Questions
37 Posts 8 Posters 18.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    emammadov
    last edited by emammadov Mar 13, 2019, 12:24 PM Mar 13, 2019, 11:18 AM

    Hello,
    I want to setup OpenVPN, Compression has multiple options. In the past I have choosen Adaptive LZO Compression, recently I have read that Adaptive LZO Compression is depreciated in 2.4 version and has been removed in 2.5. Which option is recommended to choose? "Omit Preference (Use OpenVPN Default) has been choosen by default.

    0_1552475841348_openvpn.jpg

    Elvin

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Mar 13, 2019, 12:49 PM

      The current best practice is to disable compression for OpenVPN, due to attacks such as VORACLE which are possible when VPN traffic is compressed.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • P
        pfSenseTest
        last edited by Mar 13, 2019, 12:51 PM

        Best to remove the compression line completely from server and client config because of Voracle...
        https://community.openvpn.net/openvpn/wiki/VORACLE

        However, server may require it if you don't control it yourself.

        2x SG-5100 | MBT-4220 (retired) | SG-1000 (retired)

        1 Reply Last reply Reply Quote 0
        • E
          emammadov
          last edited by emammadov Mar 13, 2019, 1:40 PM Mar 13, 2019, 1:31 PM

          Thank you for your replies. I selected "Disable Compression, retain compression packet framing (compress)". In our past pfsense I select Disable Compression for testing, then I can connect but cannot access servers and don't have internet connection. I selected Adaptive LZO Compression back, and now it began working. Should I export vpn files again after changing compression?

          Elvin

          1 Reply Last reply Reply Quote 0
          • R
            Rico LAYER 8 Rebel Alliance
            last edited by Mar 13, 2019, 1:54 PM

            I use Push Compression option on the OpenVPN Server side and add compress to the client config file.
            Then I am able to switch server side compression settings without touching any of the client stuff. ☺

            -Rico

            1 Reply Last reply Reply Quote 2
            • E
              emammadov
              last edited by Mar 13, 2019, 3:04 PM

              But due to the Voracle attack, it is said not to use compression and it should be disabled. But my question is different.

              Elvin

              1 Reply Last reply Reply Quote 0
              • R
                Rico LAYER 8 Rebel Alliance
                last edited by Mar 13, 2019, 3:11 PM

                It's not, with the compress option in Client Config and Push Compression (Server side) you should be able to push "Disable Compression, retain compression packet framing (compress)".

                -Rico

                1 Reply Last reply Reply Quote 0
                • E
                  emammadov
                  last edited by emammadov Mar 13, 2019, 4:31 PM Mar 13, 2019, 4:30 PM

                  It is not clear to me. I want to say comprehensively. We are using pfsense at our office at the moment. Adaptive LZO Compression has been choosen in VPN / OpenVPN / Servers. Jimp and pfSenseTest users said that don't use Compression at the moment and disable it because of VORACLE attack. So I changed compression from "Adaptive LZO Compression" to "Disable Compression, retain compression packet framing (compress)". But after it, when users connects, they don't see our network, I switched it back, it began to work. Now I have question that, after disabling Compression, should I export new vpn files for users?

                  Elvin

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by Mar 13, 2019, 6:39 PM

                    The clients all have to be changed to match. Everyone has to agree on the compression setting, or you have to set the server to push it.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • E
                      emammadov
                      last edited by emammadov Mar 14, 2019, 5:20 PM Mar 14, 2019, 5:17 PM

                      Thanks, after I selected "Push Compression" in OpenVPN, there is new entries in Systems Logs, which I have never seen before. Is it normal?

                      Mar 14 21:11:46 kernel em0: promiscuous mode enabled
                      Mar 14 21:11:46 kernel bge0: promiscuous mode enabled
                      Mar 14 21:11:46 kernel vr0.460: promiscuous mode enabled
                      Mar 14 21:11:46 kernel vr0: promiscuous mode enabled
                      Mar 14 21:11:46 kernel re1: promiscuous mode enabled
                      Mar 14 21:11:46 kernel re0: promiscuous mode enabled
                      Mar 14 21:11:45 kernel em0: promiscuous mode disabled
                      Mar 14 21:11:45 kernel bge0: promiscuous mode disabled
                      Mar 14 21:11:45 kernel vr0.460: promiscuous mode disabled
                      Mar 14 21:11:45 kernel vr0: promiscuous mode disabled
                      Mar 14 21:11:45 kernel re1: promiscuous mode disabled
                      Mar 14 21:11:45 kernel re0: promiscuous mode disabled
                      Mar 14 21:11:45 kernel pid 7858 (ntopng), uid 0: exited on signal 11 (core dumped)

                      Elvin

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Mar 16, 2019, 2:51 PM

                        None of those are OpenVPN related.

                        1 Reply Last reply Reply Quote 0
                        • P
                          Pippin
                          last edited by Mar 16, 2019, 3:02 PM

                          Probably from packet capture?

                          I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                          Halton Arp

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Mar 16, 2019, 4:12 PM

                            Looks more like ntopng restarting, taking all the interfaces out of promiscuous mode and then putting them back in.

                            Still unrelated to OpenVPN though. 😉

                            Steve

                            1 Reply Last reply Reply Quote 0
                            • E
                              emammadov
                              last edited by emammadov Mar 23, 2019, 12:09 PM Mar 23, 2019, 6:18 AM

                              I have still the same issue. I installed fresh pfsense and disabled compression. Windows machines and mobile phones connects and can access local network. Linux machines connects but can't access local network. I exported vpn files of Viscosity Bundle in Openvpn Client Export and imported files in Openvpn / Network Connection in Linux Mint, If I use compression in openvpn server and export new files and import them in Linux OS, then Linux machines can access local network.

                              But I export Archive in Openvpn server in pfSense and open terminal in Linux and run this command:
                              sudo openvpn --config user.ovpn and enter username and password then it connects and can access local network.

                              Elvin

                              1 Reply Last reply Reply Quote 0
                              • S
                                stephenw10 Netgate Administrator
                                last edited by Mar 24, 2019, 12:20 PM

                                You can edit the VPN connection in Linux Mint to change the compression settings.
                                Does it match what you set in pfSense? Can you change it to match? Does that then allow access?

                                Steve

                                1 Reply Last reply Reply Quote 0
                                • E
                                  emammadov
                                  last edited by Mar 24, 2019, 1:09 PM

                                  If I choose one of options in Compression, save and export new fles and import them in Linux Mint, then I connect and access local network.
                                  Default was "Omit Preference (Use Openvpn Default). Because of Voracle attack, I choose "Disable Compression, retain compression packet framing (compress)".

                                  There is also option in Compression settings: "No LZO Compression (Legacy style, comp-lzo-no)".

                                  To disable Compression, did I choose the right option? - "Disable Compression, retain compression packet framing (compress)".

                                  Elvin

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    emammadov
                                    last edited by emammadov Mar 24, 2019, 1:44 PM Mar 24, 2019, 1:38 PM

                                    "Disable Compression, retain compression packet framing (compress)" is selected in Compression. And I checked "Push Compression", after that, when I connect vpn, I can access local network. But I wonder why I have to check Push Compression?

                                    But I ask again. To disable Compression, did I choose the right option? - "Disable Compression, retain compression packet framing (compress)".

                                    Elvin

                                    P 1 Reply Last reply Aug 6, 2019, 6:11 PM Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Mar 24, 2019, 6:32 PM

                                      What does it show in the client in Mint when you do that?

                                      I always choose omit preference there unless the other end has some specific setting that requires it.

                                      Steve

                                      E 1 Reply Last reply Mar 25, 2019, 5:26 AM Reply Quote 0
                                      • E
                                        emammadov @stephenw10
                                        last edited by Mar 25, 2019, 5:26 AM

                                        @stephenw10 It shows nothing. I suggest you do it in your test environment to make sure why it happens, maybe there is a bug and it needs to be fixed. I read again that pfsense developers says don't use compression and disable it, because you may be a victim of Voracle attack.

                                        Elvin

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          stephenw10 Netgate Administrator
                                          last edited by stephenw10 Mar 25, 2019, 11:39 AM Mar 25, 2019, 11:36 AM

                                          I have such a tunnel configured right now. It works fine with the inline config imported to Mint, I can ping across it.

                                          Selection_596.png

                                          That's against an SG-1100 running 2.4.4p2

                                          In Mint that looks like this:
                                          Selection_597.png

                                          Steve

                                          1 Reply Last reply Reply Quote 0
                                          1 out of 37
                                          • First post
                                            1/37
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received