All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antonio Prado <thinkofit@gmail.com>
To: Phil Oester <kernel@linuxace.com>
Cc: ilic_68@yopmail.com, netfilter@vger.kernel.org
Subject: Re: iptables redirects packets to local proxy
Date: Sat, 30 Nov 2013 21:39:33 +0000	[thread overview]
Message-ID: <529A5B15.5030207@gmail.com> (raw)
In-Reply-To: <20131130201749.GB23089@home>

On 30/11/13 20:17, Phil Oester wrote:
> Seems the socks proxy should be configured to send the traffic to y:40000.

Right, without using iptables at all for redirecting, socat can do it all.

For example:
socat TCP4-LISTEN:20000,reuseaddr,fork \
SOCKS4:127.0.0.1:A.B.C.D:40000,socksport=12345

--
antonio

  reply	other threads:[~2013-11-30 21:39 UTC|newest]

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

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=529A5B15.5030207@gmail.com \
    --to=thinkofit@gmail.com \
    --cc=ilic_68@yopmail.com \
    --cc=kernel@linuxace.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.