Questions tagged [rules]

131 questions
1
vote
0 answers

If statements in udev rules

Is it possible to make statements in udev rules via if, else or case? I imagine something like: if [ $HOSTNAME == "host1" ] then ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="", SUBSYSTEMS=="usb", MODE="0660", GOTO="local_usb_end" fi I did not…
Nico
  • 35
  • 4
1
vote
1 answer

Office365: Error trying to create Inbox Rule via PowerShell

In our Office365 environment I'm trying to programmatically create rules that will move incoming messages based on the distribution list they were received as. However, while prototyping, the following command consistently creates an…
Oliver Giesen
  • 111
  • 2
  • 5
1
vote
1 answer

Office 365 Exchange automatically delete deleted items

How would I automatically delete email older than one week in deleted items folder? I have access to the mailbox through OWA. Would this be done using a Rule, Retention Policy or Archiving? Setting up a Rule or Retention Policy appears to only…
C1TonyB
  • 125
  • 1
  • 5
1
vote
1 answer

Cannot set GeoIP rules in iptables

I try to add this rule: iptables -A INPUT -m geoip ! --src-cc CZ,SK -j DROP I set GeoIP support according to this answer: Ubuntu IPTables allow only allow 1 country | Super User But it doesn't work, because I get message: iptables: No…
tomsk
  • 257
  • 4
  • 18
1
vote
2 answers

Performance of iptables

I would like to ask you what is performance of iptables. Let's say that I whitelist and blacklist some IP addresses, I block about 10 000+ IP addresses, so every IP is like new rule. I don't know how fast it is, because let's say that someone DDoS…
tomsk
  • 257
  • 4
  • 18
1
vote
1 answer

Slow rules inserting in UFW

I need to block about 10 000 IP addresses in my firewall, I have all IP addresses in file, so I run this command from command line: while read line; do sudo ufw insert 1 deny from $line; done < IP_addresses And it works, it inserts rules, but it is…
tomsk
  • 257
  • 4
  • 18
1
vote
1 answer

Nginx reverse proxy trailing slash

This question is already answered multiple times but in my case there is a twist. I am having a node app which is running on port 3000. I am using nginx to reverse proxy. Now the application only works if there is a slash in the end. So this works:…
Minato Namikaze
  • 113
  • 1
  • 3
1
vote
0 answers

rsyslog parsing logs with liblognorm

I'm trying to use such .rb file to parse…
user3069488
  • 159
  • 2
  • 3
  • 18
1
vote
2 answers

Modsecurity Ignore/Whitelist IP

I have looked around on the net and have seen many common answers for this , however, none of them are working. I am trying to use this to ignore whenever our scans kick off in the morning. SecRule REMOTE_HOST "@ipmatch 99.123.33.87"…
LUser
  • 217
  • 6
  • 15
1
vote
1 answer

SecRuleEngine Off not working on a single domain in virtual host

I have modSecurity installed and working on a server with multiple hosts and I want to disable some rules for one host only. This is what is what I put in the virtual host file: SecRuleEngine On SecRuleRemoveById…
williamsdb
  • 483
  • 1
  • 7
  • 17
1
vote
1 answer

Removing User Defined chain having links

I have a user defined chain which is linked with the INPUT chain in the filter table. How do i remove this link so that i can remove my user chain ? Linked in the sense i have made a jump connection from INPUT chain to the user defined chain. I know…
john
  • 45
  • 1
  • 6
1
vote
1 answer

Redirect all traffic on my network to a welcome page

When someone connects to my network and tries to browse, I would like to redirected to a welcome page. I know there are some commercial solutions for hotspots out there, what I am looking for is just redirecting. Ideally, I could set this network…
Arturo
  • 423
  • 3
  • 6
  • 19
1
vote
0 answers

PF rule for Continuity

So it looks like the Continuity on OS X 10.10 creates network interface on the fly (utun2 here) and my PF blocks it, so that I can't make/answer calls. I'm not an admin, just use the IceFloor for PF config. Do you know what's the easiest way to…
cocoapriest
  • 111
  • 2
1
vote
1 answer

Limit Connections Per IP Windows 2008 R2 x64

Hello I have been searching for a solution to this, what I want to accomplish is the ability for me to define firewall rules that will limit the amount of connections to certain ports from the same source IP address, I looked into WIPFW but it is no…
Upperfoot
  • 11
  • 1
  • 2
1
vote
0 answers

squid apply rules to a some users

Good day: I have a squid 2.7 stable9 installation that works. It is connected to LDAP and the users can authenticate perfectly. I have different rules for instance to block a few websites during working hours. Now I want to make some special users…
Abel
  • 121
  • 5
1 2
3
8 9