All of lore.kernel.org
 help / color / mirror / Atom feed
From: Snehasis Sinha <ssinha@connectivasystems.com>
To: netfilter@lists.netfilter.org
Subject: iptables - port forwarding in LAN
Date: Mon, 18 Sep 2006 17:41:59 +0530	[thread overview]
Message-ID: <450E8D0F.2070909@connectivasystems.com> (raw)
In-Reply-To: <450AD8D4.7040008@mailinator.com>

Hi,

I am trying to port forward in a closed (not connected to real internet or outside network) network (LAN) to a machine; but could not do it successfully. the senerio is:

I have a host_a (10.5.1.100), host_b (10.5.1.200) and host_c (10.5.1.150) connected among themselves. from host_c i am accessing http service at host_a using http://10.5.1.100:80. I can access tomcat server using http://10.5.1.200:8080, from host_c. now I want to use http://10.5.1.100:80 to access 10.5.1.200:8080 from the same host (host_c), ie. all http requests targetted to 10.5.1.100:80 should be redirected to 10.5.1.200:8080, so that pages from host_b:8080 comes to host_c but appear to come from host_a:80

how to do that using iptables. please advise.
thanks in advance

-snehasis


  reply	other threads:[~2006-09-18 12:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-11  2:39 need help with ipset Mike Wright
2006-09-14  6:58 ` Jozsef Kadlecsik
2006-09-15 16:29   ` Mike Wright
2006-09-15 16:36     ` Mr Ritter
2006-09-15 16:46       ` Mike Wright
2006-09-18 12:11         ` Snehasis Sinha [this message]
2006-09-20 16:20     ` need help with ipset [SOLVED] Mike Wright
  -- strict thread matches above, loose matches on Subject: below --
2006-09-19  3:56 iptables - port forwarding in LAN Snehasis Sinha

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=450E8D0F.2070909@connectivasystems.com \
    --to=ssinha@connectivasystems.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.