From: Andrew Beverley <andy@andybev.com>
To: nullv@gmx.com
Cc: users@lists.fedoraproject.org, netfilter@vger.kernel.org
Subject: Re: IPTable Rules... again
Date: Thu, 08 Mar 2012 17:29:53 +0000 [thread overview]
Message-ID: <1331227793.30413.438.camel@andrew-desktop> (raw)
In-Reply-To: <20120308151651.300950@gmx.com>
On Thu, 2012-03-08 at 10:16 -0500, nullv@gmx.com wrote:
> Hi,
>
> I have the following rules on my router/gateway:
>
> *nat
> :PREROUTING ACCEPT
> :INPUT ACCEPT
> :OUTPUT ACCEPT
> :POSTROUTING ACCEPT
> -A POSTROUTING -d 93.186.25.52/32 -m comment --comment "bb" -j SNAT --to-source 41.94.39.49-41.94.39.51
> -A POSTROUTING -s 10.0.0.0/8 -p tcp -m tcp --dport 53 -m comment
> --comment "domain" o eth0 -j SNAT --to-source 41.94.39.49-41.94.39.51
^^^^ Is this what you really have? Or is it a typo
in your email? Obviously it should be "-o" not "o"
> -A POSTROUTING -s 10.0.0.3/32 -j o eth0 -j SNAT --to-source
> 41.94.39.49-41.94.39.51
Have you tried removing all the other SNAT lines apart from this one?
And also seeing if this is definitely matching by setting a LOG target
first?
<snip>
> -A FORWARD -j REJECT --reject-with icmp-host-prohibited
Does it work if you remove this line?
Everything else looks fine to me, assuming that all your IP addresses
etc. are correct.
Andy
prev parent reply other threads:[~2012-03-08 17:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 15:16 IPTable Rules... again nullv
2012-03-08 17:29 ` Andrew Beverley [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=1331227793.30413.438.camel@andrew-desktop \
--to=andy@andybev.com \
--cc=netfilter@vger.kernel.org \
--cc=nullv@gmx.com \
--cc=users@lists.fedoraproject.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;
as well as URLs for NNTP newsgroup(s).