Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-24-2005, 01:42 PM   #1
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Rep: Reputation: 15
Need help configuring internet access through LAN

I am running a home LAN with one linux machine (FC3 running Samba 3.0.10-1.FC3), and two windows machines (WinXP and Win95).

Both, the linux box and the WinXP box have separate cable access to the internet. Both also share a LAN connection which is working well. File & printer sharing and messenging is good.

I have now added a Win95 box (so that my son can play his old Win95 games on it) and I would like to have it access the internet through my linux box. At present, I can see Win95 box with samba, and he is able to see the linux box through windows.

Static address of linux box: windy:
static address of WinXP box: broca:
static address of Win95 box: fishstick:

Here is the samba configuration from my linux box:

# Global parameters
workgroup = HARNANET
server string = samba server
interfaces = eth0, lo
bind interfaces only = Yes
password server = none
guest account = michael
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
server signing = auto
paranoid server security = No
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
domain logons = Yes
os level = 33
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap ssl = no
message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
guest ok = Yes
hosts allow =,,,
cups options = raw

comment = Home Directories
valid users = %S
read only = No
browseable = No

comment = All Printers
path = /var/spool/samba
printer admin = @printadmins
printable = Yes
use client driver = Yes
browseable = No

comment = global share - all users
path = /samba/shared
read only = No
create mask = 0666
directory mask = 0777

comment = public on windy
path = /home/public
valid users = michael, gloria, colin
read only = No
case sensitive = No
msdfs proxy = no

comment = HP LaserJet 1100 on broca
path = smb://michael:*******/@harnanet/broca/HPLaserJ
admin users = @printadmins
read only = No
printable = Yes
printer name = HPLaserJ
use client driver = Yes

comment = HP LaserJet 5L on windy
path = /var/spool/samba
admin users = @printadmins
read only = No
printable = Yes
printer name = hplj5l
use client driver = Yes

Is is possible (and safe) to allow the Win95 box to access the internet through my linux box? I would like to be able to put safeguards on where he accesses, and would like to have a log of where he actually goes when surfing.

I am not sure what to do, and do not want to mess up my samba configuration (again) trying on my own. I appreciate any help offered.
Old 03-24-2005, 02:00 PM   #2
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
First off, samba has nothing to do with internet access. Samba is a program that allows computers to share files. You may want to do a search on turning linux into a router.

If you don't already have 2 Network interface cards in the linux box, you should consider getting one. In order for the linux router to pass internet access onto your win95 machine you need to run software like "iptables". I'm sure there are many easy alternatives to configuring the router, I just cant think of a suitable one right now.

So do a search "turning linux into a router" and something should come up, its been answered many times. good luck.
Old 03-24-2005, 02:42 PM   #3
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Thank you for educating me more about samba. I use samba to file and print share with the Win95 and WinXP boxes, and obviously made a mistake in thinking that I needed it for sharing internet access as well.

I have two nics in the linux box. One (eth1) connects to the cable internet. The other (eth0) connects to the home lan. I also have iptables running, and have put the output from iptables-save below:

# Generated by iptables-save v1.2.11 on Thu Mar 24 14:36:24 2005
:OUTPUT ACCEPT [7573:743794]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -i eth0 -p tcp -m multiport --dports 139,445 -j ACCEPT
-A INPUT -i eth0 -p udp -m multiport --dports 137,138 -j ACCEPT
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -i eth0 -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p ipv6-crypt -j ACCEPT
-A RH-Firewall-1-INPUT -p ipv6-auth -j ACCEPT
-A RH-Firewall-1-INPUT -d -p udp -m udp --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -s -p tcp -m tcp --sport 515 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

Excusing the samba part - which you set me right on - is it possible for the Win95 box to access the internet through the LAN? If so, how would I do this? Thank you for your help.
Old 03-26-2005, 06:59 AM   #4
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
squid works - but need help with squidGuard

I have managed to load and run squid 2 on my fc3 box and adjust my iptables so that my win98 box can access the internet. I used the instructions from: . to set up squid-2

I also set up some rudimentary parental filtering on the win98 box by removing IE, downloading Firefox, and installing the blockxxx extension.

I have downloaded and installed squidGuard (squidguard-1.2.0-2.1.fc3.rf.i386.rpm) but I cannot figure out how to configure it properly so that it runs with squid 2. Can anyone help me?


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
configuring for internet thru lan jared78 Linux - General 4 05-11-2005 07:13 PM
configuring internet connection thru lan jared78 Linux - Networking 5 05-08-2005 10:51 AM
Problem when configuring 2 NICs for internal LAN and cable internet mailavj Linux - Networking 24 04-07-2005 10:42 AM
configuring machine for internet access duenasg Linux - Networking 6 01-06-2005 03:00 PM
Configuring LAN To Connect to Internet on Mandrake johnleemk Linux - Networking 1 10-06-2003 11:42 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:45 PM.

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