Re: [ILUG] What HOWTOs for SOHO system

From: Vincent Cunniffe (vincent at domain diva.ie)
Date: Mon 02 Sep 2002 - 11:51:41 IST


Dermot Daly wrote:
> Hi All,
> I'm trying to set up the following:
>
> 1. A Linux server running with a modem for internet connectivity and an
> ethernet card for LAN connectivity
> 2. Other LAN pcs with ethernet cards, using the Linux server for
> DNS/DHCP etc.
>
> Basically, I want to route any non LAN traffic through the ppp0.
>
> I've got some of the way, but like a similar post earlier about modem
> problems, when I am connected to the internet with eht0 up, the routing
> is all incorrect and noting goes out through ppp0 (eh0 must be the
> default route or something).
>
> Is there standard "out of the box" Linux tools that will carry out
> portmapping on behalf of the LAN PCs ? (I'm planning on non routable
> addresses 192.168.x.x for the LAN, routed outwards via the ppp0
> interface).
>
> Can someone point me at the right HOWTOs or routing documentation I need
> to follow ?

http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/

Everything you need to know for configuring your gateway to provide
full NAT (network address translation) for all of your client PCs.

If you have do have a default route set on your server currently,
then remove it : it is unnecessary when your server has an ethernet
card with an IP address on the same subnet as your clients.

Most transient communications systems such as PPP will not override
an existing default route because they assume that it should be there.

I doubt you actually require portmapping, if all you need is internet
access, but if you do, then iptables/ipchains (depending on your
kernel version) will do all of that out-of-the-box on pretty much
any recent Linux distribution.

Regards,

Vin



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:35 GMT