Showing posts with label SSL VPN. Show all posts
Showing posts with label SSL VPN. Show all posts

Thursday, April 30, 2020

openvpn --config client.ovpn fail: RTNETLINK answers: File exists

I have removed route remote_host 255.255.255.255 net_gateway from client.ovpn file

OpenVPN: “Bad compression stub decompression header byte: 102”





OpenVPN 2.4 also became the default version your connections use. OpenVPN 2.4 adds many security and performance improvements.

Because OpenVPN 2.4 is a major release, there are some setting incompatibilities you may have from your OpenVPN 2.3 configurations. The most common incompatibility is compression settings and the deprecation of the comp-loz command.

Due to which our  data traffic is halted, but connection is not dropped (vpn)

connecting to sophos VPN , we were able to ping to the desired machine in office network but unable to connect to machine via, SSH or VNC.

when we try to ssh we get the below error

Bad Compression

 

The Following Solution will Be able to solve this issue and make you to connect to your machine.

 

Step 1. Goto The setting and Select networks

 

Step 2: Install the Following Packages to configure VPN.

sudo apt-get install network-manager-openvpn 
sudo apt-get install network-manager-openvpn-gnome  
sudo apt-get install network-manager-pptp 
sudo apt-get install network-manager-vpnc

  

Step 3:  Go to the Network of Ubuntu, Under VPN , click on + button.


Step 4: Click on Import From File and import the .ovpn file from Sophos.

if you get any error like plugins error  like.


“error: the plugin does not support import capability” when attempting to import openvpn config file”

Open your .ovpn and Comment the following line

route remote_host 255.255.255.255 net_gateway


Step 5:  After importing successfully, Enter your Credentials like username and password.

Step 6: After entering, click on Advanced Settings.

Step7: Change the LZO Data Compress Value from no to Adaptive

Step8: Click ok and Apply and connect to your VPN and try to connect to your machine!

 

 

***********

Important Update

If you Dint get internet Access after Connected to VPN!

Try this

Goto network setting & click on your desired vpn setting icon

VPN configaration > IPv4routes > use this connection only for resources on its network

Goto IPv4 and tick the “Use this connection only for resource on its network”  & click on Apply

Sophos XG Firewall: How to configure SSL VPN client in Ubuntu

How to configure the SSL VPN on Ubuntu

OpenVPN should be installed. 

You can install OpenVPN by executing thefollowing command:

# sudo apt-get install openvpn

Follow these steps to configure SSL VPN Client in Ubuntu:

  1. Login to Sophos Firewall's User Portal by browsing to https://<WAN IP address of Sophos>:443 

  2. Navigate to SSL VPN
  3. Click Download Configuration for Other OSs


  4. A compressed file named .ovpn is downloaded.
  5. Navigate to where the ovpn file was downloaded and execute the following command:
  6. openvpn --config client.ovpn
  7. Fill in the username and password
  8. The client will now connect

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...