in reply to Socket Traffic Cop
Assuming you're on linux, I'd recommend skipping perl and using iptables to take care of this.
iptables -A PREROUTING -i <interface> -s <sourceip> -p tcp -m tcp --dp +ort <port> -j REDIRECT --to-ports <newport>
There's also an option to specify a source network instead of a single IP.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Socket Traffic Cop
by sans-clue (Beadle) on Apr 12, 2010 at 20:29 UTC | |
by marto (Cardinal) on Apr 12, 2010 at 20:41 UTC | |
by sans-clue (Beadle) on Apr 12, 2010 at 21:16 UTC | |
by marto (Cardinal) on Apr 13, 2010 at 09:22 UTC | |
by Anonymous Monk on Apr 13, 2010 at 12:35 UTC |