Hope not. Just a goodMy magic crystal ball says that this thread gets locked immediately.
ipfw
ruleset is needed...Who cares? Russians, for the most part, don't know and don't read anything in English.My magic crystal ball says that this thread gets locked immediately.
But they can attack...Who cares? Russians, for the most part, don't know and read anything in English.
ipfw add deny ip from 178.64.0.0/16 to any
or similar might be a good value...But they can attack...
So, to protect your assets rules likeipfw add deny ip from 178.64.0.0/16 to any
or similar might be a good value...
# -------------------------------------------------------
# Free IP2Location Firewall List by Country
# Source: https://www.ip2location.com/free/visitor-blocker
# Last Generated: 24 Feb 2022 19:41:40 GMT
# [Important] Please update this list every month
# -------------------------------------------------------
The OP could probably rephrase their question to "How to block an entire country based on IP?"Right. Had to delete a post that would take the thread in a political direction. Can we please keep the politics out of it? Yes, I'm sure your cause is just as righteous, but that discussion has no place here.
Agree. Already changed the title to a less charged one.The OP could probably rephrase their question to "How to block an entire country based on IP?"
Sorry but that's not true.Who cares? Russians, for the most part, don't know and don't read anything in English.
https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukraine#InvasionArgentum May I ask why you wanna do that?
Ну да, конечно.Sorry but that's not true.
#!/usr/bin/perl
use Data::Dumper;
use warnings;
my $xx_netblocks = "pf.xx.blackhole.conf";
my @netblocks = split(/\r\n|\n|\r/,`curl http://www.ipdeny.com/ipblocks/data/countries/xx.zone`);
open (my $BADNETBLOCKS, ">", $xx_netblocks) or die "Unable to open file $xx_netblocks: $!";
truncate $BADNETBLOCKS,0;
print $BADNETBLOCKS "table <blackhole_xx> const { ";
foreach my $current_block (@ netblocks) {
if ( $current_block =~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\/[0-9]+$/ ) {
# print $BADNETBLOCKS "block on en0 from ".$current_block." to any\n";
print $BADNETBLOCKS $current_block." ";
}
}
print $BADNETBLOCKS "}\n";
print $BADNETBLOCKS "block drop on en0 inet from <blackhole_xx> to any\n";
close($BADNETBLOCKS);
What I want to say is that people have nothing to do with politics. Russian politicians are stupid and the people are not guilty. The Russian people are good as the rest of people the world.
fetch "http://www.ipdeny.com/ipblocks/data/countries/ru.zone"
#!/bin/sh
ipfw='/sbin/ipfw -q'
${ipfw} table 6 flush
for ip in `cat /root/bin/ru.zone`; do
${ipfw} table 6 add $ip
done
${ipfw} add 6 count all from table\(6\) to me
${ipfw} add 6 count all from me to table\(6\)
ipfw -at list 6
I did not want to turn it political. Purely technically defensive. Politics is done in parties, polling stations and parliaments, not on the battlefield. Cyber attacks from a certain country are highly probable against systems in a Free World. I was just asking about technical defensive measures, keeping no politics in mind.What I want to say is that people have nothing to do with politics. Russian politicians are stupid and the people are not guilty. The Russian people are good as the rest of people the world.
I also live in a country where the politicians are very bad people and it has made other people in the world think that we are bad people. we have no freedom even on the Internet! Most sites are filtered and without vpn you have practically have no Internet! even Internet speed is slow. I'm tired of living here, but it wasn't my fault I was born here!
It's not only a certain country, but all countries. Every fricking country in the world has an intelligence service ready to sniff at your private parts.Cyber attacks from a certain country are highly probable against against systems in a Free World.
And blocking the Internet is completely against the Internet freedom and free world.Cyber attacks from a certain country are highly probable against systems in a Free World.
/sbin/ipfw -q flush
/sbin/ipfw -q table all destroy
...
/sbin/ipfw -q table 0 create
/usr/local/bin/ipup -t BR:DE:CH:FR -n 0 -4 | /sbin/ipfw -q /dev/stdin
/sbin/ipfw -q add 90 deny tcp from not table\(0\) to any 465,587,993,995 in recv $WAN setup
/sbin/ipfw -q add 90 deny udp from not table\(0\) to any 500,4500 in recv $WAN
...