file sharing with shared internet connection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a box, MYBOX, with two NICs. NIC A should act as dhcp client,
connecting to a LAN1. NIC B acts as a dhcp-server for LAN2, forwarding the
traffic on NIC A.

On NIC A I enabled "Internet Connection Sharing" through NIC B. This
achieved what I wanted: NIC B hands out IP'addresess for computers connected
to it while NIC A still accepts IP addresses given to it from external DHCP
servers. Traffic is also routed as intended. Only problem is file sharing. As
long as NIC A has "Internet connection sharing" enabled, it is not possible
to map shares on MYBOX from computers on LAN1 (ie: \\MYBOX\MYSHARE). It is no
problem to map external shares from MYBOX (ie:\\EXTBOX\SOME_SHARE). As soon
as I disable "Internet connection sharing" on NIC A file sharing works fine.

Is there something I could do to make file sharing work while sharing the
internet connection?

Thanks in advance.
Kind regards
PÃ¥l-Aanund
 
Hi,

I have a box, MYBOX, with two NICs. NIC A should act as dhcp client,
connecting to a LAN1. NIC B acts as a dhcp-server for LAN2, forwarding the
traffic on NIC A.

On NIC A I enabled "Internet Connection Sharing" through NIC B. This
achieved what I wanted: NIC B hands out IP'addresess for computers connected
to it while NIC A still accepts IP addresses given to it from external DHCP
servers. Traffic is also routed as intended. Only problem is file sharing.. As
long as NIC A has "Internet connection sharing" enabled, it is not possible
to map shares on MYBOX from computers on LAN1 (ie: \\MYBOX\MYSHARE). It is no
problem to map external shares from MYBOX (ie:\\EXTBOX\SOME_SHARE). As soon
as I disable "Internet connection sharing" on NIC A file sharing works fine.

Is there something I could do to make file sharing work while sharing the
internet connection?

Thanks in advance.
Kind regards
Pål-Aanund

Internet Connection Sharing is extremely limited and is not "smart
enough" to do want you want. You should consider a system of routers
to do what you are wanting.
 
PAAS said:
Hi,

I have a box, MYBOX, with two NICs. NIC A should act as dhcp client,
connecting to a LAN1. NIC B acts as a dhcp-server for LAN2, forwarding the
traffic on NIC A.

On NIC A I enabled "Internet Connection Sharing" through NIC B. This
achieved what I wanted: NIC B hands out IP'addresess for computers connected
to it while NIC A still accepts IP addresses given to it from external DHCP
servers. Traffic is also routed as intended. Only problem is file sharing. As
long as NIC A has "Internet connection sharing" enabled, it is not possible
to map shares on MYBOX from computers on LAN1 (ie: \\MYBOX\MYSHARE). It is no
problem to map external shares from MYBOX (ie:\\EXTBOX\SOME_SHARE). As soon
as I disable "Internet connection sharing" on NIC A file sharing works fine.

Is there something I could do to make file sharing work while sharing the
internet connection?

Thanks in advance.
Kind regards
Pål-Aanund

What exactly happens when you try to map shares on MYBOX from
computers on LAN1 with ICS enabled? If there's an error message, what
does it say?

What do you see if you run this command in a command prompt window
(Start > Run > cmd) on another LAN1 computer?

net view \\MYBOX

Is there a firewall program on MYBOX? Some firewalls, such as free
ZoneAlarm, are incompatible with ICS on the host computer.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
Internet Connection Sharing is extremely limited and is not "smart
enough" to do want you want. You should consider a system of routers
to do what you are wanting.

I've set up lots of networks that do File and Printer Sharing with
ICS, and I don't know of any limitations that would prevent it or
prevent mapping network drives. What limitations have you seen?
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
Steve Winograd said:
What exactly happens when you try to map shares on MYBOX from
computers on LAN1 with ICS enabled? If there's an error message, what
does it say?

What do you see if you run this command in a command prompt window
(Start > Run > cmd) on another LAN1 computer?

net view \\MYBOX

Is there a firewall program on MYBOX? Some firewalls, such as free
ZoneAlarm, are incompatible with ICS on the host computer.

Thanks Steve! You lead me to the source of the problem. I have only windows
firewall enabled and it has File and printer sharing among its allowed
exceptions. When not using ICS, the firewall causes no problems. With ICS and
windows firewall I get "System error 53 has occurred. The network path was
not found" when using net view. When I disable the firewall on MYBOX, net
view lists my public shares and file sharing works fine even with ICS enabled.

Is there a magic setting that allows me to have the windows firewall enabled
while also having ICS enabled?

Kind Regards,
PÃ¥l-Aanund
 
PAAS said:
Is there a magic setting that allows me to have the windows firewall enabled
while also having ICS enabled?

Well we found the magic setting :-). Had to change the scope of the File and
Printer Sharing exception from "My network" to "Any computer". Now file
sharing works fine with firewall and ICS enabled.

For those with similar problems: In Windows firewall dialog select the
Exceptions tab and double click on "File and Printer Sharing" in the Program
and Services box. Then click on the "Change scope" button in the "Edit a
Service" dialog that pops up.

Thanks again to Steve for pointing out the firewall as possible culprit.

Kind Regards,
PÃ¥l-Aanund
 
PAAS said:
Well we found the magic setting :-). Had to change the scope of the File and
Printer Sharing exception from "My network" to "Any computer". Now file
sharing works fine with firewall and ICS enabled.

For those with similar problems: In Windows firewall dialog select the
Exceptions tab and double click on "File and Printer Sharing" in the Program
and Services box. Then click on the "Change scope" button in the "Edit a
Service" dialog that pops up.

Thanks again to Steve for pointing out the firewall as possible culprit.

Kind Regards,
Pål-Aanund

You're welcome, Pål-Aanund.

However, I see a problem with the solution that you found. Setting
the scope to "Any computer" could allow computers on the Internet to
access the host computer through the firewall's File and Printer
Sharing exception, which defeats the purpose of having a firewall in
the first place.

I just set up and tested ICS between two XP SP2 computers. The
Windows Firewall is enabled on each computer, and the scope for each
of the four services for the firewall's File and Printer Sharing
exception is set to "My network (subnet) only". Each computer can
access the other computer's shared folders.

I don't know why the same "My network (subnet) only" setting doesn't
work for you.

What is each computer's LAN IP address? The host should be
192.168.0.1, and the client should be in the range
192.168.0.2-192.168.0.254.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
Back
Top