From: Phil Oester <kernel@linuxace.com>
To: Antonio Prado <thinkofit@gmail.com>
Cc: ilic_68@yopmail.com, netfilter@vger.kernel.org
Subject: Re: iptables redirects packets to local proxy
Date: Sat, 30 Nov 2013 12:17:50 -0800 [thread overview]
Message-ID: <20131130201749.GB23089@home> (raw)
In-Reply-To: <529A42E6.7030504@gmail.com>
On Sat, Nov 30, 2013 at 07:56:22PM +0000, Antonio Prado wrote:
> On 30/11/13 17:40, Phil Oester wrote:
> > Use -j REDIRECT --to 12345
>
> If I get it correctly, the OP wants to redirect to 127.0.0.1:12345 after
> having changed destination address and port to the packets.
> Is that possible anyway?
You have to pick where you want to change the destination to. Either x:12345
or y:40000 - can't have it both ways. Seems the socks proxy should be configured
to send the traffic to y:40000.
Phil
next parent reply other threads:[~2013-11-30 20:17 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 ` Phil Oester [this message]
2013-11-30 21:39 ` iptables redirects packets to local proxy Antonio Prado
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=20131130201749.GB23089@home \
--to=kernel@linuxace.com \
--cc=ilic_68@yopmail.com \
--cc=netfilter@vger.kernel.org \
--cc=thinkofit@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox