You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the following script, I get the error below. Has anybody an idea what I might be doing wrong?
Thank you! Everything else seems to work fine.
Script:
#!/bin/vbash
export vyatta_bindir=/opt/vyatta/bin
export vyatta_sbindir=/opt/vyatta/sbin
export vyatta_configdir=/opt/vyatta/config
source /opt/vyatta/etc/functions/script-template
configure
set interfaces wireguard wg0 private-key /config/wireguard/server_keys/private.key
set interfaces wireguard wg0 address <ip>/24
set interfaces wireguard wg0 route-allowed-ips true
set interfaces wireguard wg0 listen-port 51820
set interfaces wireguard wg0 firewall in name WG_IN
set interfaces wireguard wg0 firewall local name WG_LOCAL
commit
Output:
user@edgerouter:~$ ./script.sh
The specified configuration node already exists
The specified configuration node already exists
The specified configuration node already exists
The specified configuration node already exists
The specified configuration node already exists
The specified configuration node already exists
[ interfaces wireguard wg0 firewall in name WG_IN ]
Firewall config error: Rule set WG_IN is not configured
Commit failed
I also tried using the vyatta-cfg-cmd-wrapper in the following script:
#!/bin/vbash
export vyatta_bindir=/opt/vyatta/bin
export vyatta_sbindir=/opt/vyatta/sbin
export vyatta_configdir=/opt/vyatta/config
RUN=/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper
$RUN begin
$RUN set interfaces wireguard wg0 private-key /config/wireguard/server_keys/private.key
$RUN set interfaces wireguard wg0 address <ip>/24
$RUN set interfaces wireguard wg0 route-allowed-ips true
$RUN set interfaces wireguard wg0 listen-port 51820
#$RUN set interfaces wireguard wg0 firewall in name WG_IN
#$RUN set interfaces wireguard wg0 firewall local name WG_LOCAL
$RUN commit
Resulting in the following:
[ interfaces wireguard wg0 ]
This script must be executed from vyatta configuration system.
Commit failed
The second way to go used to work with every other config in my EdgeRouter, the only missing part is the wireguard firewall.
I really appreciate any hint!
Thank you very much!
Configuration and log output
No response
The text was updated successfully, but these errors were encountered:
Package version
1.0.20220627
Firmware version
v2.0.9-hotfix.7
Device
EdgeRouter X (SFP, 10 X, EP-R6) - e50
Issue description
When using the following script, I get the error below. Has anybody an idea what I might be doing wrong?
Thank you! Everything else seems to work fine.
Script:
Output:
I also tried using the vyatta-cfg-cmd-wrapper in the following script:
Resulting in the following:
The second way to go used to work with every other config in my EdgeRouter, the only missing part is the wireguard firewall.
I really appreciate any hint!
Thank you very much!
Configuration and log output
No response
The text was updated successfully, but these errors were encountered: