the usage of --up
Posted: Sun Nov 14, 2021 3:02 pm
I want to run some commands after the tun device is up as below code
but it give me more parameters for my specified program as below log.
this is not my added parameters for firewall-cmd program, any one can tell me why ?
Code: Select all
proto tcp4-server
dev tun0
script-security 2
up '/usr/bin/firewall-cmd --zone=trusted --add-interface=tun0'
Code: Select all
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
Code: Select all
tun0 1500 1623 172.31.0.1 255.255.255.0 init