All of lore.kernel.org
 help / color / mirror / Atom feed
* Newbie question about NAT and forwarding
@ 2006-09-06 20:52 felix
  2006-09-06 22:24 ` Danny Rathjens
  0 siblings, 1 reply; 10+ messages in thread
From: felix @ 2006-09-06 20:52 UTC (permalink / raw)
  To: netfilter

I have a small network with a gateway machine which has two interfaces
to the internet.  One is (yes!) ppp0, a dialup account, the other is a
broadband connection.  Some of the network machines behind the gateway
have real static addresses, some have 192.168.* or similar local net
addresses.  The dialup account has static real addresses for those
local net machines which need internet access, but the broadband
connection gets its address dynamically from DHCP.  As much as it
would be nice to ditch the dialup account altogether, that is not
practical at the moment.

I would like all the local net machines to not be aware of there being
multiple connections, to route all SMTP traffic, both in and out, thru
the dialup account, and to route all other traffic thru the broadband
connection.

I think I know how to route based on the protocol.  For SMTP, that is
made easier by not needing to NAT anything.  But I need NAT for all
other traffic using the broadband connection, right? since it has only
a single synamically assigned DHCP address.  This is where I get
confused.

What iptables commands would I used to route non-SMTP packets between,
say, eth0 (local net, static real addresses) and eth1 (broadband DHCP)?

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


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

end of thread, other threads:[~2006-09-07 16:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-06 20:52 Newbie question about NAT and forwarding felix
2006-09-06 22:24 ` Danny Rathjens
2006-09-06 22:59   ` felix
2006-09-06 23:52   ` Pascal Hambourg
2006-09-07  0:24     ` felix
2006-09-07  1:37       ` Pascal Hambourg
2006-09-07  2:43         ` felix
2006-09-07  9:20           ` Pascal Hambourg
2006-09-07 14:12             ` felix
2006-09-07 16:27     ` Danny Rathjens

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.