I want to run some commands after the tun device is up as below code
proto tcp4-server
dev tun0
script-security 2
up '/usr/bin/firewall-cmd --zone=trusted --add-interface=tun0'
but it give me more parameters for my specified program as below log.
Sun Nov 14 22:58:50 2021 /usr/bin/firewall-cmd --zone=trusted --add-interface=tun0 tun0 1500 1623 172.31.0.1 255.255.255.0 init
usage: see firewall-cmd man page
firewall-cmd: error: unrecognized arguments: tun0 1500 1623 172.31.0.1 255.255.255.0 init
tun0 1500 1623 172.31.0.1 255.255.255.0 init
this is not my added parameters for firewall-cmd program, any one can tell me why ?