From: "Nicolás Velásquez O." <spidyno@yahoo.es>
To: netfilter@lists.netfilter.org
Subject: custom redirector
Date: Thu, 12 Aug 2004 11:58:17 -0500 [thread overview]
Message-ID: <200408121158.17197.spidyno@yahoo.es> (raw)
Hello there,
I want to do some custom redirection rules, I've searched the web with
no success.
What I want to do is to set the forward policy a redirect.
Here is what I was trying without success:
$IPTABLES -t nat -N MY_REDIRECTOR_POLICY
$IPTABLES -t nat -A PREROUTING -i $LAN_IFACE -p TCP --dport 80 -j
MY_REDIRECTOR_POLICY --to-port 81
$IPTABLES -A MY_REDIRECTOR_POLICY -j REDIRECT --to-port 81
$IPTABLES -A FORWARD -j MY_REDIRECTOR_POLICY
That snip would go at the end of the rules. so it will work like a
policy.
First of all, is it possible to do what I want to do??
Squid is not an option as no body has to be doing any configuration
changes on the machines. Transparent Proxy won't do the job, as the
objective of the project is to do direct connection. Besides the
connections can happen on non web ports.
--
Atentamente,
Nicolás Velásquez
Bogotá, Colombia
(^) ASCII Ribbon Campaign
X NO HTML/RTF in e-mail
/ \ NO Word docs in e-mail
next reply other threads:[~2004-08-12 16:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-12 16:58 Nicolás Velásquez O. [this message]
2004-08-13 1:02 ` custom redirector Antony Stone
-- strict thread matches above, loose matches on Subject: below --
2004-08-12 4:04 Nicolás Velásquez O.
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=200408121158.17197.spidyno@yahoo.es \
--to=spidyno@yahoo.es \
--cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox