Do neighbors dare to steal my Wi-Fi? How can I cure you?

Source: Internet
Author: User

My neighbor is stealing my WiFi. Well, I can choose to encrypt the password directly or... As a geek, I can also play with him.So, let's start with dividing networks. I divide the network into two parts: trusted and untrusted. A trusted part is a subnet, rather than a trusted part. I use the DHCP server to identify the MAC address and obtain the relevant address information. The following is my/etc/dhcpd. conf configuration file.

 

Divide Networks

IptablesIt's so fun!

Well, next I will use iptables to do some work on traffic. I did this:

/Sbin/iptables-a prerouting-s 192.168.0.0/255.255.255.0-p tcp-j DNAT-to-destination 64.111.96.38

Oh, suddenly everything becomes a kitten! For novice users who lack experience, all their traffic will be redirected to http://www.kittenwar.com/. is it cute?

Not enough. I want to play better. I continue to set iptables rules so that all traffic is forwarded to a local computer running the squid agent. The port is set to 80.

/Sbin/iptables-a prerouting-s 192.168.0.0/255.255.255.0-p tcp-m tcp-dport 80-j DNAT-to-destination 192.168.0.1

This local machine runs squid, which has a small redirection function. You can automatically download images and use mogrify (an image modification program) to turn the images upside down and upside down, then output to the Local Web server.

Below is my redirection script code, which is a small perl program:

Okay, you're done! When you browse the Web page, it will become as follows:

Another one,: D

If you modify the above Code and replace-flip with-blur 4, your image will be blurred.

These people don't think their computers are broken, do they? : D

I even made a cartoon. Is it cool?

Then I received an email. Oh, it was sent to me from the kittenwar website. He said this:

Hi Pete,

Sorry, I sent this email to you without saying hello, but what I want to tell you is that if you reverse the picture, you can tease the people who steal WiFi, this idea is awesome.

I often receive emails in an extremely angry tone. These people say that my website kittenwar is playing with some evil viruses to prevent them from browsing the webpage normally, they accused me of not engaging in these dark spells any more. I will only politely reply to these people: I am really sorry for this, but this will only happen when you steal others' Wi-Fi connections. This has happened dozens of times in the past few years, but do you know? After I pointed out that they had stolen WiFi, I never received a reply again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.