Results 1 to 5 of 5

Thread: Windows Filesharing behind a Linux DHCP server

  1. #1
    Newbie
    Join Date
    Jun 2006
    Posts
    2

    Cool Windows Filesharing behind a Linux DHCP server

    My college campus just implemented Cisco's Clean Access system. To save my windows box from all the red tape, I used a known workaround: I set up a Linux DHCP server (Fedora Core 4); CA does not recognize the Windows pc behind the Linux box, and I don't have to install CA to use my Windows box anymore. Yay!

    However, I am having one problem: My friends cannot see my MS box on the network.
    How would I get Windows filesharing to work properly behind the Linux DHCP server? What ports do I have to forward, and what do I have to do to make the Windows machine discoverable/pingable? Finally, would that defeat the whole purpose of setting up the server and allow Clean Access to recognize my Windows machine?

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760
    port forwarding or vpn. I would say hamachi would be your best bet for your clients.

  3. #3
    Newbie
    Join Date
    Jun 2006
    Posts
    2

    Re

    I do not want to use a VPN or Hamachi, as it defeats the whole point: I need my friends to be able to easily access my shared files, sans VPN configuration, sans Hamachi connections. I need my friends to be able to just click Run> *insert computer name here*, not to install and configure Hamachi or set up a VPN connection.

    I tried port forwarding by inputting the following commands:
    iptables -t nat -A PREROUTING -p udp --dport 137:138 -i eth0 -j DNAT --to *insert IP address here*
    iptables -t nat -A PREROUTING -p tcp --dport 139 -i eth0 -j DNAT --to *insert IP address here*

    However, my computer still does not appear on the network, nor can you ping it, nor can you connect to it.

    Help?

  4. #4
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    Your point of running Linux server is to hide your Windows box, so that your Windows box won't be visible on the Network of your Uni.

    There are possible ways to do the sharing although it may somewhat complicate things. What you can do is run Samba sever on your Linux box, mount your Windows share on the samba server and in turn let your friends' mount your Linux's Samba share on their box.

    If you want to know what port to forward to, you can check out /etc/services file. That should tell you what ports are reserved for what service. Also, instead of using iptables in raw form, you can install something like Firestarter firewall and let it handle all the coding while you work on the GUI of it. It makes it much simpler to do things.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  5. #5
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760
    Quote Originally Posted by GettoPhilosopher
    I do not want to use a VPN or Hamachi, as it defeats the whole point: I need my friends to be able to easily access my shared files, sans VPN configuration, sans Hamachi connections.
    The VPN is what makes it possible. By using a gateway such as NAT, you require a VPN or port forwarding. However since you are on DHCP, that can complicate things more than what installation of hamachi would be. In essence port forwarding is made practically impossible when the host is on a DHCP lease.

    Possible (overkill I think) workarounds:

    1. Setup your own DHCP lan for them to connect to. WLAN routers will do the job.
    2. Use FTP
    3. Use SFTP
    4. Setup a secure website that grabs the files off your computer

    These are your choices. The first one, hamachi, is as simple as it gets.

Similar Threads

  1. How to disable DNS updates on LINUX DHCP server?
    By nsvora in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 11-23-2006, 03:47 AM
  2. Talking to a Windows Server from Linux
    By cga in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 09-15-2005, 06:07 PM
  3. Linux to replace Windows 2k domain server
    By iniva in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 02-07-2005, 12:44 PM
  4. Disable Wireless Router DHCP and Use Linux DHCP Server?
    By omnivore in forum Linux - General Topics
    Replies: 0
    Last Post: 01-19-2005, 04:18 PM
  5. How to setup Linux as Client on a Windows server
    By Galahad in forum Linux - Hardware, Networking & Security
    Replies: 11
    Last Post: 11-26-2004, 04:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •