Sharing your iburst connection under Linux

fergus

Expert Member
Joined
Dec 13, 2004
Messages
1,514
Reaction score
5
Location
Cape Town, South Africa
Anybody attempted this or know where I can find out how to do it. I have a laptop with a UTC and another pc. On my laptop when using windows I have ICS setup and working. Now I want to have basically the same working on my laptop when I'm using Linux (Kubuntu) but I can't find the icon where you right click and go 'Enable Internet Connection Sharing' :p. So I invite all resident Linux guru's to share their hard earned knowledge and show me the way of enlightment :).
 
Windows ICS is dastardly unfriendly with any other OS's... I have never seen an example of this working succesfully, I bet it is either rare or impossible, so google is your best bet.

otherwise ipcop + old, cheap computer is your best option.

good luck!
 
slimothy said:
dave where the **** did you get to

whoops, yeah, perhaps I was a little too dismissive of ICS (I think that's what slim was getting at).

try setting the default route of your linux box to the ip of the ICS machine.
 
Under Linux this is known as IP forwarding. This is typically how you enable it:
echo 1 > /proc/sys/net/ipv4/ip_forward

...you need to be root...

You also need to have NAT running on that Linux machine. This is how you would do it using ipchains:
/sbin/ipchains -A forward -s 192.168.22.0/24 -d 0.0.0.0/0 -i ppp0 -j MASQ

Ubuntu probably uses the newer iptables, so rather use this then:
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Hope this helps...

You are running a firewall, right?
 
privet said:
Under Linux this is known as IP forwarding. This is typically how you enable it:
echo 1 > /proc/sys/net/ipv4/ip_forward

...you need to be root...

You also need to have NAT running on that Linux machine. This is how you would do it using ipchains:
/sbin/ipchains -A forward -s 192.168.22.0/24 -d 0.0.0.0/0 -i ppp0 -j MASQ

Ubuntu probably uses the newer iptables, so rather use this then:
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Hope this helps...

You are running a firewall, right?
Thanks privet I'll try that out.

Firewall? I couldn't find the icon where you right click to enable firewall :o

Unless Ubuntu comes with one installed. If I'm not mistaken the Linux firewall is called ipchains but thats about all I know about it.

UPDATE
Oh my gosh! I just realized! This is my 500th post peeps!!

By the power of MyADSL!! I have the power to be master!!

/fergus pulls out his sword-o-bones with lightning flashing in background and jumps on his Battle Cat (He-man style) and charges off to go combat the Dark Forces of Aye-Dee-Ess-Ell

Doh! I wanted to post that in thread killer :(
 
Last edited:
fergus said:
Anybody attempted this
all the time

fergus said:
I'm using Linux (Kubuntu) but I can't find the icon where you right click and go 'Enable Internet Connection Sharing' :p
Actually Mandrake has an icon for that ;) But I prefer to do it myself, cause I'm a control freak

DaveBuchanan1337 said:
I bet it is either rare or impossible
You know I see this and go, "yeah, time to lart this post" and then you steal the solution from me

DaveBuchanan1337 said:
try setting the default route of your linux box to the ip of the ICS machine.
damn i hate you with a burning passion ;)

There are a few different firewalls for Linux. ipchains and iptables (AFAIK ipchains was replaced with iptables somewhere in the 2.4 series) are one way. Using shorewall makes configing them easy.
Another thing for sharing an internet connection I find that helps (and saves bandwidth) is running a proxy like squid
 
for the gentoo junkies out there



cd /usr/src/linux
make menuconfig
device drivers - > Networking support - > networking options - >
[ * ] Network packet filtering (replaces ip chains) enable that
under that menu IP: netfilter configuration - > < * > Iptables support (required for filtering/masq/NAT) enable that

exit , save

make && make modules_install

copy your new kernel image to your boot partition and run your boot loader (lilo or grub )

reboot with new kernel

emerge iptables.

run the following commands

echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/conf/all/forwarding
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0/0 -j MASQUERADE

then you can run iptables to save your rules

iptables-save

then

nano /etc/conf.d/local.start

add those rules in there (this is a fail safe to run the rules when your machine restarts)
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/conf/all/forwarding
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0/0 -j MASQUERADE

ctrl x to save

now give all machines on your internal network ip's in the 192.168.0.* range


enjoy shared internet
 
privet I tried your method and it sort of worked. I could ping any site from the other machine but only browse google.co.za. Any other site would be perpetually loading. Weird I know. I read somewhere else about firestarter, a gui firewall configuration tool, which I tried out and worked perfectly.

One thing which I don't get: why do I have an ibut0 interface and a ppp0 interface. This is similar to in windows where there's an iburst modem connection and then the wan connection. Anybody know whats the deal with that?
 
Its just like that, the pppoe interface doesnt exist in the physical sense, I am assuming that the ibut0 is your ethernet device?
I am not familiar with ubuntu.
I am not even sure I understand your question.
Was there a question ?
 
same as windows I guess

You have your local area connection and as soon as Iburst is connected you get a second one called Iburst ( or whatever you named it to )

one of them isnt an actual interface, Its a protocol
 
Top
Sign up to the MyBroadband newsletter
X