Find the answer to your Linux question:
Results 1 to 2 of 2
We're trying to redirect a streaming video protocol. We have no access to the source of the client or server. White hat MITM-ish. The client and server are expecting the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    1

    Lightbulb Many TCP connections through one port (iptables or C?)


    We're trying to redirect a streaming video protocol. We have no access to the source of the client or server. White hat MITM-ish.

    The client and server are expecting the commands (play, pause, etc) via a TCP connection. If this session is broken, the client and server both reset (don't want this).

    Can only have a single TCP bind on a port right? We were thinking of having a listener on the port required. This listener could exec iptable commands. Is it possible to use iptables to redirect incoming traffic from one port to another based on mac address? (each client can only play one video at once, as a spec).

    What is the best iptables tutorial out there? (if you can redirect based on MAC)


    ** I noticed the media server we're using (runs in java in linux) can maintain two TCP connections on the same port. Can play two different videos with the same port speced in the URL. Any idea how they'd do this?

    THANK YOU!

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    You can use IPTABLES to redirect. Take a look at this TUTORIAL.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •