gutsy and regular PCs on edubuntu lan
David Van Assche
dvanassche at gmail.com
Wed Oct 31 18:20:12 GMT 2007
Hi,
I recently reinstalled my server system to 64bit so I have recent
knowledge of what needs to be modified to make a 2nic setup work with normal
and thin client computers being able to get internet access. I'll paste my
setup files here:
/etc/network/interfaces:
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.42
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if
installed
dns-nameservers 192.168.1.1 80.58.61.250
auto eth1
iface eth1 inet static
address 192.168.0.254
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
up iptables-restore < /etc/ltsp/nat.conf
Then I simply followed the thinclienthowtonat file in the edubuntu wikis...
Finally, and perhaps this is where there are issues from other people, I set
up shorewall to masquarade from eth0 to eth1... by setting up a file called
"masq" containing the following:
#####################################################################
#INTERFACE SUBNET ADDRESS PROTO PORT(S)
IPSEC
eth0 eth1
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
Of course you should probably set up your rules and all that, but there are
some good examples on shorewall's site and various howto pages on the net.
In any case, with that you will get it working with 2 nics guaranteed...
Setting up a local dns server will also improve connection times drastically
in the normal client computers...
Kind Regards,
David Van Assche
On 10/31/07, Gavin McCullagh <gmccullagh at gmail.com> wrote:
>
> Hi,
>
> On Wed, 31 Oct 2007, Philippe Rousselot wrote:
>
> > I unfortunately cannot modify my config as the modem as to stay in
> > router mode for other reasons. nevertheless thanks and i will try this
> > another time.
>
> Perhaps you mean it must run DHCP for other reasons?
>
> It should certainly be possible to keep it in router mode and turn off the
> DHCP server. Any basic dsl router I've seen will do that. Edubuntu's
> dhcp
> server can then hand out the router's ip as gateway address.
>
> Gavin
>
>
> --
> edubuntu-users mailing list
> edubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/edubuntu-users/attachments/20071031/a4f88491/attachment.htm
More information about the edubuntu-users
mailing list