All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gustin <ivan.gustin@pu.t-com.hr>
To: Matt Barclay <mbarclay@openfbo.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Rerouting remote users to VPN channel
Date: Tue, 25 Apr 2006 10:21:07 +0200	[thread overview]
Message-ID: <444DDBF3.6050500@pu.t-com.hr> (raw)
In-Reply-To: <ac931180604250056o78395d79tb793c857b312886c@mail.gmail.com>

Matt Barclay:
> Yes, you need SNAT and DNAT rules.  Something like this ought to work

Thank you, Matt, for answering.

> iptables -t mangle -A PREROUTING -d <yourPublicIP> -p tcp --dport 80
> -j MARK --set-mark 80
> iptables -t nat -A PREROUTING -m mark --mark 80  -j DNAT --to 192.168.30.9
> iptables -A FORWARD -m mark --mark 80 -j ACCEPT
> iptables -t nat -A POSTROUTING -m mark --mark 80 -j SNAT --to
> <firewallPrivateIP>

Yes, I set up something like this few hours ago, and it worked. But, 
unfortunately, Intranet Web application uses absolute private IP 
addresses, so that can't work. Application starts, but when user clicks 
on some option connection hangs trying to open http://192.168.30.9/.... 
:-( I can't change third-party Web app.

I don't see any other solution but setting up VPN so users have private 
routeable IP addresses.

Thanks anyway.

GI


      reply	other threads:[~2006-04-25  8:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-24 19:23 Rerouting remote users to VPN channel Ivan Gustin
2006-04-25  7:56 ` Matt Barclay
2006-04-25  8:21   ` Ivan Gustin [this message]

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=444DDBF3.6050500@pu.t-com.hr \
    --to=ivan.gustin@pu.t-com.hr \
    --cc=mbarclay@openfbo.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.