How to make a computer invisible
Hello ..
As far as I know iptables use MAC Address information for filtering. It cant be used for filtering packets, and I assume iptables cannot edit / modify ARP / RARP stuff.
If you find an alternate way, Do Share :)
Regards
Babar Kazmi.
----- Original Message -----
From: "Thomas Preissler" <[email protected]>
To: "netfilter-user Mailinglist" <[email protected]>
Sent: Sunday, November 30, 2003 3:12 PM
Subject: How to make a computer invisible
Quoted 8 lines
Hello folks,
how do I really make a computer totally invisibly as it would be when it does not exist?
It is clear, that the simplest solution is to DROP all incoming packets, but what's about (R)ARP packets? Can they be blocked anyway?
Hello,
You can make a machine almost invisible with iptables. I have a firewall box with multiple IP's on one interface. The one IP address does not have any servers listening on it. So if I do a nmap for all TCP and UDP ports and watch the traffic through a TCP dump the only responses I see are ARP replies.
So besides the response to ARP traffic no packets were sent out .. so if I could disable the ARP reply a nothing would be known.
The nmap scanned could only tell me that all ports a filtered :)
If you have a service on the IP -- like a web server I can not see you being able to hide it.
Also iptables by default is a IP based filter you a rule like:
iptables -A INPUT -j DROP
will not drop layer two stuff.
You could try:
iptables -I INPUT -m mac -j DROP
but I am not sure what this would cause and what else it will break :0
Michael.
Quoted 32 lines · On Tue, 2 Dec 2003 09:40:09 +0500 "Babar Kazmi" <[email protected]> wrote:
Hello ..
As far as I know iptables use MAC Address information for filtering. It cant be used for filtering packets, and I assume iptables cannot edit / modify ARP / RARP stuff.
If you find an alternate way, Do Share :)
Regards
Babar Kazmi.
----- Original Message -----
From: "Thomas Preissler" <[email protected]>
To: "netfilter-user Mailinglist" <[email protected]>
Sent: Sunday, November 30, 2003 3:12 PM
Subject: How to make a computer invisibleQuoted 8 lines
Hello folks,
how do I really make a computer totally invisibly as it would be when it does not exist?
It is clear, that the simplest solution is to DROP all incoming packets, but what's about (R)ARP packets? Can they be blocked anyway?
Signature · 3 lines
Michael Gale Network Administrator Utilitran Corporation
Quoted 3 lines · Michael Gale
Hello,
You can make a machine almost invisible with iptables.
<snip>
Quoted 1 line
So if I do a nmap for all TCP and UDP ports and watch the traffic through a TCP dump the only responses I see are ARP replies.
I guess this depends on what you mean by "invisible". When you ran your scan nmap reported back "filtered". This is because nmap is smart enough to know that no response back means there is a firewall controlling traffic between the source and the target.
So while an attacker can't tell if the IP is up or down, they can tell there is a firewall in the way and if the host is up, no accessible services are being offered.
Quoted 1 line
If you have a service on the IP -- like a web server I can not see you being able to hide it.
I've had pretty good luck using:
-j REJECT --reject-with icmp-host-unreachable
If the open service ports are not the first ones hit, many vulnerability scanners read this as the host being off-line and never bother to complete the scan. So while people going directly to port 80 will access your Web server without a problem, people doing a vertical port scan many times get a response saying the host is off-line and never get to see that TCP/80 is open.
HTH,
C
Do you have rate limit on this rule - if not could someone simple just hammer a non-open port causing your machine to send out a large amount of REJECT packets ?
Michael.
Quoted 35 lines · On Tue, 02 Dec 2003 10:48:08 -0500 Chris Brenton <[email protected]>…
Quoted 3 lines · Michael Gale
Hello,
You can make a machine almost invisible with iptables.
<snip>
Quoted 1 line
So if I do a nmap for all TCP and UDP ports and watch the traffic through a TCP dump the only responses I see are ARP replies.
I guess this depends on what you mean by "invisible". When you ran your scan nmap reported back "filtered". This is because nmap is smart enough to know that no response back means there is a firewall controlling traffic between the source and the target.
So while an attacker can't tell if the IP is up or down, they can tell there is a firewall in the way and if the host is up, no accessible services are being offered.
Quoted 1 line
If you have a service on the IP -- like a web server I can not see you being able to hide it.
I've had pretty good luck using:
-j REJECT --reject-with icmp-host-unreachableIf the open service ports are not the first ones hit, many vulnerability scanners read this as the host being off-line and never bother to complete the scan. So while people going directly to port 80 will access your Web server without a problem, people doing a vertical port scan many times get a response saying the host is off-line and never get to see that TCP/80 is open.
HTH,
C
Signature · 3 lines
Michael Gale Network Administrator Utilitran Corporation
Quoted 1 line · Michael Gale
Do you have rate limit on this rule
Yup, 3/sec. Combine this with the high TTL used by Netfilter and your firewall looks more like a Cisco router than a Linux based firewall.
C
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
* Chris wrote on 12/02/03:
Quoted 10 lines · Michael Gale
Quoted 3 lines
Hello,
You can make a machine almost invisible with iptables.
<snip>
Quoted 1 line
So if I do a nmap for all TCP and UDP ports and watch the traffic through a TCP dump the only responses I see are ARP replies.
I guess this depends on what you mean by "invisible". When you ran your
I mean, that it looks like that the computer with the ip x is not reachable as the same as it is, when you address an ip that addresses no computer, i.e. is an unused ip.
I think RECJECTing with "Destination Host Unreachable" is ok and produces nice results.
But I must have a look at the ARP requests, I think I must feed the documentation from ebtables, it looks good ;-))
[...]
Background: I am just experimenting and this was an interesting issue for me. I want to setup a whole net with UML boxes and hide the physical computer... Just testing, just playing... nothing else. Just testing about some very crazy networking issues ;-)))
Thx,
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/zL00LnRAQMIdq38RApZUAJ92WxUQNO2s4ee18iKbv3iM2lmi+gCgi7li It1DRQKHq8RjJ3/fOufZE5U=
=8ZAg
-----END PGP SIGNATURE-----
Greetings!
Quoted 4 lines · Thomas Preissler
I mean, that it looks like that the computer with the ip x is not reachable as the same as it is, when you address an ip that addresses no computer, i.e. is an unused ip.
Then using a "drop" is not quite the same. Let's say you have no firewall and someone sends a packet to an unused IP:
packet is received by your edge router
router realizes the target IP is local off of one interface router sends 3 ARP requests for the IP
When no ARP reply is received, router gives up and returns a host unreachable to the source IP
Again, nmap expects the above which is why it reports "filtered" when it hits your drop rule. This is why you can mess up its results by returning host unreachables.
Quoted 3 lines
Background: I am just experimenting and this was an interesting issue for me. I want to setup a whole net with UML boxes and hide the physical computer.
UML does this quite nicely. I was part of the crew that started Dartmouth's security institute, as well as one of the original members of the honeynet. In both groups we used UML extensively in the setup you mention above. check:
They probably still have some papers up there written by Bill Stearns and myself on the subject.
HTH,
C
On Tue, 02 Dec 2003 13:19:14 -0500,
Chris Brenton <[email protected]> wrote in message <1070389153.2057.34.camel@grendel>:
Quoted 17 lines
Greetings!
Quoted 4 lines · Thomas Preissler
I mean, that it looks like that the computer with the ip x is not reachable as the same as it is, when you address an ip that addresses no computer, i.e. is an unused ip.
Then using a "drop" is not quite the same. Let's say you have no firewall and someone sends a packet to an unused IP:
packet is received by your edge router
router realizes the target IP is local off of one interface router sends 3 ARP requests for the IP
When no ARP reply is received, router gives up and returns a host unreachable to the source IP
Quoted 3 lines
Again, nmap expects the above which is why it reports "filtered" when it hits your drop rule. This is why you can mess up its results by returning host unreachables.
..so, to play dead, we really oughtta wait for the 3'rd "ping" before firing off the "Destination Host Unreachable"?
Signature · 4 lines
..med vennlig hilsen = with Kind Regards from Arnt... ;-) ...with a number of polar bear hunters in his ancestry... Scenarios always come in sets of three: best case, worst case, and just in case.