Apr 20

Internet Connection Sharing (ICS) in Ubuntu/Debian

April 20, 2008 – 5:20 am

Long time back when I installed Ubuntu Fiesty Fawn, I wondered how do I get to enable intenet connection sharing to other computer connected in LAN with mine (on which ubuntu/debian is installed).

Here is one easy solution to do this, thought it would help someone as I was half mad setting up things for internet connection sharing.

Software Required:

  • Firestarter (Its basically a GUI frontend to linux built-in firewall)

Arrangement:

  • One PC(lets say Server) having installed Ubuntu and is connected to Internet using one Ethernet card (IP address is 192.168.1.2) and other Ethernet card(IP address is 192.168.0.1) is used to connect to the PC (let say its Client) having installed Windows in LAN.
  • configuration:

Ubuntu/Debian PC:

Ethernet card eth0(connected to internet): IP address- 192.168.1.2, subnet- 255.255.255.0, gateway- 192.168.1.1, dns- 208.67.222.222 and 208.67.220.220

Ethernet card eth1(connected to LAN): IP address- 192.168.0.1 subnet- 255.255.255.0

Windows PC:

Ethernet Card(connected to LAN): IP address- 192.168.0.2 , subnet- 255.255.255.0, gateway- 192.168.0.1, dns- 208.67.222.222 and 208.67.220.220

  • Now you want to share the internet connection to the Client PC whose IP address is 192.168.0.2

Steps to follow:

  • Install Firestarter from synaptic
  • Now run it from Applications > Internet > Firestarter


11.png

  • Ready for the first startup configuration..huh :)


1.png

  • Select the Ehternet card which is connected to internet, in my case it is eth0


2.png

  • Check the Enable internet connection sharing option, and now select the Ethernet Card which is connected to the LAN


3.png

  • Check the option Start firewall now, and then hit Save button


4.png

  • Firewall is up running :D


5.png

  • Now go to Edit > Preferences in the Firestarter menu, check both options under System tray icon to enable tray mode and when u hit the close button it will be minimized to the tray instead of actually exiting


6.png

  • And under Policy check on Apply policy changes immediately


7.png

  • Now enjoy the web without any hassles


Enjoyed this post? Subscribe to Full Feeds or by Email and receive free daily updates on this Blog.

  1. 2 Responses to “Internet Connection Sharing (ICS) in Ubuntu/Debian”

  2. Gravatar
    1

    great article!

    “linux firewall” == iptables?!

    By LMZ on Mon 21st Apr, 2008

  1. 1 Trackback(s)

  2. May 15, 2008: Internet Connection Sharing (ICS) in Ubuntu/Debian « A Bittersweet Life | blog

Post a Comment

April 2008
M T W T F S S
« Mar   May »
 123456
78910111213
14151617181920
21222324252627
282930