LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2004, 12:31 PM   #1
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 132

Rep: Reputation: 15
webmin & networking


configuration:
linux server: mandrake 10.0
eth0: internet
eth1: LAN

2 windoze pc's

how to configure internet sharing with the webmin tool ?
same for file sharing (configuring samba with webmin tool).
 
Old 08-17-2004, 03:31 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Sharing a Internet connection requires several distinct systems, although several OSes provide a ready made configuration that you can activate without knowing the details. IIRC, Mandrake 9 had a wizard to do this, although it didn't work for me.

At minimum you need:

- Valid networking settings on each machine (or use DHCP to automatically assign settings to the clients).
- Routing enabled on the gateway machine.

Routing can be handled by the Shorewall firewall, which Webmin provide an interface for. I don't know about Mandrake 10, but 9 used Shorewall as the default firewall. Shorewall is designed for gateway systems, so it enables routing automatically when it's switched on.

It is also useful to have:

- A DNS server (Webmin can manage BIND), although your machines could just use your ISP's DNS until you get it working.
- Squid proxy server, which makes Web access lightning quick. Again, your machines could just use your ISP's proxy, but Squid is well worth the time to set up.

For Samba I would recommend installing the samba-swat package, which is very easy. Once installed you can get to it's interface by typing this in a Web browser on the machine:

http://localhost:901

Samba has a zillion options, and the regular Webmin interface doesn't make it easy to spot the small number you actually need to set. Webmin is compatible with SWAT so you can switch later on.
 
Old 08-17-2004, 03:49 PM   #3
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 132

Original Poster
Rep: Reputation: 15
I tried in an earlier attempt with SWAT
in fact I'm strugling with this problem for 5 long days already,
it's horrible, I can't do my work because of this ...

eventually I reinstalled mandrake 10 and webmin.

The thing I need is masqing (I think)
I was reading that configuring my linux as dhcp server
will conflict when I make it a webserver (and that's the idea).

I know already a bit my way in webmin,
but in the networking configuration tool (rouding and gateways)
I just don't know which parameters to fill in for internet sharing.

Same for Samba.
 
Old 08-22-2004, 01:10 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
You're right that IP masquarading needs to be enabled as part of the routing. Shorewall does this automatically. Having done routing and firewalling by hand in Linux, I'm happy to use and recommend Shorewall to take care of the details for small networks. If you use the Routing and Gateways module to manually configure the routing you also need to use the Linux Firewall module to set up firewalling as well. The only reason I can think of for doing all this on a small network is for the experience, in which case you should use the command-line to get a better feel for how things work.

As regards DHCP, I think that the advice you read relates to DHCP clients. A machine whose IP is assigned randomly assigned by a DHCP server cannot be accessed by DNS name, because when the IP changes the DNS record will become invalid. The solutions are either to pay your ISP a premium for a fixed IP address for your connection, or use a third-party service like No-IP or dyndns.org, which automatically update DNS whenever the machine's IP address changes.

If the Linux box is the server, and the two Windows machines are the only other things on the network then don't bother with a DHCP server. You can put in the necessary settings on the Windows machines in 1/10 of the time it would take to configure your DHCP server.

With Samba, bear in mind that it's the most complex part of your network and won't work for you unless the IP and DNS configurations are completely right, which includes making sure that the firewall configuration allows traffic on all of the ports that SMB uses. If you're still at the stage of DHCP and routing then I recommend that you don't look at Samba until the network infrastructure is done, or you could drive yourself mad trying to figure out why it isn't working...

The most fool-proof method of moving files between Linux and Windows is SSH - the Linux box will already have the SSH server running, SSH only requires IP addresses and port 22 access on the Linux box, and the WinSCP graphical client for Windows takes two minutes to install with the usual wizard. You can then work on Samba at your leisure once you are happy with the other networking systems.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sarg & Webmin chamnane Linux - Networking 4 02-20-2009 11:42 AM
ProFTPD & Webmin Hum4ngus Linux - Newbie 11 09-06-2005 04:23 PM
Samba & Webmin the anti-riced Linux - Newbie 4 01-29-2004 09:08 AM
Webmin & Samba thelem Linux - Newbie 7 08-31-2003 01:06 PM
Webmin & FTP!?!?! DanTup Linux - Networking 20 06-26-2001 05:14 AM


All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration