From: Peter <dslt03@pacbell.net>
To: netfilter@lists.netfilter.org
Subject: Simple Port Translation...
Date: Mon, 04 Nov 2002 15:10:11 -0800 [thread overview]
Message-ID: <3DC6FE53.6070803@pacbell.net> (raw)
First some explanation, I'm trying to proxy traffic from a linux box
behind a very restrictive firewall, the only way to get my traffic
through it is on port 9000; A friend with a static ip has agreed to
allow me to proxy my traffic through his box, but he is rightly
concerned about the security of such a simple proxy. As you can see, or
infer, I've set the rules so that only connections comming from my
firewalled box are translated and only new, established and related
connections are allowed, but being the noob I am at this I'm not sure if
I need anything else. Another translation to recieve and proxy
connections to my firewalled box? Are there more restrictive rules I
can set so my friend doesnt have to worry? Is there a more ellegant
solution that I just don't have the time to persue? Do I need a routing
command on my Linux box? I just need some help, since I don't have the
time at the moment to persue this as fully as I would like to. Any help
would be most appreciated.
$IPTABLES -t nat -A PREROUTING -s (my ip address) --dport 9000 -j DNAT
--to-destination (your IP here):81
$IPTABLES -A FORWARD -i (input interface) --dport 81 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT
reply other threads:[~2002-11-04 23:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3DC6FE53.6070803@pacbell.net \
--to=dslt03@pacbell.net \
--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