Windows sharing with two network cards

Hello,
I am running OSX 10.4.11 and enables Windows file service.
I have two network cards. one is public (due to the web server) and one is private (192.x.x.x).
Is there a way to make only the 192.x.x.x accessible via the Windows file services? I don't want anyone that is a local user to be able to get to any of the shared folders via the public address. Like if they were at home or something.
Hope this makes sense.
Thanks,
Jay

Hello Jay,
Your question does make sense!
And in fact Samba (the software that delivers the Windows file service on a Mac) has configuration options to do just what you want. That's the good news. The bad news is that I don't know a way to set those configuration options from the GUI. If you are confident to use a terminal and edit configuration files by hand then you should be able to establish the Windows file service running on just one interface.
First you need to find out the real name of the interface on which the Windows file service should run. One way is to look under Apple\About this Mac\Network or in a terminal enter:
ifconfig
My Mac Mini has en0 (wired) and en1 (airport) as network interfaces. Suppose en1 is the interface on which file sharing is wanted (you should replace en1 in my example by the name of your network interface!)
Next edit the file /etc/smb.conf in a terminal by:
sudo nano /etc/smb.conf
In the [global] section add the following lines:
interfaces = en1
bind interfaces only = true
Save your edits by pressing Ctrl-O and exit the editor by pressing Ctrl-X
After restarting you can check if it works as expected.
Good luck,
Max

Similar Messages

  • Server 2003 with two network cards problems

    We have a win server 2003 with two network cards. From the server we connect using a vpn client from cisco to another server. When we do that we can NOT RDC to our server because it inherits the remote IP from the vpn connection. We installed an additional NIC. We gave an static IP to connect to our local network. How can we or is there a way to tell the vpn client to use one nic card and leave the other so we can RDC to it? thanks

    It is possible to configure server to use on nic for incoming and other for outgoing, but it is not possible when vpn client is running. Also it cannot be specified as to which card to use.

  • Datasocket does not work with two network cards

    If I have two ethernet card in a PC. The Datasocket server does not work if the second card is enabled. It keeps displaying resolving IP Address. I am wondering if there is a solution for this problem.
    Thanks 

    Thanks for you reply. One card has a static address(10.20.35.1), which is used for Data socket, and the other card uses a dynamic IP address. The card with dynamic address is only used for connecting the PC to the company’s network.
    The second card, when turned on causes the Datasocket server problem. In the Datasocket Server manager I have only two IP addresses under Permissions Groups. (10.20.35.1 and 10.20.35.11. 10.20.35.11 is the IP address of the remote PC with labview application. The Datasocket is used to transfer data between the two PC’s)
    I am wondering if my set up for hosts in Datasocket Server manager is not correct.

  • Swapping Oracle 7 installation between two network cards

    We have an NT server with two network cards for resiliance. We recently tried to swap over to the second card and run Oracle. Oracle started-up ok, but we could not connect to the database from the Aix/PC clients. The tnsnames.ora points to the hostname of the server not a hardcoded address. The hostfile on both clients and server were updated and the server could be pinged. Is there something built into the initialization config, which points to a specific network card? Any help gratefully recieved.

    Is the network up? (sudo ifconfig -a). Can you see eth0?
    From a terminal session on the server, can you ping localhost, your ip address, gateway?
    OL 5.7 boots the Oracle UEK kernel by default. You can also select the original Red Hat Kernel at startup. Does it make any difference?

  • How to web filtering via two network cards?

    I have Installed Server 2008 and two network cards
    on my pc. One LAN card for clients access and one for internet router. I need to share internet connection to my client computers with
    web filtering. So how to do that? I need to block some sites to client access.

    Hi,
    According to your description, my understanding is that you want to use the WS 2008 to share Internet connection and provide web filtering function for internal clients.
    Internal clients –(NIC1) WS 2008(NIC2) – Internet router – Internet network
    Manually assign IP address, default gateway, DNS server, etc. on NIC2. Manually assign IP address, DNS server, etc. on NIC1.
    Install Network Policy and Access Services – Routing and Remote Access Services. Detailed steps reference:
    Install and Enable the Routing and Remote Access Service
    https://technet.microsoft.com/en-us/library/cc770798(v=ws.10).aspx
    Then open Routing and Remote Access and start configuration. Enable NAT on NIC2 to transfer IP address. Detailed steps reference:
    Enable and Configure NAT
    https://technet.microsoft.com/en-us/library/dd469812.aspx
    Windows Server itself does not support web-based filter, third-party tools with application-layer firewall might be needed to realize this function. Configure WS as a router, it supports IP packet filtering, which specifies which type of traffic is allowed
    into and out of the router. Reference:
    https://technet.microsoft.com/en-us/library/cc732746(v=ws.10).aspx
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Controlling Two Network Card by LabVIEW

    Hi,
    I'm using LabVIEW 8.5 and Windows XP.
    I am intending to use LabVIEW to control a PC with 2 network cards in it.
    I want to send TCP/IP packet out from one network card,
    and receive the packet from another network card.
    Do I have to change the confguration of the XP system?
    How can I assign those two different cards to send and receive individually?
    Can anyone tell or suggest what to do for me
    Thank you very much~ ^^

    You will not be able to directly prohibit the network cards from receiving or transmitting. You can define your network routes on the PC to route the traffic in the manner you want. Each network adapter will need to have its own IP address. NI's Internet Tool kit has a few issues, most notably the FTP VIs, when using multiple NICs. In addition, any DNS requests made will be routed to the primary network card. Windows determines which interface it thinks is the primary interface. From a code perspective using the native TCP or UDP VIs you will not have to do anything special.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Two network cards configuration

    Hi
    I have problem with my network - I have two network cards and it seems they can't live both but I need them both so:
    1st card (rtl8139) is connected to cable modem and gets ip by DHCP (eth0="dhcp" in rc.conf)
    2nd card (nv forcedeth) is connected to router and gets ip by DHCP too (eth1="dhcp")
    When I start them both -> 1st and 2nd card gets good IP by DHCP but when I want to ping google.com for example packet is lost.
    What I want ? I want to use my eth0 (1st card) for internet and my 2nd card for local network.
    ##EDIT##
    My resolv.conf is 192.168.1.1 but I need DNS from 1st interface -> how to do this?
    Last edited by cpu (2007-02-22 22:46:09)

    Messy setup IMO, but anyway....
    Your faulty resolv.conf is the reason you can't ping google. Edit it manually as required, and then use the -R flag in /etc/conf.d/dhcpcd to prevent it being overwritten. DHCP on both interfaces will probably cause routing issues as well, in which case you will need the -G flag.

  • PLEASE Help on two network cards in server

    Hi all,
    (Sorry my spelling Im danish)
    We have a 10.4.5 server with 2 network cards in it. How does I get the server to route betwin the two networks so that mac's on net 1 (en0) can see mac's and printers on net 2 (en1) and visa versa
    The mac's on net 1 can see and use the server (but not print on net 2) The mac's on net 2 cant see or use the server!
    The mac's on net 1 get backuped by Retospect on the server. Retospect can't see the mac's on net 2
    How does I get this to work?

    "sudo sysctl -w net.inet.ip.forwarding=1"
    That will start forwariding immediately but woun't survive a reboot.
    In Tiger Server Admin NAT setup you can make this permanent by choosing "start Ipforwarding Only".
    (Or by adding a line to /etc/hostconfig:
    IPFORWARDING=-YES-
    Or by adding a new file /etc/sysctl.conf
    with this line in it:
    net.inet.ip.forwarding=1)
    "Devices on each network need to know how to get to the other network, and that's usually done by editing the routing table on each system."
    Not necessary. What's necessary is a static route in each Internet router that use the server IP for each LAN as the gateway/router for the other LAN.
    Example network 1: 192.168.100.0/24
    Internet router 192.168.100.1
    Server IP for that LAN 192.168.100.254
    Static route in Internet router: 192.168.200/24 gw 192.168.100.254
    Example network 2: 192.168.200.0/24
    Internet router 192.168.200.1
    Server IP for that LAN 192.168.200.254
    Static route in Internet router: 192.168.100/24 gw 192.168.200.254
    "In addition it's not common for a printer to have an option to manipulate the route table in this way"
    Correct, but you need to add the correct gw/router and netmask to the printer IP settings for this setup. This is sometimes achievable via Telneting to the printer in question to set it up (older Apple printers).
    For performance reason it could be better using a static route in each machine if the internet router doesn't send out route redirect packets.
    Some DHCP servers should be able to send out a static route to it's clients with the rest of the IP info thus making it easier to provide each machine with a static route.

  • Dbconsole configuration - two network cards

    Hi,
    I have two network cards in the Solaris server and
    Oracle 11g2 EE database server.
    One network card is used for connection to the application (data network). Connection though standard port 1521.Database configured using server name defined for Net1 card and I can connect to the Oracle database using net1 card from apps server.
    Second card is the management card (connected to the management network).
    Is it possible to use it for connection to the dbconsole installed in the database ORACLE_HOME?
    If yes, how I should configure dbconsole that I can see dbconsole web window through net2 card.
    Thanks,
    Oleg

    Messy setup IMO, but anyway....
    Your faulty resolv.conf is the reason you can't ping google. Edit it manually as required, and then use the -R flag in /etc/conf.d/dhcpcd to prevent it being overwritten. DHCP on both interfaces will probably cause routing issues as well, in which case you will need the -G flag.

  • How do I use Home Sharing with two different apple accounts?

    How do I use Home Sharing with two different apple accounts?

    Morning Saintine,
    Thanks for using Apple Support Communities.
    Home Sharing enables you to stream or transfer music, movies, TV shows, apps, and more among up to five authorized computers in your household. To do so, you will need to Turn on Home Sharing on each computer using the same Apple ID.
    Understanding Home Sharing
    http://support.apple.com/kb/HT3819
    Hope this helps,
    Mario

  • How can i pay on the apple store online with two credit cards, with two different billing addresses

    I will be greatful if you could answer me this question...
    How can i pay on the apple store online with two credit cards, with two different billing addresses?
    I know that you can use two credit cards to pay an item but the problem is that i can only put the billing address of just one of the credit cards, and since the two cards are from different people (my parents) i can't do it. They live in the same place so i don't know if i should just put one of the billing address.
    Thank you.
    PS. I don't know if this is the right community to ask this, sorry if i'm wrong.

    On the Apple Store "Payment & Pricing" page it states:
    Using more than one payment card
    You can also combine payment methods to pay for your purchase. Choose from the following combinations of credit cards and Apple Gift Cards:
    Credit card(s) - up to two
    Apple Gift Card(s) - up to eight
    Apple Gift Card(s) + one credit card
    During checkout, if you are paying with a gift card issued by a credit card company, you can combine it with one credit card.

  • Using windows vista with two users and I can only open books with adobe digital editions on one account?

    using windows vista with two users and I can only open books with adobe digital edition

    You must authorize the second computer with the same Adobe ID.
    There are sometimes issues with this registration: if you have them ....
    Sometimes ADE gets its registration/activation confused and in a semi-authorized state.
    Uninstalling and reinstalling does not help.
    Unfortunately, it often then gives misleading error messages about what is wrong.
    A common incorrect message informs you that the ID is already in use on another computer and cannot be reused.
    This can often be resolved by completely removing any authorization using ctrl-shift-D to the Library screen on ADE (cmd-shift-D if on Mac).
    Restart ADE, and then reauthorize with your (old) Adobe ID.

  • The problem with the network card.

    The problem with the network card.
    My laptop HP Pavilion dv7-1260ew network connection breaks .
    NIC is to blame .
    On that card could replace the old Intel 5100 to work with the network as a standard N.

    Pawełek wrote:
    The problem with the network card.
    My laptop HP Pavilion dv7-1260ew network connection breaks .
    NIC is to blame .
    On that card could replace the old Intel 5100 to work with the network as a standard N.
    This confusing which one are you asking about?
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • Mac Pro with two graphic card each one with two dvi output, can I extend deskop to three outputs?

    Mac Pro with two graphic card each one with two dvi output, can I extend deskop to three outputs?

    MAC OS 10.7.4  3.2GHz Quad-Core Intel Xeon processors, 12GB  of 800MHz DDR2 and 2 ATI Radeon HD 2600 XT 256MB (two dual-link DVI ports) . The problem is, I woul like to use one output as main and the three others as secondary or extended desktop but the system don't allow me use two diferent video cards this way.

  • Printer Sharing and Windows Sharing with Windows Vista

    Today I tired setting up a printer sharing network over my linksys wireless router. I turned the printer sharing on and the windows sharing on my mac. Then I launched my notebook with vista on it and installed Bonjour for Windows 1.0.3. Once the installation finished I ran the wizard and installed the shared Epson Stylus Photo 1280 printer.
    Once I finished the wizard I gave the printer a go.
    I tried printing a word document on my Vista machine using the new wireless set up and nothing happens the printer queue gains the document spools it and then it's gone. Then, I tried using Vistas Sharing set up. After setting up another printer icon (the same printer). When I go to print I get an error message.
    Also when I try accessing my shared folder from my vista machine. I use my Username and password for the login. The computer responds that my Mac Mini's username and password is incorrect. Thus, I cannot fileshare between by Mac Mini and my Vista Laptop
    What can I do to get my printer sharing and my windows sharing set up to work.
    (also, my Epson Stylus Photo 1280 Printer is hooked up to my mac mini through USB).
    Please respond
    Thank you

    Hello Joe,
    I failed the login “connection to server with username and password not possible - Failure 256”
    Some cures here...
    http://archive.macfixitforums.com/ubbthreads.php/ubb/showflat/Number/691131/site _id/1#import
    One more way to overcome stubborn printing to a Windows® printer from a Mac...
    http://iharder.sourceforge.net/current/macosx/winmacprinter/
    http://docs.info.apple.com/article.html?artnum=301397
    iFelix...
    http://www.ifelix.co.uk/tech/3020.html
    http://www.ifelix.co.uk/tech/windowsxp.html
    I did not succeed using the PC’s name - even though the workgroup is set correctly.
    Might try Bonjour for Windows...
    http://www.apple.com/downloads/macosx/apple/windows/bonjourforwindows.html
    Which may also cure the Printer Sharing problem.
    Oh. make sure Printer Sharing IS NOT set on the Mac, if it is turn it off & reboot.

Maybe you are looking for