All of lore.kernel.org
 help / color / mirror / Atom feed
From: JM <jerome@gmanmi.tv>
To: netfilter@lists.netfilter.org
Subject: iptables help..
Date: Fri, 10 Oct 2003 12:45:55 +0800	[thread overview]
Message-ID: <200310101245.55993.jerome@gmanmi.tv> (raw)

network looks like this...


                                                           LAN 
                                                              |
                                                              |
                                                        Firewall
                                                               |
                                                               |
remote server ( A, B, C ) ---- router2 ----- router1 ----- route3 --- remote server (1, 2, 3 etc ) --- internet
                      |
 Datacenter     |
     (network)    |
          remote server (x,y,z)
                    |
                    |
                 internet

i want to access the http server on "remote server x" from LAN.. without going through the internet..
so what i did is setup DNAT on "remote server A" but somehow its not working.. 

this is my ruleset..

NAT
-A PREROUTING -d serverA_IP -p tcp -m tcp --sport 1024:65535 --dport 81 -j DNAT --to-destination serverx_IP:80

FILTER
-A INPUT -p tcp -s LAN_IP/24 --sport 1024:65535 -d serverA_IP --dport 81 -j LOG --log-prefix "INPUT packets:"
-A FORWARD -d  serverx_IP -p tcp -m tcp --sport 1024:65535 --dport 80 -m state --state NEW -j ACCEPT
-A FORWARD -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -p tcp -j LOG --log-prefix "FORWARD packets:"


TIA
jm


             reply	other threads:[~2003-10-10  4:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10  4:45 JM [this message]
2003-10-10  5:29 ` iptables help Ralf Spenneberg
2003-10-13  3:12   ` JM
  -- strict thread matches above, loose matches on Subject: below --
2006-10-31 11:41 Vikram Bhuskute
2005-04-04 12:08 Iptables help Vishwas Manral
2005-04-04  5:11 dpadalkar2001
2005-04-04 14:46 ` Henrik Nordstrom
2004-12-15 23:09 IPTABLES HELP Burton
2004-12-15 23:17 ` Jason Opperisano
2004-11-04  2:42 iptables help Wei Ming Long
2004-11-05 10:43 ` Harald Welte
2004-11-04  2:40 Wei Ming Long
2004-11-04  2:40 ` Wei Ming Long
2004-11-04 21:02 ` Jason Opperisano
2004-11-04 22:39 ` Bosse Klykken
2004-11-04  2:40 Wei Ming Long
2004-07-28 23:20 Ashley M. Kirchner
2004-07-29  6:32 ` Antony Stone
2004-05-31 16:20 iptables Help Daniel Chemko
2004-05-31 10:36 Vinay Poojary
2003-10-13  3:04 iptables help George Vieira
2003-02-17  6:15 Laxman Gummadavally

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=200310101245.55993.jerome@gmanmi.tv \
    --to=jerome@gmanmi.tv \
    --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.