Modify

Opened 7 years ago

Last modified 4 years ago

#8812 new defect

/etc/init.d/siproxd is not recognizing(parsing) wan and lan interface, config file is not in /etc

Reported by: webmaster@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Backfire 10.03.1 RC4
Keywords: siproxd Cc:

Description

after installing the siproxd package, i faced the following problems to get siproxd to work:

/etc/init.d/siproxd seems to be outdated and is not recognizing the wan and lan interfaces.

The configfile /etc/config/siproxd is not parsed correctly.

In my case i was putting it like this:

config siproxd general

option if_inbound 'br-lan'
option if_outbound 'pppoe-wan'

As the result siproxd was starting up and was not able to handle any request because its listening to interfaces that are not existing.

I worked around it by manually editing in the /etc/init.d/siproxd file:



@@ -116,14 +113,8 @@
         include /lib/network
         scan_interfaces
         config_load /var/state/network
-        if [ -n "$IF_INBOUND" ]; then
-                config_get IF_INBOUND "$IF_INBOUND" ifname
-                printf '%s\n' "if_inbound = $IF_INBOUND" >> /var/etc/siproxd.conf
-        fi
-        if [ -n "$IF_OUTBOUND" ]; then
-                config_get IF_OUTBOUND "$IF_OUTBOUND" ifname
-                printf '%s\n' "if_outbound = $IF_OUTBOUND" >> /var/etc/siproxd.conf
-        fi
+        printf '%s\n' "if_inbound = br-lan" >> /var/etc/siproxd.conf
+        printf '%s\n' "if_outbound = pppoe-wan" >> /var/etc/siproxd.conf
         /usr/sbin/siproxd --config "$CONFIG_FILE"
 }
 

Attachments (1)

siproxd.patch (709 bytes) - added by webmaster@… 7 years ago.
my workaround

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by webmaster@…

my workaround

comment:1 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.