you are right my code is not up to date I will update my code as soon as I
will have some free time and I will let you know, however when I am just
saving I am not getting any error (getting only error when trying preview
my configuration).

And do I need to make some changes in openwrt ui to make my configuration
works properly or openwisp will handle that?

On Tue, 19 Mar 2019 at 16:07, Federico Capoano <[email protected]>
wrote:

> Hey Karol,
>
> what happens if you save? Do you get a validation error?
> I had the same problem recently and it was because of the new "context"
> field, I sent a fix for it last month:
> https://github.com/openwisp/django-netjsonconfig/commit/59dbd8691b66ba7c947593b829583a57b7ba5313
> Is your code up to date?
>
> Federico
>
> On Mon, Mar 18, 2019 at 4:03 PM Karol Ołtarzewski <[email protected]>
> wrote:
>
>> Do I need to make some changes in browser openwrt UI after making OpenVPN
>> configuration for my router in openwisp-controller? The configuration seems
>> to be applied and I am not able to preview my configuration because I am
>> getting `django.core.exceptions.ValidationError: ['Enter valid JSON']` in
>> my console however I can download my configuration and see what is changed,
>> my openVPN configuration after downloading it:
>> ```
>> config openvpn 'VPN'
>>     option auth 'SHA1'
>>     option auth_retry 'none'
>>     option ca '/etc/certs/ca.pem'
>>     option cert '/etc/certs/mycert-crt.pem'
>>     option cipher 'BF-CBC'
>>     option comp_lzo 'adaptive'
>>     option dev 'VPN'
>>     option dev_type 'tun'
>>     option enabled '1'
>>     option fast_io '0'
>>     option float '0'
>>     option fragment '0'
>>     option key '/etc/certs/mycert-key.pem'
>>     option mode 'p2p'
>>     option mssfix '1450'
>>     option mtu_disc 'no'
>>     option mtu_test '0'
>>     option mute '0'
>>     option mute_replay_warnings '0'
>>     option nobind '1'
>>     option persist_key '0'
>>     option persist_tun '0'
>>     option port '1194'
>>     option proto 'udp'
>>     option pull '1'
>>     list remote '192.168.8.1 1194'
>>     option remote_random '0'
>>     option reneg_sec '3600'
>>     option resolv_retry 'infinite'
>>     option script_security '1'
>>     option tls_client '1'
>>     option tls_timeout '2'
>>     option tun_ipv6 '0'
>>     option up_delay '0'
>>     option verb '1'
>> ```
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to