All of lore.kernel.org
 help / color / mirror / Atom feed
* NATing on a single interface?
@ 2006-10-26  9:08 Philip Pemberton
  2006-10-26 15:45 ` Robert Nichols
  0 siblings, 1 reply; 8+ messages in thread
From: Philip Pemberton @ 2006-10-26  9:08 UTC (permalink / raw)
  To: netfilter

Hi,
   I've got an ADSL router with a built-in firewall. It's a nice little box,
the ADSL front-end is solid (and ADSL2+ compatible, which is nice). Only
problem is, it has a maximum of 16 firewall port-forward rules and no support
for time-based firewalling. What I'd like to do is make the router forward
packets onto my firewall box, then have iptables deal with NATing and stuff 
like that.

   At the moment, the network looks like this:
ADSL ---SpeedtouchUSB@ppp0---> FIREWALL ---eth0---> Other machines

   What I want is something more like:

         10.1.0.2  10.1.0.1   10.0.0.1      10.0.0.0/16
ADSL Router ----------> Firewall ------(nat)-----> LAN

ADSL Router: 10.1.0.2/16
Firewall: 10.0.0.1/16 and 10.1.0.1/16
LAN: 10.0.0.0/16

   Ordinarily I'd fit another NIC into the firewall, then use Arno's IPtables 
script to do the NATing from eth0 (external) to eth1 (internal). Problem is, 
the firewall server can't take another NIC - it's only got one onboard and no 
facility to add another (the server is a Linksys NSLU2 - an embedded server in 
other words) unless I add a USB adapter, which would be a bit less than ideal 
for LAN routing (I hear the USB adapters are quite slow and prone to packet loss).

   So what I'd like to do is have the DSL router forwarding to the firewall 
server, then have the firewall server do NATing and firewalling for the entire 
LAN subnet, all on a single interface. Is this doable, or do I really need to 
add another Ethernet interface?

   I've read a few IPtables HOWTOs and I just don't understand how it's all 
supposed to work (which is why I used the Arno script in the first place)...

Thanks.
-- 
Phil.                         |  (\_/)  This is Bunny. Copy and paste Bunny
usenet06@philpem.me.uk        | (='.'=) into your signature to help him gain
http://www.philpem.me.uk/     | (")_(") world domination.
If mail bounces, replace "06" with the last two digits of the current year.



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

end of thread, other threads:[~2006-10-27 20:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-26  9:08 NATing on a single interface? Philip Pemberton
2006-10-26 15:45 ` Robert Nichols
2006-10-26 20:44   ` Philip Pemberton
2006-10-26 23:52     ` Robert Nichols
2006-10-27  9:09       ` Philip Pemberton
2006-10-27 14:40         ` Robert Nichols
2006-10-27 19:33           ` Port forwarding fun (was NATing on a single interface?) Philip Pemberton
2006-10-27 20:26             ` Philip Pemberton

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.