Internet Connection Sharing (ICS) in Ubuntu/Debian
Scribbled on Sunday, April 20th, 2008Long 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

OR
Enter this command in Terminal:
- Now run it from System > Administration > Firestarter

- Ready for the first startup configuration..huh

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

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

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

- Firewall is up running

- 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

- And under Policy check on Apply policy changes immediately

- Now enjoy the web without any hassles

No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.





9 Responses to “Internet Connection Sharing (ICS) in Ubuntu/Debian”
great article!
“linux firewall” == iptables?!
By LMZ on Mon 21st Apr, 2008
great article!!!
but i need more help, i still can’t connect to another laptop..
mine is ubuntu 8.10 connected to internet while the other is xp
my idea is i want have connection trough wireless or most commonly it said peer2peer/ad hoc or something..
Thanks for your help..
one more thing if xp which connected to internet, how my computer connect to xp use wireless too. my computer have xp and ubuntu. when i use xp the connection easily established. but when i use ubuntu it can’t connect to the xp who belong to my friend.
thank once again.. sorry if my grammar make you terrible..(my native language is not english)
By Purwanto S on Thu 27th Nov, 2008
thanks for your help
By Purwanto S on Thu 27th Nov, 2008
hi! i’m new to linux, can anybody guide me on how to set-up ubuntu as host and windows as client with ICS.
i have adsl modem and d-link des-1008d switch.
heres my setup and it is wired:
sysunit1
NIC0 is directly connected to ADSL model
IP: the one that provided by my ISP via DHCP
NIC1 is connected to d-link des-1008d switch
IP: 192.168.0.1
sysunit2
IP: 192.168.0.2
subnet: 255.255.255.0
gateway: 192.168.0.1
dns: ISP server IP
dhcp server: do i need to setup this?
sysunit3
IP: so on so forth
my sysunit1 is configured to DHCP (coz my ISP never gave me static IP).
am i need to use my ISP server IP as DNS server?
do i need to supply dhcp IP server in client units?
is my setup correct?
please help!
thanx in advance!
By Jose on Fri 03rd Apr, 2009
@Jose
Yes the configuration looks right. Just fill in the DNS: 208.67.222.222 and 208.67.220.220 or if your ISP has provided specifically DNS server address then use that one.
You do not need to setup anything in dhcp server.
Here is the configuration for sysunit2
IP: 192.168.0.2
subnet: 255.255.255.0
gateway: 192.168.0.1
dns: 208.67.222.222
dns: 208.67.220.220
Thats it !
By T on Wed 08th Apr, 2009
i’ll do it.
thanx T!
By Jose on Thu 09th Apr, 2009
Hi, nice tutorial
I’ve been using firstarter to share my internet connection for my nome network, it working fine, but I get a little problem here that I cannot share my file over the network anymore unless I stop firestarter. and ofcoure when i stop firestarter I cannot share my internet connection.
I use ubuntu interpid as gateway and vista homw premium as client.
Its look like firestarter block file sharing on my network.
Any idea to solve this problem?
Thank you
By alvin on Sat 09th May, 2009