Community discussions

 
User avatar
greek
Member Candidate
Member Candidate
Topic Author
Posts: 111
Joined: Thu Nov 04, 2010 11:37 pm
Location: Russia, 78rus

CLI command for conntrack port range?

Sun Jun 16, 2019 5:12 am

Hi!
Help me find CLI-analog of this filter:
Image


How i can print connections with port range of dst-addresses?
 
User avatar
greek
Member Candidate
Member Candidate
Topic Author
Posts: 111
Joined: Thu Nov 04, 2010 11:37 pm
Location: Russia, 78rus

Re: CLI command for conntrack port range?

Sun Jun 16, 2019 7:09 am

And also I am trying to find cli-command for this filter:

Image
 
User avatar
greek
Member Candidate
Member Candidate
Topic Author
Posts: 111
Joined: Thu Nov 04, 2010 11:37 pm
Location: Russia, 78rus

Re: CLI command for conntrack port range?

Thu Jun 27, 2019 1:55 am

up!
 
User avatar
greek
Member Candidate
Member Candidate
Topic Author
Posts: 111
Joined: Thu Nov 04, 2010 11:37 pm
Location: Russia, 78rus

Re: CLI command for conntrack port range?

Mon Jul 01, 2019 9:04 pm

Nobody knows?
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1790
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: CLI command for conntrack port range?

Mon Jul 01, 2019 9:25 pm

there doesn't seem to be one for the ports
/system package print 
Flags: X - disabled 
 #   NAME                                              VERSION                                              SCHEDULED              
 0   system                                            6.45beta62

/ip firewall connection> print where 
.dead            connection-type  gre-key       orig-bytes              repl-bytes              reply-src-address
.id              dst-address      gre-protocol  orig-fasttrack-bytes    repl-fasttrack-bytes    seen-reply       
.nextid          dstnat           gre-version   orig-fasttrack-packets  repl-fasttrack-packets  src-address      
assured          dying            icmp-code     orig-packets            repl-packets            srcnat           
confirmed        expected         icmp-id       orig-rate               repl-rate               tcp-state        
connection-mark  fasttrack        icmp-type     protocol                reply-dst-address       timeout          
Last edited by sebastia on Mon Jul 01, 2019 10:02 pm, edited 2 times in total.
 
pe1chl
Forum Guru
Forum Guru
Posts: 5923
Joined: Mon Jun 08, 2015 12:09 pm

Re: CLI command for conntrack port range?

Mon Jul 01, 2019 9:33 pm

NOT is expressed in commandline as !
When you want to find the commandline for anything, just apply it in winbox or webgui and do a /export and locate the corresponding command.

Who is online

Users browsing this forum: Google [Bot] and 42 guests