From: Jim Laurino <nfcan.x.jimlaur@dfgh.net>
To: netfilter@lists.netfilter.org
Subject: Re: redirect (nfcan: addressed to exclusive sender for this address)
Date: Thu, 8 Mar 2007 09:50:08 -0500 [thread overview]
Message-ID: <20070308145008.GA11462@salty> (raw)
In-Reply-To: <20070308063421.y4spggseocogsc48@mail.harrisonburg.k12.va.us> (from +nfcan+jimlaur+67730951a3.dhottinger#harrisonburg.k12.va.us@spamgourmet.com on Thu, Mar 08, 2007 at 06:34:21 -0500)
On 2007.03.08 06:34, dhottinger@harrisonburg.k12.va.us wrote:
> Quoting Georgi Alexandrov <georgi.alexandrov@gmail.com>:
>
.....
>>>>> I would like to have any traffic destined for apple.com excluded from
>>>>> this redirect. I cant seem to get the syntax right. Anyone got any
>>>>> ideas?
>>>> <snip*>
>>>>
>>>> iptables -t nat -A PREROUTING -p tcp -i $iface --dport 80 -d $apples_net
>>>> -j RETURN
>>>>
....
>
> $IPC -t nat -A PREROUTING -p tcp -i $IF --dport 80 -d 17.250.0.0
> -j RETURN
>
> Is not routing apple.com traffice away from my proxy. Apple.com traffic is
> still getting routed to proxy server. I have the rule placed above my dnat
> rule for the proxy. Any other ideas?
The example was non-specific, -d $apples_net.
Your implementation, -d 17.250.0.0, is for a specific ip address.
You probably meant to specify a range.
Iptables allows you to use netmask or cidr syntax.
You can cover all of Apple with 17.0.0.0/8 for instance.
--
Jim Laurino
nfcan.x.jimlaur@dfgh.net
Please reply to the list.
Only mail from the listserver reaches this address.
next prev parent reply other threads:[~2007-03-08 14:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 14:42 redirect dhottinger
2007-03-07 16:14 ` redirect Georgi Alexandrov
2007-03-07 16:43 ` redirect dhottinger
2007-03-07 16:50 ` redirect dhottinger
2007-03-08 7:01 ` redirect Georgi Alexandrov
2007-03-08 11:34 ` redirect dhottinger
2007-03-08 14:50 ` Jim Laurino [this message]
2007-03-08 14:58 ` redirect (nfcan: addressed to exclusive sender for this address) dhottinger
2007-03-09 15:07 ` Georgi Alexandrov
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=20070308145008.GA11462@salty \
--to=nfcan.x.jimlaur@dfgh.net \
--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