From: Adel Belhouane <bugs.a.b@free.fr>
To: Bill <boober95@rogers.com>
Cc: Netfilter Users Mailing list <netfilter@vger.kernel.org>
Subject: Re: [Bulk] Connection tracking Cli and an ALG for DNS
Date: Sun, 15 Nov 2015 19:45:38 +0100 [thread overview]
Message-ID: <5648D2D2.7010107@free.fr> (raw)
In-Reply-To: <201511061727.37090.boober95@rogers.com>
(I didn't reply to the original sender, my bad. So sending the same message again...)
Le 06/11/2015 23:27, Bill a écrit :
> I've been looking at this a bit more and it occurs to me that it may be I
> don't need 'expect', but can use the regular connection tracking table.
>
[...]
>
> If anyone can tell me definitively if I can use a connection or an expect to
> do what I want, as described below, I'd appreciate it.
>
> /bill
>
>
> On Wednesday 04 November 2015 13:32, Bill wrote:
>> I am looking at creating a DNS_ALG using netfilter connection tracking. I
>> believe I understand most of what is needed but am having problems testing
>> the ideas using the Cli from the conntrack-tools package.
>>
>> Basically I have a setup that looks like this, a NAT gateway (with DNS) a
>> local host inside the NAT, and a remote host outside the NAT:
>>
>> local host dns/nat gateway remote host
>> 192.168.20.171 192.168.20.170 192.168.30.172
>> 192.168.30.170
>> inside ----->>> nat >>> ------ outside
>>
>> Thus local host can connect to remote host and is natted thru the gateway,
>> but remote host can't connect to local host as it is blocked by the NAT
>> gateway.
>>
>> What want ultimately is for remote to do a DNS on the gateway, and have the
>> gateway configure the NAT to allow the incoming connection. I want the
>> connection to look as if local has initiated it, ie I want it natted so the
>> connection is between the gateway and the remote host IPs on the outside.
>>
>> Ultimately I want to program this into a DNS server or build a DNS_ALG, but
>> for now I am just testing out the ideas and trying to test using the
>> conntrack-tools, but I have having limited success. I can
>> add/delete/modify connections but I haven't been able to create a conntrack
>> 'expectation'.
>>
Do you just want 192.168.20.171, behind a NAT gateway, to be the DNS server
for outside? Can you confirm that's the case or is there something else?
>> In the conntrack-tools there is a set of tests 'test.sh' file that has
>> examples, and they work, but not the 'expectation', test as it is missing
>> some options.
>>
>> What I'd like to know is given the above example, where I'd like
>> 192.168.30.172 to connect to an expectation on 192.168.30.170 and be passed
>> thru the NAT to 192.168.20.171, what are the right commends to use?
>>
>> I am pretty sure I need an 'expectation' and not a connection in one of the
>> initial state machine states, but please correct me if I am wrong.
>>
Can't you simply use the iptables DNAT target? If not, can you explain why
it won't work for your use case and for what reason you'd need something else?
>> /bill
>> --
regards,
Adel BELHOUANE
next prev parent reply other threads:[~2015-11-15 18:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 18:32 Connection tracking Cli and an ALG for DNS Bill
2015-11-06 22:27 ` [Bulk] " Bill
2015-11-15 18:26 ` Adel Belhouane
2015-11-15 18:45 ` Adel Belhouane [this message]
2015-11-19 18:52 ` Bill
2015-12-02 11:12 ` Adel Belhouane
2015-12-02 22:36 ` Bill
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=5648D2D2.7010107@free.fr \
--to=bugs.a.b@free.fr \
--cc=boober95@rogers.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 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.