<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>50987</bug_id>
          
          <creation_ts>2024-07-29 06:00:55 +0300</creation_ts>
          <short_desc>shell error on ip show route</short_desc>
          <delta_ts>2026-03-04 22:02:16 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>openfortivpn</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Худолей Артём">ar</reporter>
          <assigned_to name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>lakostis</cc>
    
    <cc>nickfoxxx1</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>249378</commentid>
    <comment_count>0</comment_count>
    <who name="Худолей Артём">ar</who>
    <bug_when>2024-07-29 06:00:55 +0300</bug_when>
    <thetext>При подключении к vpn, выполняется команда с !%s. Шел его интерпретирует как управляющий символ. 
```
INFO:   Interface ppp0 is UP.
INFO:   Setting new routes...
DEBUG:  ip route show to 0.0.0.0/0.0.0.0 dev !ppp0
ERROR:  : No such file or directory.
WARN:   Could not get current default route (unknown).
WARN:   Protecting tunnel route has failed. But this can be working except for some cases.
DEBUG:  ip route add to 10.0.0.0/255.0.0.0 dev ppp0
DEBUG:  ip route add to 172.16.0.0/255.240.0.0 dev ppp0
INFO:   Adding VPN nameservers...
```

```
https://github.com/adrienverge/openfortivpn/blob/c49663d267429d89cd6c5c4f8a5bfa9af011fd46/src/ipv4.c#L746
        sprintf(route_iface(def_rt), &quot;!%s&quot;, tunnel-&gt;ppp_iface);
```

При изменении данной строки на:
```
sprintf(route_iface(def_rt), &quot;\!%s&quot;, tunnel-&gt;ppp_iface);
```

Ошибка пропадает и маршруты успешно добавляются.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249384</commentid>
    <comment_count>1</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2024-07-29 10:24:58 +0300</bug_when>
    <thetext>https://packages.altlinux.org/en/tasks/353860/ можете проверить с этой версией?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249671</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-08-05 10:11:27 +0300</bug_when>
    <thetext>openfortivpn-1.22.1-alt1 -&gt; sisyphus:

 Mon Jul 29 2024 L.A. Kostis &lt;lakostis@altlinux.ru&gt; 1.22.1-alt1
 - 1.22.1.
 - escape shell symbols in route cmd (closes #50987).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>266065</commentid>
    <comment_count>3</comment_count>
    <who name="Nikolay Korolev">nickfoxxx1</who>
    <bug_when>2025-05-30 11:05:06 +0300</bug_when>
    <thetext>В версии openfortivpn 1.22.1 проблема сохраняется
ERROR:  : No such file or directory.
WARN:   Could not get current default route (unknown).
WARN:   Protecting tunnel route has failed. But this can be working except for some</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273303</commentid>
    <comment_count>4</comment_count>
    <who name="Nikolay Korolev">nickfoxxx1</who>
    <bug_when>2025-09-26 20:49:58 +0300</bug_when>
    <thetext>Добрый день.
Пожалуйста, добавьте версию 1.23.1 в репозиторий.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277318</commentid>
    <comment_count>5</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2025-11-17 18:28:00 +0300</bug_when>
    <thetext>https://packages.altlinux.org/en/sisyphus/srpms/openfortivpn/

1.23.1 уже в сизифе, прошу проверить. 

PS также прошу ознакомиться вот с этой проблемой[1], т.к. FortiGate скоро прикроет sslvpn, приложение станет не очень нужным. В качестве альтернативы рассматривается ipsec, но там тоже не все гладко.

1. https://github.com/adrienverge/openfortivpn/issues/1288</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283215</commentid>
    <comment_count>6</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2026-03-04 22:02:16 +0300</bug_when>
    <thetext>Привет!

Проверьте с 1.24.1-alt1 как появится в сизифе.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>