Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to setup a wireless infrastructure network wherein the access point has the ability to modify certain packets on the fly. For example, the AP should be able to modify an HTTP request from a client to a webserver on the same network by adding an addition field in the request containing the MAC address of the client. Is there some way to do this?

share|improve this question
What are you trying to do? – David Pashley Oct 22 '09 at 14:13
I'm wondering if he's trying to ban a person flooding his wireless IP by MAC address by snooping on the requestor on the fly? Possibly? – Bart Silverstrim Oct 22 '09 at 14:19
I'm trying to see if I can somehow setup a network where all the clients have the same IP address. Assume for now the clients don't need to access an external network. – TripShock Oct 22 '09 at 14:44
Why in the world would you WANT to do this? – GregD Oct 22 '09 at 15:16
I'm trying to create a system where a client initially gets a default IP address, and then is migrated to a different unique address after he has performed some simple authentication. I want to prevent DHCP starvation on public wifi networks. – TripShock Oct 22 '09 at 16:32
up vote 3 down vote accepted

How to modify packets on the fly?

I'm trying to create a system where a client initially gets a default IP address, and then is migrated to a different unique address after he has performed some simple authentication

Your questions are becoming more and more bizarre. You seem to want to fix a basic problem by doing something that is extremely obscure and probably breaks many of the networking standards.

I suspect if you really want to do something like what you seem to want to do you are going to have to a) get a Linux AP, b) download the source and start doing some serious hacking of the networking code, and c) have a very in-depth understanding of networking/wifi.

I almost think your questions may be getting to the point that they belong on stackoverflow. I believe that you are going to have to start actually writing code to accomplish this.

share|improve this answer
That's what it looks like to me also. That the OP is wanting to hack together his (or her) own networking protocols. – GregD Oct 22 '09 at 20:41

Well the address thing can be done simply with NAT but only for machines OUTSIDE of the NAT'd subnet.

To make every machine have the same IP on the same subnet, just set them all to the same IP. Won't work, of course, but what do you expect? They all have the same IP.

share|improve this answer
LOL! (pad to 15 chars) – James Risto Oct 22 '09 at 16:38

Airpwn lets you modify and inject wireless traffic on the fly. According to the documentation you can certainly inject HTTP content, but I'm not sure about MAC addresses.

Having a bunch of wireless clients with the same IP address would be a bit of a challenge.

share|improve this answer
This requires two network interfaces though. – TripShock Oct 22 '09 at 16:33
Most wireless infrastructure equipment has both wireless and wired interfaces. Equipment that modifies packets on the fly (firewalls, routers, load balancers, VPN hardware, etc.) typically has more than one interface. It's kind of a requirement. What kind of equipment are you working with here? – Gerald Combs Oct 22 '09 at 19:46

If you only want to modify HTTP packets, then install software that redirects all HTTP traffic to an HTTP proxy like HoTTProxy or Squid and use the proxy to modify the requests.

The redirect function has to be done on a router or possibly on the wireless AP itself depending on what software is installed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.