Questions tagged [filter]

Usually related with text filtering of some kind, like logs. This may also refer to email filtering. Note that there are other tags that are more appropriate for network and spam filtering.

Filter by
Sorted by
Tagged with
-1
votes
0answers
10 views

Ansible Filtering for VMware Disk Scanning

I'm writing a playbook with following tasks: List the disk and store it as a variable using set_fact {before_fact} Add new disk Refresh facts using setup List the latest disk and store it as a ...
1
vote
0answers
15 views

LVM filter does not stop when rule matches?

I have a problem with a lvm filter configuration. I want to filter out certain devices/partitions from lvm scan. I can do it by making filter like so: filter = ["a|/dev/disk/by-partuuid/<uuid&...
1
vote
0answers
51 views

How to replace multiple letters in an variable in Sieve?

I want to use my catch-all-email to put emails in their corresponding folders. So if I were to sign up for twitter I'd use twitter@example.com. Currently I have this script: if address :matches ["...
0
votes
1answer
43 views

Compare url link and url text in email body and reject as SPAM

Email body: ... <a href="url">text</a> ... Is it possible check if text is url in email body, then compare url and text and reject as SPAM if they differ?
0
votes
1answer
28 views

rsyslog single filter conditional syntax

I'm looking for a way to write a single rule with multiple match values, don't write those rows to logfile if the message contain first word or second word. This works but isn't DRY: if $msg contains &...
1
vote
1answer
75 views

Fail2ban how to configure custom fail regex filter

I am running fail2ban on Debian 9 and am trying to create a custom filter to ban an ip after 4 failed attempts. Can someone help to figure out what I need to put in filter.d and jail.conf in order ...
0
votes
1answer
122 views

Allow certain users to only send emails to specific domains

I have an email server with several domain and users. I need block certain users from sending emails, but allow them to email specific domains. Example: user@domain.com block all outgoing emails ...
0
votes
0answers
181 views

Postfix Header Checks and Base64-Encoding

I am running a mail server with postfix and have set up a header check which filters for office documents. This is done in order to check these for potentially malicious macros. The (simplified) code ...
0
votes
0answers
49 views

find/replace certain string/text in js/css files of wordpress

i am looking for options to avoid plugin enumartion and wordpress version detection by linux tool 'wpscan'. I already disable lot of stuff, but unfortunally, wpscan still finds the version of my ...
0
votes
1answer
42 views

Postfix: processing incoming mail for virtual user

This discussion on Dovecot ML suggests to use for filtering mail for foo user foo: | /path/to/the/external/program in /etc/aliases. But aliases work only for local user. How to filter with script mail ...
0
votes
1answer
119 views

Powershell Select-String on a File Adds Unwanted Metadata

I'm trying to filter out service accounts in a file containing user accounts, one per line: "svc.test" "test.user" "test.user2" Select-String adds unwanted metadata: C:\...
0
votes
0answers
48 views

TC: delete/add and replace filters do not work, how to fix?

I'm new to traffic control. Porting a routing system from kernel 4.4 to 4.15 (with perspective to move to 5). The system is rather dynamic and creates separate qdisc (analog of netem) for each client ...
0
votes
1answer
29 views

Spam filtering based on average ascii score

I'm trying to come up with a new spam filter based on what has been coming through our filter lately. A lot of the messages have subject lines like: "Re: ᴢᴀɴᴛᴀᴄ 【ʜᴀs】 ʙᴇᴇɴ ʟɪɴᴋᴇᴅ 【ᴛo】 ᴄᴀɴᴄᴇʀ&...
0
votes
0answers
41 views

Using ebtables commands concurrently

I have a server that reads packets and, using ebtables, some packets are prevented from being forwarded. But I need to insert more than 4.000 of ebtables rules. I tested those amount of rules and it's ...
0
votes
0answers
27 views

Overriding default Apache log config

I'm trying to configure Apache to exclude some items from the log, but it only works if I access the site using the host name set with ServerName in the config file, it logs everything if I access it ...
1
vote
0answers
200 views

Using tc to delay packets to several ports

After reading several pages like this this and without having a really deep knowledge about the kernel Linux, I am able to filter up to 3 ports using just the three first leaves of the tree. tc qdisc ...
1
vote
0answers
195 views

TC Filter With BPF and NFTables Packet Marking

I made a TC BPF ingress program and I want it to process specific packets only marked by NFTables. Here's my NFTables table that marks the specific packets: table ip compressor_tc { chain ...
0
votes
2answers
411 views

How to write a complex filter in tomcat web.xml to accept partially a URL?

I am new to tomcat and I need to filter the URLs on a server to accept all clients for some URLs and accept only a specific IP for other URLs. In details, I want to accept ALL clients for for this ...
0
votes
0answers
61 views

how to apply TC htb class to each of IPs in an IP range separately?

I use HTB for TC and mark packets with iptables. First I mark a range of IPs (like 192.168.1.0/24). Now I want to apply a htb class to each of these IPs separately. If I add a class and a filter for ...
0
votes
1answer
31 views

How to filter by status information column in Thruk

I am using Thruk as a monitoring interface. At the top left corner of the page there is a button which opens a stack with filters of which hosts/services etc. you want to apply. You can easily add ...
0
votes
1answer
1k views

Microsoft AD - Negative OU= LDAP filter

I am trying to produce a LDAP Filter for MS AD which filters users based on some OUs (in my case excluding a specific OU but also including does not work): (&(cn=Testuser1)(|(ou:dn:=Included1)(ou:...
1
vote
1answer
177 views

Spamassasin rule to flag certain MX IPs

I've noticed a flood of spam that is related to the same range of IPs. All the spam email has different HTML text (which is english but meaningless) and a few embedded pictures (which I block) but ...
0
votes
1answer
46 views

Filter ss process output without using grep

ss -p can give the process name, process id (PID) and the file descriptor associated with the connection. Example: ss -tuanp [...] tcp ESTAB 0 0 x.x.x.x:59594 x.x.x.x:993 users:(("...
0
votes
1answer
796 views

Not logic in docker filter

I have a named container that may or may not be up and if it is up I want to be able to kill all the containers but that one by name. Basically what I want is: docker kill $(docker ps -aq --filter="...
0
votes
0answers
31 views

Why can't block specified string with iptables command?

I want to block any packages flow into my pc which contains the string porn. iptables -A INPUT -m string --algo bm --string "porn" -j DROP Open my firefox and iniput keyword porn in google search ...
0
votes
1answer
72 views

tc filter … ht HANDLE … does not allow buckets of 8 bits

TC-u32 man page states that HANDLE is: HANDLE := { u12_hex_htid:[**u8_hex_hash:[u12_hex_nodeid]** | 0xu32_hex_value } so the size of the bucket should range from 0x00 to 0xff as it is a u8 value. ...
0
votes
1answer
83 views

How to configure postfix/dovecot setup to reject certain mail for certain users/accounts

I'd like to be able to reject email from certain users or if it contains certain strings or if the title matches something for certain users. I'm in a multidomain enviroment. Is this possible? ...
0
votes
1answer
206 views

exim filter not working on long emails

I was trying to set a file extension based filter in exim. if $message_body contains "pdf.gz" or $message_body contains "pdf.arj" This filter does work on small mail, such as mail with only test ...
0
votes
1answer
79 views

Is it possible to redirect DNS quries to different URL/DNS like opendns

I have an unbound DNS Resolver in my office lab. I m using this service to block ads and unwanted domains. Is there any possibilities to redirect DNS quires to a specific URL/DNS that shows the site/...
1
vote
1answer
1k views

How to debug Mikrotik bridge filter forward rules not having any effect?

As part of diagnosing a different problem were trying to add a bridge filter rule that will stop all traffic from forwarding between two interfaces on a bridge. The router has two interfaces ether1 ...
0
votes
1answer
118 views

fail2ban filter matches no lines for xmlrpc attack

I'm trying to jail hosts that brute-force attack a web server, thereby creating (hundreds of) lines in /var/log/apache2/error.log of the form [Fri Feb 01 11:17:56.158739 2019] [:error] [pid 15870] [...
0
votes
1answer
283 views

exim filter regex discard rule

We are trying to discard all emails with a matching subject, example of subject: Subject: DOMAIN.COM Alert: NAME We have NOT received your payment We are trying to match any domain, Alert, and "We ...
0
votes
1answer
627 views

Apply Network Filter to Ovirt Guest without Rebooting

I am trying to change the clean-traffic IP address for a oVirt Guest VM. It works as long as I reboot the VM. ( Changed from within the Guest Virtual Machine Network Settings ) But for a production ...
0
votes
1answer
302 views

Exim filter - Matching FROM and TO

I have been receiving a lot of mailer-daemon spam lately ... It's obvious the spammer is spoofing the to & from fields so that mailer-daemon kicks in and delivers the actual message to me. I ...
0
votes
1answer
220 views

fail2ban filter for common apache exploits

Every day I see hackers/script kiddies looking for url's like: /webdav /site.tar /admin /htdocs.php etc. They sometimes hit my sites for several minutes looking for common exploits. Is there a ...
0
votes
1answer
713 views

Get mac address based on ip in filter wireshark

i am a test engineer writing some test cases. I am trying to write a test which has to be performed in wireshark. However, my collegues aren't that "into wireshark" and i would like to keep it as ...
0
votes
1answer
273 views

Exim filter TLD block is blocking more than just the TLD

Need to discard emails to and from ending in a specific TLD but having an issue, example of a filter: if first_delivery and ("$h_to:, $h_cc:" contains ".win$") or ("$h_from:" contains ".win$") then ...
1
vote
1answer
551 views

tc/netem filter explenation

Iam new to tc and i find it mighty confusing, i was able to find and bit understand little command flow, to issue delay on specific IP, but i dont tink it works properly - delaying all traffic ...
0
votes
1answer
203 views

Filter log for a location but allow passing request to proxy

I know how to filter logs for a location: # inside a http block log_format filter '0.0.0.0 - $remote_user [$time_local] "$request"' '$status $body_bytes_sent ' '"$...
1
vote
1answer
234 views

Filtering dpkg logs in syslog-ng

I am new to syslog-ng, and I am setting a syslog-ng, where I am receiving logs of syslog, auth.log and dpkg.log. Although I was able to get the logs for syslog and auth.log, but I am unable to write ...
1
vote
1answer
48 views

Fold burst of many emails into one?

We are running an SGE job scheduling system. Users can let SGE send out emails in case of jobs being cancelled. In the case of a user having large array jobs (say 100'000k entries) and killing all of ...
3
votes
1answer
354 views

Toggle postfix on and off

There's probably an answer to this already, but I just can't figure out how to search for it correctly. Situation: We have a failover situation for two nodes, using keepalived, passing a floating IP ...
2
votes
2answers
618 views

Powershell script - Find LogOn attribute - How from specific OU?

This is the PowerShell script I use to find the LogOn attribute from users in Active Directory. Now rather than getting all users I want it to search only in a specific OU. The domain looks like this: ...
1
vote
0answers
379 views

Correct filtering of raw devices which are multipath components out of LVM

I have a HP MSA P2000 FC with dual controllers, dual HP SAN switches and a couple of servers with QLogic "ISP2532-based" 8G dual-port cards. Everything is connected "each to each" way. The OS is ...
0
votes
1answer
114 views

Filter pcap by subsecond detail?

I'm trying to export a subset of a pcap file given a start and an end message, this start and end message identification is currently done using ngrep on the raw data(because we have no dissector for ...
1
vote
1answer
9k views

Squid proxy_protocol_access with dstdomain acl

I'm configuring a squid proxy to work as a sort of a gateway for traffic egress. The environment in which this is deployed has a client that makes a request through a load balancer which then sends it ...
0
votes
2answers
923 views

unable to filter badly-formatted messages in syslog-ng

I am contacting you regarding an issue I have with syslog-NG. some of our devices (mainly HP switches and SANs) are sending syslog messages that do not respect the syslog RFC 5424 it seems. to give ...
2
votes
1answer
70 views

(“remotely”) Managing filters with Horde 3.3.13

I'm using Horde 3.3.13 (which is an old version I know) and uses the filters all the time. I know that thunderbird, for instance, also support filters. Is there a way to synchronize the filters on ...
0
votes
1answer
4k views

“mapper_parsing_exception” error from Elasticsearch failing to parse [timestamp] from %{COMBINEDAPACHELOG}

I've configured Logstash to filter httpd_access_log messages and grok the fields associated with COMBINEDAPACHELOG. However, I'm receiving errors like the following: [2017-02-10T15:37:39,361][WARN ][...
1
vote
0answers
484 views

Logstash syslog filter not applying to logs?

I'm looking through some syslog logs files in my ELK stack and noticed that all the syslog_severity fields are 'notice', when I can verify in the log files that they are not 'notice'. Seems like ...