Page 7 of 9 FirstFirst ... 56789 LastLast
Results 61 to 70 of 89

Thread: Internet Connection Sharing Documentation

  1. #61
    Join Date
    Jun 2008
    Beans
    16

    Re: Internet Connection Sharing Documentation

    This guide DO work in 9.10 as well now.

    I had to confirm that the setup was correct, so I tried to share in Windows, which worked. Then I switched back to Ubuntu and also eth0/eth1, not sure if it had anything to do with it, but that's what I tried in Windows.

    Now it works!!!

    In the guide it says
    "For this example, eth0 is the network card on the client which is connected (by crossover cable) to eth1"

    a crossover cable is NOT needed here.

  2. #62
    Join Date
    Mar 2010
    Beans
    1

    Re: Internet Connection Sharing Documentation

    I am having problems to share my internet connection to windows vista using the network manager.
    I have Ubuntu 9.10 installed and a computer with two network cards. I'm trying to share internet from this computer to a laptop with windows vista.

    I tried using the Network Manager wtih the option "shared to other computers" for eth1, but windows vista is not optaining a IP automatically, so the internet is not shared. The only thing I get in windows vista, after typing ipconfig is: ip 169.254.157.158 and subnet mask 255.255.0.0, gateway and DNS fields appear empty.

    Is this a problem of the Network Manager? Should I uninstall it and install the gnome version? How can I do that?

    Is this a problem of windows vista? How can I fix it?

    I know that there is an option of configuring a fixed ip by editing the interfaces, sysctl.conf and the rc.local, but I want to try the "shared to other computers" option in the network manager first.

    Thanks a lot,
    Alexis

  3. #63
    Join Date
    Dec 2005
    Location
    Kosice, Slovakia
    Beans
    48
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Internet Connection Sharing Documentation

    Quote Originally Posted by alexisespinosa View Post
    ...
    I tried using the Network Manager wtih the option "shared to other computers" for eth1, but windows vista is not optaining a IP automatically, so the internet is not shared. The only thing I get in windows vista, after typing ipconfig is: ip 169.254.157.158 and subnet mask 255.255.0.0, gateway and DNS fields appear empty.

    Is this a problem of the Network Manager? Should I uninstall it and install the gnome version? How can I do that?
    ...
    you have to update network manager with version taken from here: https://launchpad.net/~network-manager. version in official repository behaves exactly as you wrote. temprary workaround is that you can disable and enable connection in network manager and refresh network settings on windows side, but you have to do this after every restart....

  4. #64
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Internet Connection Sharing Documentation

    Quote Originally Posted by alexisespinosa View Post
    I am having problems to share my internet connection to windows vista using the network manager.
    I have Ubuntu 9.10 installed and a computer with two network cards. I'm trying to share internet from this computer to a laptop with windows vista.

    I tried using the Network Manager wtih the option "shared to other computers" for eth1, but windows vista is not optaining a IP automatically, so the internet is not shared. The only thing I get in windows vista, after typing ipconfig is: ip 169.254.157.158 and subnet mask 255.255.0.0, gateway and DNS fields appear empty.

    Is this a problem of the Network Manager? Should I uninstall it and install the gnome version? How can I do that?

    Is this a problem of windows vista? How can I fix it?

    I know that there is an option of configuring a fixed ip by editing the interfaces, sysctl.conf and the rc.local, but I want to try the "shared to other computers" option in the network manager first.

    Thanks a lot,
    Alexis
    No, this is not a problem at all. You will need to manually enter the DNS servers (this is typical of ICS connections). If you don't know any DNS servers to use, you can use opendns servers: http://www.opendns.com/

    If you still can't connect, then add the gateway. The gateway will be your Ubuntu PCs IP. It's probably 192.168.157.1, but check ifconfig in Ubuntu to make sure.

  5. #65
    Join Date
    Oct 2007
    Beans
    125

    Re: Internet Connection Sharing Documentation

    Hi,
    I'm trying to share an Internet connection between Lucid computers and I'm having no luck so far. I'm using the "Ubuntu Internet Gateway Method (iptables)" (https://help.ubuntu.com/community/In...nectionSharing) although I configured the clients through NetworkManager rather than Terminal. Here are my settings (ifconfig on the clients confirms them):

    address 192.168.0.100 (or .101)
    broadcast 255.255.255.0
    gateway 192.168.0.254 (which is my server's internal NIC address).

    My server accesses the internet via a proxy and I've configured the clients to use that proxy.
    I know my server is configured properly because, for one session, I actually got access from one client - but I lost it when I rebooted because some other DHCP server (probably my own server which is also a thin client server) took control of it and assigned it different IPs. By the time I had figured out how to force control away from the DHCP server and keep the client's fixed address, I had somehow lost Internet.
    I will add that I definitely have network connectivity - I can use VNC from my server to view and use the clients' desktops.
    Any ideas about what I'm doing wrong?
    Thanks.

    UPDATE:
    I'm not quite sure how, but the network is now up and running - perhaps it had something to do with the fact that I redid the configuration on my server just to make sure.

    FURTHER UPDATE:
    The problem was that the iptables rules I set on the server (see https://help.ubuntu.com/community/In...nectionSharing) weren't surviving reboots and had to be saved. For information on how to do that, see the "Saving iptables" section from https://help.ubuntu.com/community/In...nectionSharing
    Last edited by dbclinton; May 26th, 2010 at 08:42 PM.

  6. #66
    Join Date
    Oct 2006
    Beans
    10

    Re: Internet Connection Sharing Documentation

    I had noticed that the iptables needed to be saved as well and just added them. Hopefully it will help people in the future. Other than that, the guide seems really good.

  7. #67
    Join Date
    Jul 2010
    Beans
    1

    Question Re: Internet Connection Sharing Documentation

    for gui method at: https://help.ubuntu.com/community/In...nectionSharing

    does this work in 10.04? or 10.10?

    I am trying to find a simple way to share my wired internet connection to wireless devices (ie creating a software wap with my wifi card) but haven't found an easy guide for this. Firestarter appears to be able to configure it, but it does not work just following the wizard.

    any suggestions?

    Thanks,
    Jim

  8. #68
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Internet Connection Sharing Documentation

    Quote Originally Posted by drofmij View Post
    for gui method at: https://help.ubuntu.com/community/In...nectionSharing

    does this work in 10.04? or 10.10?

    I am trying to find a simple way to share my wired internet connection to wireless devices (ie creating a software wap with my wifi card) but haven't found an easy guide for this. Firestarter appears to be able to configure it, but it does not work just following the wizard.

    any suggestions?

    Thanks,
    Jim
    Yes, the simple click GUI method works perfectly in all versions beyond 9.10. However, you need to be aware that your wireless card may or may not support ad-hoc networking. If you are having problems, it could simply mean that your wireless card is not capable of this.

    If you need further help, you'll be better off creating a thread in the Networking and Wireless section of the forums.

  9. #69
    Join Date
    Jun 2007
    Beans
    7

    Re: Internet Connection Sharing Documentation

    I am building a local network with 4 nodes behind a switch and 1 node connect with two network interfaces.

    Following this instruction, I still can not ping the ip outside from the nodes behind the switch.

    My local network is 192.168.1.x, the server has two network interfaces,
    eth0 pointed to switch to other nodes
    eth1 pointed to the internet

    From the frond node connect to internet directly
    Code:
    :~$ sudo iptables -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination         
    ACCEPT     all  --  192.168.1.0/24       anywhere            ctstate NEW 
    ACCEPT     all  --  anywhere             anywhere            ctstate RELATED,ESTABLISHED 
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    And
    Code:
    ~$ route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    localnet        *               255.255.255.0   U     0      0        0 eth1
    192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
    link-local      *               255.255.0.0     U     1000   0        0 eth0
    default         129.78.142.254  0.0.0.0         UG    100    0        0 eth1
    Any one can help me on solving this problem? Thanks!


    Added 18.10:

    This is solved.
    At Front Node, edit file /etc/rc.local by adding one line
    Code:
    /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth1 -j MASQUERADE
    Last edited by ganyx; October 19th, 2010 at 01:47 AM.

  10. #70
    Join Date
    Oct 2008
    Beans
    23
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Internet Connection Sharing Documentation

    hi...

    I read help.ubuntu.com/community/Internet/ConnectionSharing

    then I do all steps but the iptables...
    this is my iptables...

    sudo iptables -A FORWARD -o eth0 -i eth0 -m mac --mac-source 00:23:a4:5a:ee:67 -m conntrack --ctstate NEW -j ACCEPT
    sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
    sudo iptables -A POSTROUTING -t nat -j MASQUERADE
    I just want that mac address only can use my ICS... but, everyone can use my ICS...

    any idea??

    *I use 1 nic...
    Last edited by -genin-; December 22nd, 2010 at 11:06 AM.

Page 7 of 9 FirstFirst ... 56789 LastLast

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
  •