On Wed, 04 Aug 2004 13:43:34 GMT, Telstra <(E-Mail Removed)> wrote:
> G'day all
>
> I have a Debian box 3.or2 installed with 2 network cards installed, network
> card 1 hooked up to the dsl modem/router and the 2nd network card hooked to
> the switch for the LAN, firstly, what do I do to get the Debain to see the
> rest of the world, and how can the LAN computers share the internet through
> the debain box?
Where we have SDSL at work, our public static IPs are passed right through
the modem/router. Although, we are using a SonicWall behind that to NAT
our LAN and VPN our LAN onto factory WAN.
But since you have a private static IP and gateway on that interface, I
assume that your modem/router is doing NAT, that you can reach it, and
that all you need to do to access the internet is put your ISP's
nameservers in /etc/resolv.conf.
Then configure your other interface for an IP on a different private
network (like 192.168.1.x/255.255.255.0), and once you get that
communicating with Linux, configure iptables to masquerade your LAN and
enable ip_forward (echo 1 > /proc/sys/net/ipv4/ip_forward). You would end
up with double NAT (the modem/router and Linux), but with no details on
your modem/router, it is most documented and should universally work.
There is another way to possibly have both interfaces of Linux work like
one subnet (but not with same netmask), using proxy arp (which I do for my
wireless). But you have to know how different netmasks work, which is not
easy to explain in a few words.
> here is some info regarding my server
>
> eth0 Link encap:Ethernet HWaddr 00:02:A5:76:08:A9
> inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:66414 errors:0 dropped:0 overruns:0 frame:0
> TX packets:59218 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:22504815 (21.4 MiB) TX bytes:20708345 (19.7 MiB)
> Interrupt:5
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:3924 Metric:1
> RX packets:463 errors:0 dropped:0 overruns:0 frame:0
> TX packets:463 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:32237 (31.4 KiB) TX bytes:32237 (31.4 KiB)
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> localnet * 255.255.255.0 U 0 0 0 eth0
> default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
>
> thanks for your time
--
David Efflandt - All spam ignored
http://www.de-srv.com/