Share a 3G connection on Ubuntu 8.10?

Uli

Expert Member
Joined
May 22, 2006
Messages
1,270
Reaction score
0
Hi

Is it possible to share a 3G connection on ubuntu 8.10 with windows PC's on a network? I will be using a E620 pci card.
All info would be appreciated.
 
That's a good question actually. Although I honestly don't think you can.
 
Can-could. Ive been meaning to test this with LTS. Lets us know how you proceed...
 
think its the same setup as internet connecton sharing try get your hands on application called firestarter
 
Ok I have a problem right now. When I connect the router/network hub ubuntu can access the internet through 3G when I have both connections on. Is there a way of making 3G the default internet connection??
 
Dude, rather use IPTABLES.

Very simply google iptables + masquerade.

Also, how are your clients getting their addresses? DHCP? static?
 
Well I have a Telkom modem and its all setup on default.
 
Woah, ok give us a full schematic of your network. Detailing role and setup of each.
 
peon can you help me use iptables firestarter not working for me i have two pcs i use a usb modem i have even tried the ics built into mandriva i got a connection between the two pcs but then i couldnt browse on either
 
Ok I got a server with Ubuntu 8.10, That I would like to use as file server as well as a 3G internet connection to the other windows computers on the network.
 
peon can you help me use iptables firestarter not working for me i have two pcs i use a usb modem i have even tried the ics built into mandriva i got a connection between the two pcs but then i couldnt browse on either

Ok I assume your setups are like such

Clients ----> Linux Gateway ----> Internet

If your clients can ping your gateway, statically set your client pc ip configuration so that the DNS and default gateway are your Linux boxes. Dont worry about iptables and firestarter configuration just yet.

Ok I got a server with Ubuntu 8.10, That I would like to use as file server as well as a 3G internet connection to the other windows computers on the network.

Dumb question Uli but you not talking about LTS Ubuntu 8.10 now? Once again, test of your clients can ping their linux box. If they can set their DNS and default gateway to use the linux box. Currently you have a DSL router thats probably giving out DHCP ip's.

Also you've made sure the server can connect to the internet via 3G? So no problems there? If not then its just a routing issue. Critically make sure IP forwarding is enabled.
_____________________________________

IP Forwarding

Run as root



sysctl -w net.ipv4.ip_forward=1



To enable it in system startup, edit the file /etc/sysctl.conf and set



net.ipv4.ip_forward = 1
_____________________________________

Moving onto IPTABLES

Lets flush out the tables (Ubuntu only)
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT


Run command as root

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

service iptables save

_____________________________________


Give it a shot. I would strongly advise first testing and pinging and finding where the communications stop before making changes to IPtables that could take you backwards.
 
my setup is like cellphone modem -----> linux --- -> other pc got no idea how to do what you just said its amazing how there are so many guides on the internet each with its own version of how to do it
 
Start by opening the Terminal or 'command prompt' on your linux box and enter those commands.
 
hehe... well I am not winning to be honest. I try howtoforge and then it doesnt work.
Let me tell you I have a ubuntu desktop 8.10 that I got from ubuntu , installed ssh, samba. But I cant seem to comunicate with the windows PC's. I want a file server as well as use the ubuntu machine as my internet server with 3G. I want Linux to work for me realy! But I just cant seem to get it... I dont know what I am doing wrong....
If you could advise me from the start what exactly to do to get this all working then Id be very happy. I have even got a coppy of SME server to try that to work. Please ehlp if you can. Otherwise I am going to be forced to use my last XP cd witch I really would not like to do , plus I would love to actually know how to use Linux. Oh also I am using a Telkom Mega 200VWR router moden as my network hub. Could that be the problem? I dont know if i need to change the router settings or what but currently they all on default. Also everytime I try commands in ubuntu as root exaple .ect.network/interfaces then all I get is no such file exists. I dont know what to do anymore and am at a stage that I am actually wanting to install XP just to make life easier formy self.....
 
Hmmm ok.

Ive never done this. Let me hook up my laptop. I got internal 3g(Dell D630) and will share that on LAN. Once completed I will let you know of each step.

Hold fast! The force is with you! :D
 
Top
Sign up to the MyBroadband newsletter
X