On Sun, 16 Dec 2012, in the Usenet newsgroup alt.internet.wireless, in article
<kajhlh$mjr$
1...@dont-email.me>, Tony Palermo wrote:
>D. Stussy wrote:
>>> Q: Is there a clever way to send a specific IP address into
>>> oblivion?
>> Block it in your firewall.
>I'm not sure the settings as I've never set anything in a firewall.
http://www.netfilter.org/documentation/HOWTO/
networking-concepts-HOWTO.txt 18-Dec-2010 13:56 28K
packet-filtering-HOWTO.txt 18-Dec-2010 13:56 51K
http://ibiblio.org/pub/linux/docs/HOWTO/
45604 Oct 10 2008 Networking-Overview-HOWTO
278012 Oct 10 2008 Security-Quickstart-HOWTO
76194 Jan 5 2010 Unix-and-Internet-Fundamentals-HOWTO
Those are somewhat old Linux docs - read them for concepts and
principles rather than exact instructions
>FIREWALL SECTION OF RADIO:
>Enabled = [x] (choices are on or off)
>Target = [DROP] (choices are DROP or ACCEPT)
>Interface = [WLAN0] (choices are ANY, WLAN0, or BRIDGE0)
>IP Type = [TCP] (choices are IP, ICMP, TCP, UDP, or P2P)
I's probably go for "IP" which should include the others. But OK
>Source ! = [ ] (choices are on or off)
>Source IP/Mask =
59.53.94.9/32 (I'm not sure what mask to use???)
As of last night, there were 3482353856 IP addresses assigned or
allocated by the five Regional Internet Registries - are you going to
try to block them one-by-one? A "whois" query of that address gives
inetnum: 59.52.0.0 - 59.55.255.255
netname: CHINANET-JX
descr: CHINANET Jiangxi province network
descr: China Telecom
If you have no expectation of you or your users connecting from
Jiangxi province (450 miles/700 km NNE of Hong Kong), you might just
block
59.52.0.0/14.
>Source ! = [ ] (choices are on or off)
>Source Port = [22] (choices are any number)
Your logs show (as expected) the source port numbers are "above" 1024.
I'd leave this off.
>Destination ! = [ ] (choices are on or off)
>Destination IP/Mask =
59.53.94.9/32 (I'm not sure what mask to use???)
You'd want to block connections _TO_ your system, and not worry about
replies. If your system can't "hear" them guys, it won't answer.
>Destination ! = [ ] (choices are on or off)
>Destination Port = [22] (choices are any number)
Yes
COMMENT: As of last night, there were nearly 3 1/2 billion IPv4
addresses "out there" (and 14 x 10^33 IPv6 addresses). Do you have
to allow access from all? Have you removed the locks on the doors
of your house? If not, do you give keys to everyone in the world and
only take back the keys from people you don't like/want to come in?
A better solution is to only give keys to those you do want to come
in. My home firewall allows access from just three outside networks
(two /24s and a /22 - or a total of 1530 addresses). This would be
something like
Target = [ACCEPT]
Interface = [ANY]
IP Type = [IP]
Source IP/Mask =
192.168.1.0/24
Source IP/Mask =
192.0.2.0/24
Source IP/Mask =
198.51.100.0/24
Source IP/Mask =
198.18.24.0/22
and ignoring/dropping any other connection attempts. Note that this
does not prevent an "inside" host from initiating a connection to
any address "outside" - it just prevents an "outside" host not in the
desired address range from initiating a connection to "me". Note also
that I don't bother specifying a port number, though I may narrow it
down for the three "outside" IP ranges (but not the "inside" range).
Old guy