Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11422 closed defect (invalid)

/etc/init.d/openvpn parses server_bridge but not server-bridge

Reported by: tomashnyk@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

This is on Backfire 10.3.1 and I know there has been ticket /ticket/10518.html and other revisions that might have solved this too, but I cannot test since that file does not work on my release.

If I have /etc/config/openvpn as follows:

config 'openvpn' 'czfree_a_doma'
        option 'tls_server' '1'
        option 'enable' '1'
        option 'port' '1194'
        option 'proto' 'udp'
        option 'dev' 'tap0'
        option 'ca' '/etc/openvpn/keys/ca.crt'
        option 'cert' '/etc/openvpn/keys/server.crt'
        option 'key' '/etc/openvpn/keys/server.key'
        option 'dh' '/etc/openvpn/keys/dh1024.pem'
        option 'ifconfig-pool-persist' '/etc/openvpn/ipp.txt'
        option 'server-bridge' '192.168.22.1 255.255.255.0 192.168.22.220 192.168.22.229'
        option 'push' 'redirect-gateway'
        option 'client-to-client' '1'
        option 'comp_lzo' '1'
        option 'keepalive' '10 120'
        option 'status' '/tmp/openvpn.status'
        option 'persist-key' '1'
        option 'persist-tun' '1'
        option 'verb' '3'
        option 'mute' '20'

it parses as

/usr/sbin/openvpn --syslog openvpn(czfree_a_doma) --writepid /var/run/openvpn-czfree_a_doma.pid --comp-lzo --tls-server --ca /etc/openvpn/keys/ca.crt --cert /etc/openvpn/keys/server.crt --dev tap0 --dh /etc/openvpn/keys/dh1024.pem --keepalive 10 120 --key /etc/openvpn/keys/server.key --mute 20 --port 1194 --proto udp --status /tmp/openvpn.status --verb 3 --push redirect-gateway

If I have it as follows:

config 'openvpn' 'czfree_a_doma'
        option 'tls_server' '1'
        option 'enable' '1'
        option 'port' '1194'
        option 'proto' 'udp'
        option 'dev' 'tap0'
        option 'ca' '/etc/openvpn/keys/ca.crt'
        option 'cert' '/etc/openvpn/keys/server.crt'
        option 'key' '/etc/openvpn/keys/server.key'
        option 'dh' '/etc/openvpn/keys/dh1024.pem'
        option 'ifconfig-pool-persist' '/etc/openvpn/ipp.txt'
        option 'server_bridge' '192.168.22.1 255.255.255.0 192.168.22.220 192.168.22.229'
        option 'push' 'redirect-gateway'
        option 'client-to-client' '1'
        option 'comp_lzo' '1'
        option 'keepalive' '10 120'
        option 'status' '/tmp/openvpn.status'
        option 'persist-key' '1'
        option 'persist-tun' '1'
        option 'verb' '3'
        option 'mute' '20'

it parses as follows

/usr/sbin/openvpn --syslog openvpn(czfree_a_doma) --writepid /var/run/openvpn-czfree_a_doma.pid --comp-lzo --tls-server --ca /etc/openvpn/keys/ca.crt --cert /etc/openvpn/keys/server.crt --dev tap0 --dh /etc/openvpn/keys/dh1024.pem --keepalive 10 120 --key /etc/openvpn/keys/server.key --mute 20 --port 1194 --proto udp --server-bridge 192.168.22.1 255.255.25

The difference is in the line with server_bridge/server-bridge.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by jow

  • Resolution set to invalid
  • Status changed from new to closed

You must replace all dashes with underscores.

comment:2 Changed 6 years ago by Tomáš Hnyk <tomashnyk@…>

I see. Should not UCI complain when I try to use dash then?

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.