All of lore.kernel.org
 help / color / mirror / Atom feed
* problem with hostB wifi0 -> aDSL modem wifi0 -> hostA wifi0 -> hostA eth0 -> hostA ppp0 -> aDSL modem bridge --- Not MASQUERADEing...
@ 2007-01-22 12:32 unauthorized
  2007-01-22 12:48 ` unauthorized
  0 siblings, 1 reply; 3+ messages in thread
From: unauthorized @ 2007-01-22 12:32 UTC (permalink / raw)
  To: netfilter

Hello,

	I am trying to figure out why my current MASQUERADEing is not working.  It may not even be related to netfilter, but that's why I'm asking.  I might just have missed something (can't think of anything though).  The setup is as follows:

There are 2 switches involved in this network.

Switch1 is a typical netgear 10/100 switch.
Switch2 is built into the wireless aDSL modem.
aDSL modem has 1 wireless interface (172.25.25.100).

hostA is running linux 2.6.17.
hostA has 1 ethernet interface (eth0) via Switch1 (192.168.0.9).
hostA has a psuedo interface for pppoe via eth0.
hostA has 1 wireless interface (ath0) via aDSL modem wifi0 (172.25.25.10).
hostA is the router for all networks.
hostA is the firewall for all network.

hostB is running linux 2.6.17.
hostB has 1 wireless interface (eth1) via aDSL modem wifi0 (172.25.25.99).

hostC is running linux 2.6.17.
hostC has 1 ethernet interface (eth0) via Switch1 (192.168.0.129).


Now to explain the problem.  All traffic from anywhere to anywhere is ACCEPTed (for testing purposes), all traffic out ppp0 is MASQUERADEd.
If I am coming from any 192.168.0.0/24 to anywhere MASQUERADING works just fine.
If I am coming from any 172.25.25.0/24 to 192.168.0.0/24 the connections work just fine.
If I am coming from any 172.25.25.0/24 to anything through ppp0 to anywhere !192.168.0.0/24,!172.25.25.0/24 (eg: external internet site) it does not MASQUERADE.

I can send my rules if need be.  I'll sanitize them with the above IP address layout to make it easier.  I'm not sure if attachments are allowed.  Anyway do I need to do something special (inside or outside) with netfilter / iptables in order to allow traffic from a wifi interface to an ethernet interface (bridge?)?  I can't even run on hostA:
ping -I ath0 <external internet site>
as that fails.

Thanks,

Chris-


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

* Re: problem with hostB wifi0 -> aDSL modem wifi0 -> hostA wifi0 -> hostA eth0 -> hostA ppp0 -> aDSL modem bridge --- Not MASQUERADEing...
  2007-01-22 12:32 problem with hostB wifi0 -> aDSL modem wifi0 -> hostA wifi0 -> hostA eth0 -> hostA ppp0 -> aDSL modem bridge --- Not MASQUERADEing unauthorized
@ 2007-01-22 12:48 ` unauthorized
  2007-01-23 10:03   ` unauthorized
  0 siblings, 1 reply; 3+ messages in thread
From: unauthorized @ 2007-01-22 12:48 UTC (permalink / raw)
  To: netfilter

On Mon, 22 Jan 2007 23:32:32 +1100
unauthorized@internode.on.net wrote:

< I can't even run on hostA:
> ping -I ath0 <external internet site>
> as that fails.

I forgot to mention that I do however see traffic leaving ppp0 destined for <external internet site> while using tcpdump.

Chris-


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

* Re: problem with hostB wifi0 -> aDSL modem wifi0 -> hostA wifi0 -> hostA eth0 -> hostA ppp0 -> aDSL modem bridge --- Not MASQUERADEing...
  2007-01-22 12:48 ` unauthorized
@ 2007-01-23 10:03   ` unauthorized
  0 siblings, 0 replies; 3+ messages in thread
From: unauthorized @ 2007-01-23 10:03 UTC (permalink / raw)
  To: netfilter

On Mon, 22 Jan 2007 23:48:07 +1100
unauthorized@internode.on.net wrote:

> I forgot to mention that I do however see traffic leaving ppp0 destined for <external internet site> while using tcpdump.

And it was obviously too late, because I had a look this morning, and a colleague of mine pointed out a specific rule that I had forgotten to apply to the correct subnet leaving ppp0.  Stupid case of yy,p:wq!

Chris-


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

end of thread, other threads:[~2007-01-23 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-22 12:32 problem with hostB wifi0 -> aDSL modem wifi0 -> hostA wifi0 -> hostA eth0 -> hostA ppp0 -> aDSL modem bridge --- Not MASQUERADEing unauthorized
2007-01-22 12:48 ` unauthorized
2007-01-23 10:03   ` unauthorized

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.