From: Mart Frauenlob <mart.frauenlob@chello.at>
To: netfilter@vger.kernel.org
Cc: no doubt <hell.no.doubt@gmail.com>
Subject: Re: need help on *nat filter for multiple source IP
Date: Thu, 16 Apr 2009 11:23:16 +0200 [thread overview]
Message-ID: <49E6F904.6050202@chello.at> (raw)
In-Reply-To: <5a7ba2310904160138i57b8867ct9c4a2130e6ffebe1@mail.gmail.com>
no doubt wrote:
> Hello Mart,
> Yeah, I just tweak around your config.
>
> Here they are..
>
> iptables -t nat -n MY80FWD
> iptables -A PREROUTING -s 192.168.4.20/32 -i eth2 -p tcp -m tcp
> --dport 80 -j MY80FWD
> iptables -A PREROUTING -s 192.168.4.10/32 -i eth2 -p tcp -m tcp
> --dport 80 -j MY80FWD
> iptables -A PREROUTING -s 192.168.4.100/32 -i eth2 -p tcp -m tcp
> --dport 80 -j MY80FWD
> iptables -A MY80FWD -p tcp -j DNAT --to-destination 192.168.3.10:80
>
> iptables -A POSTROUTING -o ppp+ -j MASQUERADE
>
>
> --khairul
Hello,
well, this is funny then.
Your original request was:
[quote]
I would like to achieve that for all IP's in 192.168.4.0/24 that are
accessing outside internet address port 80, will be directed to
192.168.3.10 port 80 EXCEPT for few IPs namely 192.168.4.10,
192.168.4.100 and 192.168.4.20
There must have been some 'unfiltered' mental connection between us :-)
Because I was misunderstanding your post, just the way you were actually
intending, but somehow not expressing correctly.
Just too funny :-)
You should have asked some like that:
I'd like to redirect http traffic for only 3 host of my subnet, while
the rest...
Well, maybe I then would have misread your posting and the result would
not have been the desired one.
lol :-)
Have a nice day
Mart
next prev parent reply other threads:[~2009-04-16 9:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-13 3:05 need help on *nat filter for multiple source IP no doubt
2009-04-13 5:05 ` Mart Frauenlob
2009-04-15 19:00 ` no doubt
2009-04-15 20:59 ` Mart Frauenlob
2009-04-16 8:38 ` no doubt
2009-04-16 9:23 ` Mart Frauenlob [this message]
2009-04-16 11:30 ` no doubt
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=49E6F904.6050202@chello.at \
--to=mart.frauenlob@chello.at \
--cc=hell.no.doubt@gmail.com \
--cc=netfilter@vger.kernel.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