Results 1 to 3 of 3

Thread: Internet Sharing not working samba shares are?

  1. #1
    Join Date
    Feb 2009
    Location
    Dennison, Ohio
    Beans
    9
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Internet Sharing not working samba shares are?

    Okay.

    I have internet on my ubuntu machine (eth0) I am sharing with (eth1)

    My windows computers are getting IP addresses via DHCP from the Ubuntu Machine, and I can see (and use) samba/windows shares on all computers. Internet connection is not working on any of the windows computers.

    I have eth1 set to "shared to other computers" under the IPv4 settings

    Any suggestions on how to get the internet connection sharing working?

  2. #2
    Join Date
    Feb 2009
    Location
    Dennison, Ohio
    Beans
    9
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Internet Sharing not working samba shares are?

    I'm using 10.10

  3. #3
    Join Date
    Sep 2008
    Beans
    7

    Re: Internet Sharing not working samba shares are?

    I did something similar to this with IP Tables. This is what I done.
    The setup is using CENTOS 5.6, it is a basic pppoe conenction. The modem was in bridging mode. I bridged the pppoe interface and the eth1 interface. eth1 went to a wireless hotspot.

    In terminal type
    1.) sudo iptables -A INPUT -i lo -j ACCEPT

    2.) sudo iptables -A OUTPUT -o lo -j ACCEPT

    3.) sudo iptables --table nat --append POSTROUTING --out-interface <interface> -j MASQUERADE

    <interface> is your output interface. IE the one for your router. In my case eth1. Do not use the < and > signs if your if is eth1 just put eth1.

    4.) sudo service iptables save

    5.) Sudo nano /etc/sysctl.conf
    nano is the name of your text editor. I used nano for this machine.

    6.) Add the following line to enable packet forwarding for IPv4:
    net.ipv4.conf.default.forwarding=1

    Save the file

    sudo service network restart

    When the computer reboots you may have to restart iptables by running
    sudo service iptables restart

    It should be similar, or even the same way. It should be at least in the right direction. I believe the term is called MASQUERADEING.

Tags for this Thread

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
  •