Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Socket Traffic Cop

by Crackers2 (Parson)
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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://834349]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2018-06-19 06:06 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.