Re: Kernel module request: MASQuerade on FR

2008-08-24 Thread Michael 'Mickey' Lauer
Am Sonntag 24 August 2008 21:10:45 schrieb Fredrik Wendt:
> mån 2008-08-11 klockan 00:54 +0200 skrev Holger Freyther:
> > On Sunday 10 August 2008 11:50:57 Fredrik Wendt wrote:
> > > iptables said it didn't recognize match/rule/target but SNAT worked
> > > with the same arguments. Can't get my FreeRunner to boot now
> > > (completely dead) so I can't give you the exact error message. I will
> > > as soon as my FreeRunner comes back to life again. :/
> > >
> > > The command I used would've been
> > > 'iptables -t nat -A POSTROUTING -s 192.168.0.200 -j MASQUERADE '
> > >
> > >
> > > 'iptables -t nat -A POSTROUTING -s 192.168.0.200 -j SNAT --to-source
> > > 83.84.85.68' however did work.
> >
> > I'm sitting in a ICE to berlin and use GPRS through the neo to send this
> > mail.
> >
> > iptables -t nat -I POSTROUTING -o ppp+ -j MASQUERADE works fine after
> > installing iptables and allowing ip_forwarding.
> >
> > z.
>
> Hi. No, I can't get this to work out of the box (fso-testing image from
> shr.bear...):
>
> # iptables -t nat -I POSTROUTING -o ppp+ -j MASQUERADE
> iptables: No chain/target/match by that name
> # lsmod
> Module  Size  Used by
> iptable_nat 5860  0
> nf_nat 16118  1 iptable_nat
> nf_conntrack_ipv4  14344  2 iptable_nat
> nf_conntrack   58312  3 iptable_nat,nf_nat,nf_conntrack_ipv4
> ip_tables  10344  1 iptable_nat
> x_tables   11812  2 iptable_nat,ip_tables
> # ls /lib/modules/2.6.24/kernel/net/ipv4/netfilter
> ip_tables.ko
> iptable_filter.ko
> iptable_nat.ko
> nf_conntrack_ipv4.ko
> nf_nat.ko
> # ls /lib/modules/2.6.24/kernel/net/netfilter
> nf_conntrack.ko
> x_tables.ko
> #
>
> What am I missing?

Please install kernel-module-ipt-masquerade. Next version of FSO will include 
this by default.

-- 
:M:

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Kernel module request: MASQuerade on FR

2008-08-24 Thread Fredrik Wendt
mån 2008-08-11 klockan 00:54 +0200 skrev Holger Freyther:
> On Sunday 10 August 2008 11:50:57 Fredrik Wendt wrote:
> 
> > iptables said it didn't recognize match/rule/target but SNAT worked with
> > the same arguments. Can't get my FreeRunner to boot now (completely
> > dead) so I can't give you the exact error message. I will as soon as my
> > FreeRunner comes back to life again. :/
> >
> > The command I used would've been
> > 'iptables -t nat -A POSTROUTING -s 192.168.0.200 -j MASQUERADE '
> >
> >
> > 'iptables -t nat -A POSTROUTING -s 192.168.0.200 -j SNAT --to-source
> > 83.84.85.68' however did work.
> 
> I'm sitting in a ICE to berlin and use GPRS through the neo to send this mail.
> 
> iptables -t nat -I POSTROUTING -o ppp+ -j MASQUERADE works fine after 
> installing iptables and allowing ip_forwarding.
> 
> z.


Hi. No, I can't get this to work out of the box (fso-testing image from
shr.bear...):

# iptables -t nat -I POSTROUTING -o ppp+ -j MASQUERADE
iptables: No chain/target/match by that name
# lsmod
Module  Size  Used by
iptable_nat 5860  0 
nf_nat 16118  1 iptable_nat
nf_conntrack_ipv4  14344  2 iptable_nat
nf_conntrack   58312  3 iptable_nat,nf_nat,nf_conntrack_ipv4
ip_tables  10344  1 iptable_nat
x_tables   11812  2 iptable_nat,ip_tables
# ls /lib/modules/2.6.24/kernel/net/ipv4/netfilter
ip_tables.ko
iptable_filter.ko
iptable_nat.ko
nf_conntrack_ipv4.ko
nf_nat.ko
# ls /lib/modules/2.6.24/kernel/net/netfilter
nf_conntrack.ko
x_tables.ko
#

What am I missing?

/ Fredrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Kernel module request: MASQuerade on FR

2008-08-10 Thread Holger Freyther
On Sunday 10 August 2008 11:50:57 Fredrik Wendt wrote:

> iptables said it didn't recognize match/rule/target but SNAT worked with
> the same arguments. Can't get my FreeRunner to boot now (completely
> dead) so I can't give you the exact error message. I will as soon as my
> FreeRunner comes back to life again. :/
>
> The command I used would've been
> 'iptables -t nat -A POSTROUTING -s 192.168.0.200 -j MASQUERADE '
>
>
> 'iptables -t nat -A POSTROUTING -s 192.168.0.200 -j SNAT --to-source
> 83.84.85.68' however did work.

I'm sitting in a ICE to berlin and use GPRS through the neo to send this mail.

iptables -t nat -I POSTROUTING -o ppp+ -j MASQUERADE works fine after 
installing iptables and allowing ip_forwarding.

z.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Kernel module request: MASQuerade on FR

2008-08-10 Thread Fredrik Wendt
Somebody in the thread at some point said:
> | Hi.
> |
> | I want to use the FreeRunner as a GPRS modem for my laptop. I can
> | successfully setup SNAT, but MASQUERADE would be even better (since the
> | GPRS connection is rather flaky and SNAT drops/looses track of the
> | laptop's connections when ppp0 goes down).
> |
> | Is this completely out of scope? Should I ask for this in Trac?
> 
> This should already exist, I find -->
> 
> CONFIG_IP_NF_TARGET_MASQUERADE=m
> 
> Is there something else needed in the config?

iptables said it didn't recognize match/rule/target but SNAT worked with
the same arguments. Can't get my FreeRunner to boot now (completely
dead) so I can't give you the exact error message. I will as soon as my
FreeRunner comes back to life again. :/

The command I used would've been
'iptables -t nat -A POSTROUTING -s 192.168.0.200 -j MASQUERADE '


'iptables -t nat -A POSTROUTING -s 192.168.0.200 -j SNAT --to-source
83.84.85.68' however did work.

/ Fredrik Wendt


signature.asc
Description: Detta är en digitalt signerad	meddelandedel
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Kernel module request: MASQuerade on FR

2008-08-09 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| Hi.
|
| I want to use the FreeRunner as a GPRS modem for my laptop. I can
| successfully setup SNAT, but MASQUERADE would be even better (since the
| GPRS connection is rather flaky and SNAT drops/looses track of the
| laptop's connections when ppp0 goes down).
|
| Is this completely out of scope? Should I ask for this in Trac?

This should already exist, I find -->

CONFIG_IP_NF_TARGET_MASQUERADE=m

Is there something else needed in the config?

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkid+80ACgkQOjLpvpq7dMpADgCdHTXDmw8iQyANPhKTSNyD7ydX
M6cAnAyf/5+6NEuiVUcrfnWAFdYH2DdF
=Yfyi
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community