How to Setup Internet Connection Sharing in Fedora 12

If you have a computer with two network interfaces, one wired and one wireless, it can sometimes be beneficial to share an internet connection from one interface to another.  In Microsoft Windows this is called Internet Connection Sharing (ICS).  This guide will show you how to setup the equilivant of ICS in Fedora 12 by sharing a wireless connection with a wired port of a computer.

1. Right-click the NetworkManager icon in the Gnome Panel and left-click Edit Connections… If you do not have this icon, navigate to System > Preferences > Network Connections.

2. When the Network Connections window is shown, click the wired port that you wish to share the wireless connection with and click Edit…

3. Click the IPV4 Settings tab and select Shared to other computers from the Method drop down.

4. Click Apply… and enter the root password when prompted.

Once the above steps are complete, anything connected to the wired port will be sharing an internet connection with the wireless card of the computer.


Posted

in

, ,

by

Comments

16 responses to “How to Setup Internet Connection Sharing in Fedora 12”

  1. […] See the rest here: How to Setup Internet Connection Sharing in Fedora 12 | Techerator […]

  2. Patrick Avatar
    Patrick

    Hey,

    This didn't work for me. I am trying to connect to the linux box from Windows xp. I was able to figure out the IP address of the NIC (eth0) by looking at the connection information. And, I was able to ping the linux box. But, I cannot connect to the internet. Do I need to make any changes to the wireless (wlan0)? The wireless points to FIOS router.
    Thx

    1. Dustin Patterson Avatar

      Patrick,

      I'm assuming that you have the Windows XP computer connected to the Linux box via the wired (eth0) connection. If this is correct, and you have configured the Linux box as shown in the article, then you should receive a 10.x.x.x IP address on the Windows XP computer.

      As for configuration of the wireless (wlan0) settings, they could either be set to a static IP or DHCP, with the latter probably being how you would have it set.

      Dustin

      1. Patrick Avatar
        Patrick

        Yes, your asumption is correct. The Window XP, attached via eth0, was set to use DHCP and was assigned IP in the 10.x.x.x format. But, I was surprised to see, by viewing the connection information, the IP assigned to wlan0 was 192.168.1.100. Interestingly, the Fedora box can still see the Internet, but not Windows. Could that be the problem?

        Also, I would like the linux box to have a static IP to allow me to publish sites. But, this is not a priority now. I just want to be able to connect to the Internet from Windows for now. Thanks for your help.

        1. Robsonfpp Avatar
          Robsonfpp

          try to disable iptables, or configure it to foward connections

      2. Ojnadal Avatar
        Ojnadal

        Hey, Im using Fedora 14, with dsl connection bridged. I installed vmware with windows XP, so i want to share internet conncection between my linux and the xp inside.

  3. Patrick Avatar
    Patrick

    Hey,

    This didn't work for me. I am trying to connect to the linux box from Windows xp. I was able to figure out the IP address of the NIC (eth0) by looking at the connection information. And, I was able to ping the linux box. But, I cannot connect to the internet. Do I need to make any changes to the wireless (wlan0)? The wireless points to FIOS router.
    Thx

    1. dustinpatterson Avatar

      Patrick,

      I'm assuming that you have the Windows XP computer connected to the Linux box via the wired (eth0) connection. If this is correct, and you have configured the Linux box as shown in the article, then you should receive a 10.x.x.x IP address on the Windows XP computer.

      As for configuration of the wireless (wlan0) settings, they could either be set to a static IP or DHCP, with the latter probably being how you would have it set.

      Dustin

      1. Patrick Avatar
        Patrick

        Yes, your asumption is correct. The Window XP, attached via eth0, was set to use DHCP and was assigned IP in the 10.x.x.x format. But, I was surprised to see, by viewing the connection information, the IP assigned to wlan0 was 192.168.1.100. Interestingly, the Fedora box can still see the Internet, but not Windows. Could that be the problem?

        Also, I would like the linux box to have a static IP to allow me to publish sites. But, this is not a priority now. I just want to be able to connect to the Internet from Windows for now. Thanks for your help.

  4. NABA Avatar
    NABA

    i have the Windows XP computer connected to the Linux box via the wired (eth1) connection i share the connection but what is the gateway on the xp computer

  5. NABA Avatar
    NABA

    i have the Windows XP computer connected to the Linux box via the wired (eth1) connection i share the connection but what is the gateway on the xp computer

  6. Drstockton Avatar
    Drstockton

    Good how to.
    Clients can also connect to the second router via wireless if it is wireless…Why? if you already have one?
    I use to connect through a long range connection (250+ yards) using a Grid parabolic dish antenna and rtl8187. I used ICS to share the connection with the rest of the guest house.
    Helpful info: When i did this with XP, The ethernet cable to the second router(coming out of the computer sharing the wireless connection) had to be connected to the internet port, since Vista, the cable has to be connected to the LAN ports.. took me a long time to work this one out…

  7. Drstockton Avatar
    Drstockton

    Good how to.
    Clients can also connect to the second router via wireless if it is wireless…Why? if you already have one?
    I use to connect through a long range connection (250+ yards) using a Grid parabolic dish antenna and rtl8187. I used ICS to share the connection with the rest of the guest house.
    Helpful info: When i did this with XP, The ethernet cable to the second router(coming out of the computer sharing the wireless connection) had to be connected to the internet port, since Vista, the cable has to be connected to the LAN ports.. took me a long time to work this one out…

  8. Manikumar85 Avatar
    Manikumar85

    Hey, i need the reverse of it. I have a wired internet connection on eth0 and i want to share with other computers over wlan0. Is it possible.

  9. Balamahendran Avatar
    Balamahendran

    Thanks dude it’s works (fedora 15) for me and my friend are happy now.. thanks once for nice usefull article 🙂

  10. david matthews Avatar

    in the latest version of fedora ( i think it’s 16, I froget)

    the gnome version, just open your firewall settings and turn on “masquerading” for eth+ and wlan+  works for me, I can now use my xbox360 (old verison) on wifi! 😀

Leave a Reply