All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Oester <kernel@linuxace.com>
To: ilic_68@yopmail.com
Cc: netfilter@vger.kernel.org
Subject: Re: iptables redirects packets to local proxy
Date: Sat, 30 Nov 2013 09:40:58 -0800	[thread overview]
Message-ID: <20131130174057.GA23001@home> (raw)
In-Reply-To: <201311301646.rAUGk6rg005227@p3slhssl14.shr.phx3.secureserver.net>

On Sat, Nov 30, 2013 at 09:46:06AM -0700, ilic_68@yopmail.com wrote:
> Hello,
> 
> consider this scenario:
> 
> PC1 wants to telnet to SRV1 tcp 40000.
> 
> I would like to put a proxy in the middle that receives the
> connection, rewrites the destination, sends packet to a local socks proxy (redsocks).
> 
> So the scenario would be:
> 
> PC1 --> PROXY tcp 20000 [iptables rewrites destination to SRV tcp 40000 --> redsocks 127.0.0.1 tcp 12345] --> SRV1 tcp 40000

Use -j REDIRECT --to 12345

  reply	other threads:[~2013-11-30 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-30 16:46 iptables redirects packets to local proxy ilic_68
2013-11-30 17:40 ` Phil Oester [this message]
     [not found] <529A42E6.7030504@gmail.com>
2013-11-30 20:17 ` Phil Oester
2013-11-30 21:39   ` Antonio Prado

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131130174057.GA23001@home \
    --to=kernel@linuxace.com \
    --cc=ilic_68@yopmail.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.