From: Rudi Starcevic <tech@wildcash.com>
To: netfilter@lists.netfilter.org
Subject: HTTP Port-forwarding
Date: Mon, 28 Feb 2005 17:09:17 -0800 [thread overview]
Message-ID: <4223C0BD.1080804@wildcash.com> (raw)
Hi,
I have these rules below to enable:
a) http port-forwarding in requests
b) masquerading rules for http replies.
It does seem to work OK but is very slow. After hours of looking I think
the problem as to why it is so slow may be in my Iptables rules.
Can you see a double up or something that may cause a problem ?
Or would you say it all looks fine and my problem is elsewhere ?
Thank you ..
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP
$IPTABLES -P FORWARD DROP
# http requests:
# Port-Forwarding setup
$IPTABLES -t nat -A PREROUTING -i $ETH0 -p tcp --dport 80 -d
66.xxx.xx.100 -j DNAT --to 192.168.0.10:80
# http replies:
# ENABLE NAT
echo "1" > /proc/sys/net/ipv4/ip_forward
# NAT Forwarding Setup
$IPTABLES --table nat --append POSTROUTING --out-interface $ETH0 -j
MASQUERADE
$IPTABLES -A FORWARD -i $ETH1 -j ACCEPT
$IPTABLES -A FORWARD -i $ETH0 -j ACCEPT
$IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005
next reply other threads:[~2005-03-01 1:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 1:09 Rudi Starcevic [this message]
2005-03-01 3:18 ` HTTP Port-forwarding Jason Opperisano
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=4223C0BD.1080804@wildcash.com \
--to=tech@wildcash.com \
--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