Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Socket Traffic Cop

by Crackers2 (Vicar)
on Apr 12, 2010 at 19:52 UTC ( #834349=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Socket Traffic Cop
Download Code
Re^2: Socket Traffic Cop
by sans-clue (Beadle) on Apr 12, 2010 at 20:29 UTC
    Turns out to be solaris... they won't let me install POE. Could you give me any tips on how to install a localized (to my home dir) perl dist for solaris ? I see that many modules POE requires are not in the prod perl dist that I can't touch.
    I might be able to use a linux box to do this and route the solaris ports, thanks for the tip.

      Did you read the INSTALL file, and the platform specific readme file?

        YES. There is an update to IO that is required that I am not allowed to make. You can move on to other threads, click the hide tab on this one.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://834349]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-22 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (112 votes), past polls