Community discussions

 
hackclub
newbie
Topic Author
Posts: 27
Joined: Thu Dec 12, 2013 7:28 am

Please, I want to set the value of the variable dst-address to nothing

Sat Dec 08, 2018 4:24 am

Hello

I have the following line :
/ip firewall filter action="accept" chain="input" dst-address="10.10.10.1" dst-port="16" protocol="tcp"

Please, I want to set the value of the variable dst-address to nothing by script ?
this is not working
/ip firewall filter action="accept" chain="input" dst-address="" dst-port="16" protocol="tcp"
Also this does not work
/ip firewall filter action="accept" chain="input" dst-address=nothing dst-port="16" protocol="tcp"
What's the solution ?

Thank You All...
 
shiyiqiang08
newbie
Posts: 29
Joined: Wed Dec 05, 2018 7:35 am

Re: Please, I want to set the value of the variable dst-address to nothing

Sat Dec 08, 2018 10:11 am

Hello

I have the following line :
/ip firewall filter action="accept" chain="input" dst-address="10.10.10.1" dst-port="16" protocol="tcp"

Please, I want to set the value of the variable dst-address to nothing by script ?
this is not working
/ip firewall filter action="accept" chain="input" dst-address="" dst-port="16" protocol="tcp"
Also this does not work
/ip firewall filter action="accept" chain="input" dst-address=nothing dst-port="16" protocol="tcp"
What's the solution ?
Thank You All...
you need a output rule
i seems that only a input rule is not active
 
sebastia
Long time Member
Long time Member
Posts: 684
Joined: Tue Oct 12, 2010 3:23 am

Re: Please, I want to set the value of the variable dst-address to nothing  [SOLVED]

Sat Dec 08, 2018 4:11 pm

[Sebastian@firewall] /ip firewall filter> print where comment ~ "TCP999"   
Flags: X - disabled, I - invalid, D - dynamic 
 0 X  ;;; TCP999
      chain=input action=drop protocol=tcp dst-address=192.168.150.11 dst-port=999 log=no log-prefix="" 
[Sebastian@firewall] /ip firewall filter> set 0 !dst-address
[Sebastian@firewall] /ip firewall filter> print where comment ~ "TCP999"
Flags: X - disabled, I - invalid, D - dynamic 
 0 X  ;;; TCP999
      chain=input action=drop protocol=tcp dst-port=999 log=no log-prefix="" 
See set related info in wiki https://wiki.mikrotik.com/wiki/Manual:S ... n_commands
 
hackclub
newbie
Topic Author
Posts: 27
Joined: Thu Dec 12, 2013 7:28 am

Re: Please, I want to set the value of the variable dst-address to nothing

Sat Dec 08, 2018 7:59 pm

[Sebastian@firewall] /ip firewall filter> print where comment ~ "TCP999"   
Flags: X - disabled, I - invalid, D - dynamic 
 0 X  ;;; TCP999
      chain=input action=drop protocol=tcp dst-address=192.168.150.11 dst-port=999 log=no log-prefix="" 
[Sebastian@firewall] /ip firewall filter> set 0 !dst-address
[Sebastian@firewall] /ip firewall filter> print where comment ~ "TCP999"
Flags: X - disabled, I - invalid, D - dynamic 
 0 X  ;;; TCP999
      chain=input action=drop protocol=tcp dst-port=999 log=no log-prefix="" 
See set related info in wiki https://wiki.mikrotik.com/wiki/Manual:S ... n_commands
thank you my dear ...

Who is online

Users browsing this forum: No registered users and 5 guests