From: Noino <mg8c1zu02@sneakemail.com>
To: netfilter@vger.kernel.org
Subject: RE: simple port translation on the localhost / local loopback
Date: Fri, 28 Mar 2008 11:21:18 +0100 [thread overview]
Message-ID: <20080328102118.E4B7CB872@sem.mel.teaser.net> (raw)
In-Reply-To: <B48CB61665A101419E226D4D141D540E03035231CC@mail-server.inside.eclyptic.com>
Hi, Ryan...
Ryan Kruse wrote :
> This is how I redirect 10443 to 443. You have to NAT it back to another host, which will just be your machines IP. You should be able to sub in your server IP and DNS ports.
Thank you for your help. I did as you said, /mutatis mutandis/,
unfortunately it didn't work. Here're my iptables commands (starting from
clear tabes) :
___________________________________________________________________________
# /usr/sbin/iptables -t nat -A OUTPUT -d localhost -p udp --dport 53 -j
REDIRECT --to-ports 10053
# host=10.0.0.1
# /usr/sbin/iptables -t nat -A OUTPUT -d $host -p udp --dport 53 -j REDIRECT
--to-ports 10053
# /usr/sbin/iptables -t nat -A PREROUTING -d $host -p udp --dport 53 -j
REDIRECT --to-ports 10053
___________________________________________________________________________
Here 10.0.0.1 is my local host's IP on eth0 (the LAN)
Now here's what happened when trying to contact my local DNS listener
(Tor-alpha) :
______________________________________________________________________
# host www.grc.com 10.0.0.1
;; reply from unexpected source: 127.0.0.1#10053, expected 10.0.0.1#53
;; reply from unexpected source: 127.0.0.1#10053, expected 10.0.0.1#53
;; connection timed out; no servers could be reached
_______________________________________________________________________
You see, it appears just like per my previous question, replies weren't
NATTed back !
Maybe a version problem ?
_____________________________
#iptables --version
iptables v1.2.9
_____________________________
--
Noino
next prev parent reply other threads:[~2008-03-28 10:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-27 21:16 simple port translation on the localhost / local loopback Noino
2008-03-27 23:17 ` Ryan Kruse
2008-03-28 10:21 ` Noino [this message]
2008-03-28 10:35 ` Pascal Hambourg
2008-03-28 14:15 ` Noino
2008-03-29 15:27 ` Pascal Hambourg
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=20080328102118.E4B7CB872@sem.mel.teaser.net \
--to=mg8c1zu02@sneakemail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox