This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linux route add command failed: external program exited with error status: 2

Hey guys, I am having the following error

The admnistrator of the server in my work does not know how to solve it

He told me to run as root, but I already do it

It was working fine some days ago

 

I read that I had to delete some cache but I don't where I can do it. Please, help, I need this to work.

 

 

Tue May  5 08:30:25 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]187.63.160.91:8443
Tue May  5 08:30:25 2020 Socket Buffers: R=[131072->131072] S=[16384->16384]
Tue May  5 08:30:25 2020 Attempting to establish TCP connection with [AF_INET]187.63.160.91:8443 [nonblock]
Tue May  5 08:30:26 2020 TCP connection established with [AF_INET]187.63.160.91:8443
Tue May  5 08:30:26 2020 TCP_CLIENT link local: (not bound)
Tue May  5 08:30:26 2020 TCP_CLIENT link remote: [AF_INET]187.63.160.91:8443
Tue May  5 08:30:26 2020 TLS: Initial packet from [AF_INET]187.63.160.91:8443, sid=a3deb8fb 69662e32
Tue May  5 08:30:26 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue May  5 08:30:27 2020 VERIFY OK: depth=1, C=BR, ST=Rio Grande do Sul, L=Caxias Do Sul, O=Bitcom, OU=OU, CN=Sophos_CA_C16617183415-PSO98T, emailAddress=sva@bitcom.psi.br
Tue May  5 08:30:27 2020 VERIFY X509NAME OK: C=BR, ST=RS, L=Caxias do Sul, O=BITCOM PROVEDOR DE INTERNTE, OU=OU, CN=SophosApplianceCertificate_C16617183415-PSO98T, emailAddress=sva@bitcom.psi.br
Tue May  5 08:30:27 2020 VERIFY OK: depth=0, C=BR, ST=RS, L=Caxias do Sul, O=BITCOM PROVEDOR DE INTERNTE, OU=OU, CN=SophosApplianceCertificate_C16617183415-PSO98T, emailAddress=sva@bitcom.psi.br
Tue May  5 08:30:28 2020 Control Channel: TLSv1, cipher SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Tue May  5 08:30:28 2020 [SophosApplianceCertificate_C16617183415-PSO98T] Peer Connection Initiated with [AF_INET]187.63.160.91:8443
Tue May  5 08:30:29 2020 SENT CONTROL [SophosApplianceCertificate_C16617183415-PSO98T]: 'PUSH_REQUEST' (status=1)
Tue May  5 08:30:29 2020 PUSH: Received control message: 'PUSH_REPLY,route-gateway 10.81.234.5,ping 450,ping-restart 1800,redirect-gateway def1,topology subnet,route remote_host 255.255.255.255 net_gateway,ifconfig 10.81.234.12 255.255.255.0'
Tue May  5 08:30:29 2020 OPTIONS IMPORT: timers and/or timeouts modified
Tue May  5 08:30:29 2020 OPTIONS IMPORT: --ifconfig/up options modified
Tue May  5 08:30:29 2020 OPTIONS IMPORT: route options modified
Tue May  5 08:30:29 2020 OPTIONS IMPORT: route-related options modified
Tue May  5 08:30:29 2020 Outgoing Data Channel: Cipher 'AES-128-CBC' initialized with 128 bit key
Tue May  5 08:30:29 2020 Outgoing Data Channel: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue May  5 08:30:29 2020 Incoming Data Channel: Cipher 'AES-128-CBC' initialized with 128 bit key
Tue May  5 08:30:29 2020 Incoming Data Channel: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue May  5 08:30:29 2020 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 IFACE=wlp2s0 HWADDR=00:05:16:62:4a:8f
Tue May  5 08:30:29 2020 TUN/TAP device tun0 opened
Tue May  5 08:30:29 2020 TUN/TAP TX queue length set to 100
Tue May  5 08:30:29 2020 /sbin/ip link set dev tun0 up mtu 1500
Tue May  5 08:30:29 2020 /sbin/ip addr add dev tun0 10.81.234.12/24 broadcast 10.81.234.255
Tue May  5 08:30:33 2020 /sbin/ip route add 187.63.160.91/32 via 192.168.0.1
Tue May  5 08:30:33 2020 /sbin/ip route add 0.0.0.0/1 via 10.81.234.5
Tue May  5 08:30:33 2020 /sbin/ip route add 128.0.0.0/1 via 10.81.234.5
Tue May  5 08:30:33 2020 /sbin/ip route add 187.63.160.91/32 via 192.168.0.1
RTNETLINK answers: File exists
Tue May  5 08:30:33 2020 ERROR: Linux route add command failed: external program exited with error status: 2
Tue May  5 08:30:33 2020 /sbin/ip route add 187.63.160.91/32 via 192.168.0.1
RTNETLINK answers: File exists
Tue May  5 08:30:33 2020 ERROR: Linux route add command failed: external program exited with error status: 2
Tue May  5 08:30:33 2020 Initialization Sequence Completed



This thread was automatically locked due to age.
  • where do you see this output?

    You should not configure something at the sophos-CLI.

    i can see the command " /sbin/ip route add 187.63.160.91/32 via 192.168.0.1"  three times ... the first without error message

    so the routing should work. Which problem do you got?

    do you configure static routes within sophos gui?

    check if the route is configured multiple times.


    Dirk

    Systema Gesellschaft für angewandte Datentechnik mbH  // Sophos Platinum Partner
    Sophos Solution Partner since 2003
    If a post solves your question, click the 'Verify Answer' link at this post.

  • Ola Felipe,

    try to execute this command on a normal shell prompt with the user you are using for the vpn-client:

    /sbin/ip route add 187.63.160.91/32 via 192.168.0.1

    What's the output you get?

    Did you change the user or his group-memberships, who is using the vpn?

    @: I think he is using a linux vpn client to remote into a Sophos VPN Server

     

    Mit freundlichem Gruß, best regards from Germany,

    Philipp Rusch

    New Vision GmbH, Germany
    Sophos Silver-Partner

    If a post solves your question please use the 'Verify Answer' button.

  • The host route from the original default gateway to your server is already set, so the route add for the same host gives an error.

    That is normal when you put "any" in the local networks of your ssl vpn profile, you can ignore the error