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

    Как настроить siproxyd.

    Scheduled Pinned Locked Moved Russian
    18 Posts 7 Posters 8.5k 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.
    • S
      sereoga
      last edited by

      Добрый день.

      Есть PFsense 1.2.3 на него установил siproxyd 0.7.2 из Package Manager.
      При настройке столкнулся с проблемой:после выставления всех параметров нажимаю SAVE и настройки обнуляются. Переустановка siproxyd не помогает.
      В чем может быть проблема ?
      Спасибо.

      1 Reply Last reply Reply Quote 0
      • Z
        zar0ku1
        last edited by

        tail -f /var/log/messages
        

        посмотри в то время как нажимаешь кнопку сохранить или поищи логи siproxyd

        закрывайте темы, если ответ на ваш вопрос полон.
        если схема сложная - не поленитесь ее нарисовать

        1 Reply Last reply Reply Quote 0
        • C
          chillivilli
          last edited by

          Точно не помню, но вроде проблему решал тем, что сносил в ручном режиме из консоли сиппроксид и там он ставит еще какую-то зависимость, точно не помню какую, но при удалении через веб-морду она вроде не удалялась.. Попробуйте из консоли удалить все, что связано с siproxyd, затем поставить все снова через веб-морду.

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by

            Проблема может быть в дупликации записей конфига в /conf/config.xml

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • S
              sereoga
              last edited by

              Кусок config.xml относящийся (в этом не уверен) к siproxd. Настройки почему-то дублируются 4 раза

              <siproxdsettings><config><config><if_inbound>lan</if_inbound>
              <if_outbound>wan</if_outbound>
              <port><defaulttimeout><rtpenable>1</rtpenable>
              <rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></defaulttimeout></port></config>
              <config><if_inbound>lan</if_inbound>
              <if_outbound>lan</if_outbound>
              <port><defaulttimeout><rtpenable>1</rtpenable>
              <rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></defaulttimeout></port></config>
              <config><if_inbound>lan</if_inbound>
              <if_outbound>wan</if_outbound>
              <port>5061</port>
              <defaulttimeout>300</defaulttimeout>
              <rtpenable>1</rtpenable>
              <rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></config>
              <config><if_inbound>wan</if_inbound>
              <if_outbound>lan</if_outbound>
              <port><defaulttimeout><rtpenable>1</rtpenable>
              <rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></defaulttimeout></port></config></config></siproxdsettings>

              После нажатия Save  System logs: System выдает вотэто

              Jan 4 17:27:09 siproxd[3918]: readconf.c:309 ERROR:unknown keyword in config file, line:"plugindir=/usr/local/lib/siproxd/"
              Jan 4 17:27:09 siproxd[3918]: readconf.c:309 ERROR:unknown keyword in config file, line:"load_plugin=plugin_logcall.la"
              Jan 4 17:27:09 siproxd[3918]: siproxd.c:193 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 starting up
              Jan 4 17:27:09 siproxd[3920]: siproxd.c:241 INFO:daemonized, pid=3920
              Jan 4 17:27:09 siproxd[3920]: sock.c:65 INFO:bound to port 5060
              Jan 4 17:27:09 siproxd[3920]: siproxd.c:287 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 started
              Jan 4 17:27:12 check_reload_status: reloading filter
              Jan 4 17:27:12 php: : Sipproxd is installed but not started. Not installing redirect rules.
              Jan 4 17:27:17 siproxd[4084]: readconf.c:309 ERROR:unknown keyword in config file, line:"plugindir=/usr/local/lib/siproxd/"
              Jan 4 17:27:17 siproxd[4084]: readconf.c:309 ERROR:unknown keyword in config file, line:"load_plugin=plugin_logcall.la"
              Jan 4 17:27:17 siproxd[4084]: siproxd.c:193 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 starting up
              Jan 4 17:27:17 siproxd[4086]: siproxd.c:241 INFO:daemonized, pid=4086
              Jan 4 17:27:17 siproxd[4086]: sock.c:65 INFO:bound to port 5060
              Jan 4 17:27:17 siproxd[4086]: siproxd.c:287 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 started
              Jan 4 17:27:23 check_reload_status: reloading filter

              1 Reply Last reply Reply Quote 0
              • D
                dvserg
                last edited by

                Оставьте в этой секции так:

                 <siproxdsettings><config>
                            <if_inbound>lan</if_inbound>
                            <if_outbound>wan</if_outbound>
                             <port><defaulttimeout><rtpenable>1</rtpenable>
                             <rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></defaulttimeout></port></config></siproxdsettings>
                

                Затем удалите файл /tmp/config.cache и настройте конфигурацию siproxyd заново.

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • W
                  Wame140
                  last edited by

                  Проблема решилась?Столкнулся с тем же что и ТС.

                  1 Reply Last reply Reply Quote 0
                  • W
                    Wame140
                    last edited by

                    Если делать как говорит dvserg,то веб морда ломается и приходится делать restore.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dvserg
                      last edited by

                      @Wame140:

                      Если делать как говорит dvserg,то веб морда ломается и приходится делать restore.

                      Значит неправильно делаете, где-то лишнее удаляете - скобку какую или лишние пустые строки оставляете.
                      Уберите все между <siproxdsettings>и</siproxdsettings> .

                      SquidGuardDoc EN  RU Tutorial
                      Localization ru_PFSense

                      1 Reply Last reply Reply Quote 0
                      • W
                        Wame140
                        last edited by

                        Не работает.
                        Мои действия:
                        1)Установил Siproxd
                        2)зашел в настройки siproxd, изменил значения и нажал  save.
                        3)открываю конфиг и удаляю то что вы указали.
                        4)открываю файл config.cache и удаляю его содержимое.

                        в итоге морда ломается и приходится все возвращать.

                        1 Reply Last reply Reply Quote 0
                        • D
                          dvserg
                          last edited by

                          Порядок: 1->3->4->2
                          Цель - удалить лишние записи в конфиге и создать их заново
                          В п.4 файл config.cache нужно удалить вообще, чтобы перечитался config.xml

                          SquidGuardDoc EN  RU Tutorial
                          Localization ru_PFSense

                          1 Reply Last reply Reply Quote 0
                          • W
                            Wame140
                            last edited by

                            Как открыть,изменить и сохранить знаю.как удалить не подскажите? ??? ???

                            1 Reply Last reply Reply Quote 0
                            • E
                              Eugene
                              last edited by

                              удалить файл - rm
                              удалить строчку в редакторе vi - нажать два раза d

                              http://ru.doc.pfsense.org

                              1 Reply Last reply Reply Quote 0
                              • W
                                Wame140
                                last edited by

                                сделал все таки.

                                1 Reply Last reply Reply Quote 0
                                • W
                                  Wame140
                                  last edited by

                                  настройки сохраняются но в логах System вот такое вылазит.

                                  Jan 9 07:45:41	siproxd[50948]: readconf.c:309 ERROR:unknown keyword in config file, line:"plugindir=/usr/local/lib/siproxd/"
                                  Jan 9 07:45:41	siproxd[50948]: readconf.c:309 ERROR:unknown keyword in config file, line:"load_plugin=plugin_logcall.la"
                                  Jan 9 07:45:41	siproxd[50948]: siproxd.c:193 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 starting up
                                  Jan 9 07:45:41	siproxd[50950]: siproxd.c:241 INFO:daemonized, pid=50950
                                  Jan 9 07:45:41	siproxd[50950]: sock.c:65 INFO:bound to port 5080
                                  Jan 9 07:45:41	siproxd[50950]: siproxd.c:287 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 started
                                  Jan 9 07:45:46	check_reload_status: reloading filter
                                  Jan 9 07:45:49	php: : Sipproxd is installed but not started. Not installing redirect rules.
                                  Jan 9 07:45:50	siproxd[51132]: readconf.c:309 ERROR:unknown keyword in config file, line:"plugindir=/usr/local/lib/siproxd/"
                                  Jan 9 07:45:50	siproxd[51132]: readconf.c:309 ERROR:unknown keyword in config file, line:"load_plugin=plugin_logcall.la"
                                  Jan 9 07:45:50	siproxd[51132]: siproxd.c:193 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 starting up
                                  Jan 9 07:45:50	siproxd[51134]: siproxd.c:241 INFO:daemonized, pid=51134
                                  Jan 9 07:45:51	siproxd[51134]: sock.c:65 INFO:bound to port 5080
                                  Jan 9 07:45:51	siproxd[51134]: siproxd.c:287 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 started
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Tamriel
                                    last edited by

                                    @Evgeny:

                                    удалить файл - rm
                                    удалить строчку в редакторе vi - нажать два раза d

                                    А что редактор ee  не проще будет чем vi ?

                                    AMD Athlon™ XP 1700+
                                    384MB Ram
                                    NanoBSD Boot Slice pfsense0 / da0s1
                                    Platform nanobsd (512mb)
                                    Version 2.0-RELEASE (i386)
                                    built on Wed Sep 14 09:08:10 EDT 2011

                                    1 Reply Last reply Reply Quote 0
                                    • Z
                                      zar0ku1
                                      last edited by

                                      @Tamriel:

                                      А что редактор ee  не проще будет чем vi ?

                                      дело привычки

                                      закрывайте темы, если ответ на ваш вопрос полон.
                                      если схема сложная - не поленитесь ее нарисовать

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        sereoga
                                        last edited by

                                        Отредактировал Config.xml
                                        Удалил config.cashe
                                        Настройки sipproxid стали сохраняться, но упал squid.
                                        Чтото наверно случайно зацепил , попробую все с нуля сделать.

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.