All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables and NAT
@ 2014-02-01  0:23 Niklas Molin
  2014-02-01 17:27 ` Bob Cochran
  0 siblings, 1 reply; 6+ messages in thread
From: Niklas Molin @ 2014-02-01  0:23 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

Hi.

I wonder if NAT is supported by iptables?

I checked the .config to see if there was any flag to enable it, but
couldn't find anything.

Thanks,
Niklas

[-- Attachment #2: Type: text/html, Size: 267 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: iptables and NAT
  2014-02-01  0:23 iptables and NAT Niklas Molin
@ 2014-02-01 17:27 ` Bob Cochran
  2014-02-01 17:53   ` Niklas Molin
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Cochran @ 2014-02-01 17:27 UTC (permalink / raw)
  To: Niklas Molin, meta-freescale

On 01/31/2014 07:23 PM, Niklas Molin wrote:
> Hi.
>
> I wonder if NAT is supported by iptables?
>
> I checked the .config to see if there was any flag to enable it, but
> couldn't find anything.

I assume you have the following enabled in menuconfig:

Networking Support->Networking Options->Network packet filtering 
framework (Netfilter)

Inside the .config file, you should be able to find the prefix 
CONFIG_NF_NAT.

In my .config, those options start ~30 lines under the string "Core 
Netfilter Configuration"


>
> Thanks,
> Niklas
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: iptables and NAT
  2014-02-01 17:27 ` Bob Cochran
@ 2014-02-01 17:53   ` Niklas Molin
  2014-02-02 16:38     ` Bob Cochran
  0 siblings, 1 reply; 6+ messages in thread
From: Niklas Molin @ 2014-02-01 17:53 UTC (permalink / raw)
  To: Bob Cochran; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

Hi Bob.

In my .config I don't have that option (any NF_NAT options).
I found EBT NAT (some new feature).
I'm compiling for an i.mx6, Distro POKY, version 1.5.1 (kernel 3.10.9)

Thanks,
Niklas


On Sat, Feb 1, 2014 at 9:27 AM, Bob Cochran <yocto@mindchasers.com> wrote:

> On 01/31/2014 07:23 PM, Niklas Molin wrote:
>
>> Hi.
>>
>> I wonder if NAT is supported by iptables?
>>
>> I checked the .config to see if there was any flag to enable it, but
>> couldn't find anything.
>>
>
> I assume you have the following enabled in menuconfig:
>
> Networking Support->Networking Options->Network packet filtering framework
> (Netfilter)
>
> Inside the .config file, you should be able to find the prefix
> CONFIG_NF_NAT.
>
> In my .config, those options start ~30 lines under the string "Core
> Netfilter Configuration"
>
>
>
>> Thanks,
>> Niklas
>>
>>
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 1968 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: iptables and NAT
  2014-02-01 17:53   ` Niklas Molin
@ 2014-02-02 16:38     ` Bob Cochran
  2014-02-03  5:32       ` Niklas Molin
  2014-02-03  6:07       ` Niklas Molin
  0 siblings, 2 replies; 6+ messages in thread
From: Bob Cochran @ 2014-02-02 16:38 UTC (permalink / raw)
  To: Niklas Molin; +Cc: meta-freescale

On 02/01/2014 12:53 PM, Niklas Molin wrote:
> Hi Bob.
>
> In my .config I don't have that option (any NF_NAT options).
> I found EBT NAT (some new feature).
> I'm compiling for an i.mx6, Distro POKY, version 1.5.1 (kernel 3.10.9)
>
> Thanks,
> Niklas


I suppose you're not enabling something in the menuconfig options that 
you need.

But you see these options in your Kconfig files, right? Look through 
them to see what you need to enable.

 From your linux source: find . -name Kconfig | xargs grep NF_NAT






>
>
> On Sat, Feb 1, 2014 at 9:27 AM, Bob Cochran <yocto@mindchasers.com
> <mailto:yocto@mindchasers.com>> wrote:
>
>     On 01/31/2014 07:23 PM, Niklas Molin wrote:
>
>         Hi.
>
>         I wonder if NAT is supported by iptables?
>
>         I checked the .config to see if there was any flag to enable it, but
>         couldn't find anything.
>
>
>     I assume you have the following enabled in menuconfig:
>
>     Networking Support->Networking Options->Network packet filtering
>     framework (Netfilter)
>
>     Inside the .config file, you should be able to find the prefix
>     CONFIG_NF_NAT.
>
>     In my .config, those options start ~30 lines under the string "Core
>     Netfilter Configuration"
>
>
>
>         Thanks,
>         Niklas
>
>
>         _________________________________________________
>         meta-freescale mailing list
>         meta-freescale@yoctoproject.__org
>         <mailto:meta-freescale@yoctoproject.org>
>         https://lists.yoctoproject.__org/listinfo/meta-freescale
>         <https://lists.yoctoproject.org/listinfo/meta-freescale>
>
>
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: iptables and NAT
  2014-02-02 16:38     ` Bob Cochran
@ 2014-02-03  5:32       ` Niklas Molin
  2014-02-03  6:07       ` Niklas Molin
  1 sibling, 0 replies; 6+ messages in thread
From: Niklas Molin @ 2014-02-03  5:32 UTC (permalink / raw)
  To: Bob Cochran; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2377 bytes --]

Hi Bob.

I can see that some of the Kconfig files in my git directory includes the
NF_NAT flags.
Should be be enough to manually add these flags in my .config file?
Or is there a reason why these flags doesn't show up in my .config file?
I assume that all flags that I can configure are already in my .config file
(if a config is not set, it will say 'not set' after the config name)?

You said that you can see them in your .config file?
Which processor are you compiling for and which kernel version?

Thanks,
Niklas



On Sun, Feb 2, 2014 at 8:38 AM, Bob Cochran <yocto@mindchasers.com> wrote:

> On 02/01/2014 12:53 PM, Niklas Molin wrote:
>
>> Hi Bob.
>>
>> In my .config I don't have that option (any NF_NAT options).
>> I found EBT NAT (some new feature).
>> I'm compiling for an i.mx6, Distro POKY, version 1.5.1 (kernel 3.10.9)
>>
>> Thanks,
>> Niklas
>>
>
>
> I suppose you're not enabling something in the menuconfig options that you
> need.
>
> But you see these options in your Kconfig files, right? Look through them
> to see what you need to enable.
>
> From your linux source: find . -name Kconfig | xargs grep NF_NAT
>
>
>
>
>
>
>
>>
>> On Sat, Feb 1, 2014 at 9:27 AM, Bob Cochran <yocto@mindchasers.com
>> <mailto:yocto@mindchasers.com>> wrote:
>>
>>     On 01/31/2014 07:23 PM, Niklas Molin wrote:
>>
>>         Hi.
>>
>>         I wonder if NAT is supported by iptables?
>>
>>         I checked the .config to see if there was any flag to enable it,
>> but
>>         couldn't find anything.
>>
>>
>>     I assume you have the following enabled in menuconfig:
>>
>>     Networking Support->Networking Options->Network packet filtering
>>     framework (Netfilter)
>>
>>     Inside the .config file, you should be able to find the prefix
>>     CONFIG_NF_NAT.
>>
>>     In my .config, those options start ~30 lines under the string "Core
>>     Netfilter Configuration"
>>
>>
>>
>>         Thanks,
>>         Niklas
>>
>>
>>         _________________________________________________
>>         meta-freescale mailing list
>>         meta-freescale@yoctoproject.__org
>>         <mailto:meta-freescale@yoctoproject.org>
>>         https://lists.yoctoproject.__org/listinfo/meta-freescale
>>         <https://lists.yoctoproject.org/listinfo/meta-freescale>
>>
>>
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 3638 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: iptables and NAT
  2014-02-02 16:38     ` Bob Cochran
  2014-02-03  5:32       ` Niklas Molin
@ 2014-02-03  6:07       ` Niklas Molin
  1 sibling, 0 replies; 6+ messages in thread
From: Niklas Molin @ 2014-02-03  6:07 UTC (permalink / raw)
  To: Bob Cochran; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2001 bytes --]

Hi Bob.

I managed to find it.
I enabled some other config (trying to figure out what I changed), then I
got the option to enable NAT.

Thanks,
Niklas


On Sun, Feb 2, 2014 at 8:38 AM, Bob Cochran <yocto@mindchasers.com> wrote:

> On 02/01/2014 12:53 PM, Niklas Molin wrote:
>
>> Hi Bob.
>>
>> In my .config I don't have that option (any NF_NAT options).
>> I found EBT NAT (some new feature).
>> I'm compiling for an i.mx6, Distro POKY, version 1.5.1 (kernel 3.10.9)
>>
>> Thanks,
>> Niklas
>>
>
>
> I suppose you're not enabling something in the menuconfig options that you
> need.
>
> But you see these options in your Kconfig files, right? Look through them
> to see what you need to enable.
>
> From your linux source: find . -name Kconfig | xargs grep NF_NAT
>
>
>
>
>
>
>
>>
>> On Sat, Feb 1, 2014 at 9:27 AM, Bob Cochran <yocto@mindchasers.com
>> <mailto:yocto@mindchasers.com>> wrote:
>>
>>     On 01/31/2014 07:23 PM, Niklas Molin wrote:
>>
>>         Hi.
>>
>>         I wonder if NAT is supported by iptables?
>>
>>         I checked the .config to see if there was any flag to enable it,
>> but
>>         couldn't find anything.
>>
>>
>>     I assume you have the following enabled in menuconfig:
>>
>>     Networking Support->Networking Options->Network packet filtering
>>     framework (Netfilter)
>>
>>     Inside the .config file, you should be able to find the prefix
>>     CONFIG_NF_NAT.
>>
>>     In my .config, those options start ~30 lines under the string "Core
>>     Netfilter Configuration"
>>
>>
>>
>>         Thanks,
>>         Niklas
>>
>>
>>         _________________________________________________
>>         meta-freescale mailing list
>>         meta-freescale@yoctoproject.__org
>>         <mailto:meta-freescale@yoctoproject.org>
>>         https://lists.yoctoproject.__org/listinfo/meta-freescale
>>         <https://lists.yoctoproject.org/listinfo/meta-freescale>
>>
>>
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 3183 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-03  6:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-01  0:23 iptables and NAT Niklas Molin
2014-02-01 17:27 ` Bob Cochran
2014-02-01 17:53   ` Niklas Molin
2014-02-02 16:38     ` Bob Cochran
2014-02-03  5:32       ` Niklas Molin
2014-02-03  6:07       ` Niklas Molin

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.