Question - How can I configure my desktop to turn into a pass through for my 3G mdoem

Hey Skunks- Ok, this one is for the networking peeps out there. Any help would be great! Situation: I have a small LAN set up and is currently serviced by a 4-port D-Link Wired Router and a D-Link Switch. 1 of these machines is the administrator machine (ie, mine) and has the tricky task of needing to talk to both the LAN and the Internet. I currently use a Safaricom 3G USB Dongle Modem (Huawei e160) to connect to the internet. However, Whenever it is talking to the internet, it does not allow me to talk to the LAN over the ethernet port. Frustrating, especially when trying to research + push out updates and whatnot. What I want (I think): What I would like to do is set up an internet sharing scheme without changing the LAN configuration. Basically, I want to connect my USB modem into the admin machine, which then connects to the routers WAN port, which then shares the connection with everyone else (not for constant use, that being unrealistic, not even telling people the machines can go online...). I am new to these more advanced networking techniques and I am not quite sure if I should be looking at bridging, PPPoE or simply more advanced routing tables. This is where I need help. The admin machine will not be a dedicated router, so the most lightweight solution would be nice. And it needs to be able to talk to the LAN and the Internet at the same time. The D-Link router will serve as DHCP for the LAN. The admin machine is running Linux. Here's a nice flow chart: Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Router <--> D-Link Switch <--> LAN Machines Of course, suggestions on altering my strategy are also welcome! Cheers! -- jonathan mclean us peace corps volunteer ict specialist mtongwe, kenya

On Mon, Jun 22, 2009 at 11:59 AM, Jonathan McLean<jmmcl2@gmail.com> wrote:
Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Router <--> D-Link Switch <--> LAN Machines
if all you want is a simple / straightforward setup - i would remove the dlink router from the mix since the admin desktop can be setup to do routing. activate dhcp on the admin box, setup ip-masquerading (which is basically NAT or Network Address Translation) and then your setup would look like : Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Switch <--> LAN Machines

Ashok's suggestion works pretty well, done that before. For a linux based admin., DHCP server config is superb and eliminates any need 4 the router unless a Wi-Fi enabled laptop is to be used. You also have the option of using Squid if the admin machine has a wi-fi card. All the best. On 6/22/09, ashok+skunkworks@parliaments.info <ashok+skunkworks@parliaments.info> wrote:
On Mon, Jun 22, 2009 at 11:59 AM, Jonathan McLean<jmmcl2@gmail.com> wrote:
Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Router <--> D-Link Switch <--> LAN Machines
if all you want is a simple / straightforward setup - i would remove the dlink router from the mix since the admin desktop can be setup to do routing.
activate dhcp on the admin box, setup ip-masquerading (which is basically NAT or Network Address Translation) and then your setup would look like :
Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Switch <--> LAN Machines _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Skunkworks announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science - http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi - http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- People should know when they are conquered.

Set up your machine with 2 network cards or add a virtual interface k ----- "Jonathan McLean" <jmmcl2@gmail.com> wrote:
Hey Skunks-
Ok, this one is for the networking peeps out there. Any help would be great!
Situation: I have a small LAN set up and is currently serviced by a 4-port D-Link Wired Router and a D-Link Switch. 1 of these machines is the administrator machine (ie, mine) and has the tricky task of needing to talk to both the LAN and the Internet. I currently use a Safaricom 3G USB Dongle Modem (Huawei e160) to connect to the internet. However, Whenever it is talking to the internet, it does not allow me to talk to the LAN over the ethernet port. Frustrating, especially when trying to research + push out updates and whatnot.
What I want (I think): What I would like to do is set up an internet sharing scheme without changing the LAN configuration. Basically, I want to connect my USB modem into the admin machine, which then connects to the routers WAN port, which then shares the connection with everyone else (not for constant use, that being unrealistic, not even telling people the machines can go online...). I am new to these more advanced networking techniques and I am not quite sure if I should be looking at bridging, PPPoE or simply more advanced routing tables. This is where I need help. The admin machine will not be a dedicated router, so the most lightweight solution would be nice. And it needs to be able to talk to the LAN and the Internet at the same time. The D-Link router will serve as DHCP for the LAN. The admin machine is running Linux. Here's a nice flow chart:
Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Router <--> D-Link Switch <--> LAN Machines
Of course, suggestions on altering my strategy are also welcome!
Cheers! -- jonathan mclean us peace corps volunteer ict specialist mtongwe, kenya _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Skunkworks announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science - http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi - http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

I once setup a cyber where the billing PC was also the bridge, connected to KDN's Alvarion thingy. It had two network cards, one with a LAN IP and the other a WAN IP provided by KDN people. It was running windows and worked just fine. All the PCs on the LAN had their gateway set to the LAN IP of the 'server' and Internet Connection Sharing was activated on the server too, which BTW, forces the LAN IP to be 192.168.0.1. I dont know how to do the same on Linux. On Mon, Jun 22, 2009 at 1:48 PM, Peter Koinange < peter.koinange@ke.wananchi.com> wrote:
Set up your machine with 2 network cards or add a virtual interface
k ----- "Jonathan McLean" <jmmcl2@gmail.com> wrote:
Hey Skunks-
Ok, this one is for the networking peeps out there. Any help would be great!
Situation: I have a small LAN set up and is currently serviced by a 4-port D-Link Wired Router and a D-Link Switch. 1 of these machines is the administrator machine (ie, mine) and has the tricky task of needing to talk to both the LAN and the Internet. I currently use a Safaricom 3G USB Dongle Modem (Huawei e160) to connect to the internet. However, Whenever it is talking to the internet, it does not allow me to talk to the LAN over the ethernet port. Frustrating, especially when trying to research + push out updates and whatnot.
What I want (I think): What I would like to do is set up an internet sharing scheme without changing the LAN configuration. Basically, I want to connect my USB modem into the admin machine, which then connects to the routers WAN port, which then shares the connection with everyone else (not for constant use, that being unrealistic, not even telling people the machines can go online...). I am new to these more advanced networking techniques and I am not quite sure if I should be looking at bridging, PPPoE or simply more advanced routing tables. This is where I need help. The admin machine will not be a dedicated router, so the most lightweight solution would be nice. And it needs to be able to talk to the LAN and the Internet at the same time. The D-Link router will serve as DHCP for the LAN. The admin machine is running Linux. Here's a nice flow chart:
Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Router <--> D-Link Switch <--> LAN Machines
Of course, suggestions on altering my strategy are also welcome!
Cheers! -- jonathan mclean us peace corps volunteer ict specialist mtongwe, kenya _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Skunkworks announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science - http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi - http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Skunkworks announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science - http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi - http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

You have a routing problem. What Linux are you using (or are you using Network Manager daemon by default)? Please post the results of the following commands on: ifconfig. route -n You probably need to give your eth0 interface a static address. ppp0 obtains an address through DHCP. Then you'll have to enable packet forwarding and set up IPTABLES appropriately. This can be done using 4 commands then you'll be good to go - but you'll need results of those two commands. rgds, Bernard ________________________________ From: Jonathan McLean <jmmcl2@gmail.com> To: skunkworks@lists.my.co.ke Sent: Monday, June 22, 2009 4:59:26 AM Subject: [Skunkworks] Question - How can I configure my desktop to turn into a pass through for my 3G mdoem Hey Skunks- Ok, this one is for the networking peeps out there. Any help would be great! Situation: I have a small LAN set up and is currently serviced by a 4-port D-Link Wired Router and a D-Link Switch. 1 of these machines is the administrator machine (ie, mine) and has the tricky task of needing to talk to both the LAN and the Internet. I currently use a Safaricom 3G USB Dongle Modem (Huawei e160) to connect to the internet. However, Whenever it is talking to the internet, it does not allow me to talk to the LAN over the ethernet port. Frustrating, especially when trying to research + push out updates and whatnot. What I want (I think): What I would like to do is set up an internet sharing scheme without changing the LAN configuration. Basically, I want to connect my USB modem into the admin machine, which then connects to the routers WAN port, which then shares the connection with everyone else (not for constant use, that being unrealistic, not even telling people the machines can go online...). I am new to these more advanced networking techniques and I am not quite sure if I should be looking at bridging, PPPoE or simply more advanced routing tables. This is where I need help. The admin machine will not be a dedicated router, so the most lightweight solution would be nice. And it needs to be able to talk to the LAN and the Internet at the same time. The D-Link router will serve as DHCP for the LAN. The admin machine is running Linux. Here's a nice flow chart: Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Router <--> D-Link Switch <--> LAN Machines Of course, suggestions on altering my strategy are also welcome! Cheers! -- jonathan mclean us peace corps volunteer ict specialist mtongwe, kenya _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Skunkworks announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science - http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi - http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general

login to ur admin machine, delete the default route add a route that allows all traffic to net to go via ppp0 route all traffic on the local lan via your old Gateway route assuming 192.168.0.1 is your LAN gateway route del -net 0/0 gw 192.168.0.1 route add -net 0/0 dev ppp0 route add -net 192.168.0.0/24 gw 192.168.0.1 On 6/22/09, Bernard Owuor <b_owuor@yahoo.com> wrote:
You have a routing problem. What Linux are you using (or are you using Network Manager daemon by default)?
Please post the results of the following commands on:
ifconfig. route -n
You probably need to give your eth0 interface a static address. ppp0 obtains an address through DHCP. Then you'll have to enable packet forwarding and set up IPTABLES appropriately. This can be done using 4 commands then you'll be good to go - but you'll need results of those two commands.
rgds, Bernard
________________________________ From: Jonathan McLean <jmmcl2@gmail.com> To: skunkworks@lists.my.co.ke Sent: Monday, June 22, 2009 4:59:26 AM Subject: [Skunkworks] Question - How can I configure my desktop to turn into a pass through for my 3G mdoem
Hey Skunks-
Ok, this one is for the networking peeps out there. Any help would be great!
Situation: I have a small LAN set up and is currently serviced by a 4-port D-Link Wired Router and a D-Link Switch. 1 of these machines is the administrator machine (ie, mine) and has the tricky task of needing to talk to both the LAN and the Internet. I currently use a Safaricom 3G USB Dongle Modem (Huawei e160) to connect to the internet. However, Whenever it is talking to the internet, it does not allow me to talk to the LAN over the ethernet port. Frustrating, especially when trying to research + push out updates and whatnot.
What I want (I think): What I would like to do is set up an internet sharing scheme without changing the LAN configuration. Basically, I want to connect my USB modem into the admin machine, which then connects to the routers WAN port, which then shares the connection with everyone else (not for constant use, that being unrealistic, not even telling people the machines can go online...). I am new to these more advanced networking techniques and I am not quite sure if I should be looking at bridging, PPPoE or simply more advanced routing tables. This is where I need help. The admin machine will not be a dedicated router, so the most lightweight solution would be nice. And it needs to be able to talk to the LAN and the Internet at the same time. The D-Link router will serve as DHCP for the LAN. The admin machine is running Linux. Here's a nice flow chart:
Internet <--> USB Modem <--> Admin Desktop <--> Ethernet <--> D-Link Router <--> D-Link Switch <--> LAN Machines
Of course, suggestions on altering my strategy are also welcome!
Cheers! -- jonathan mclean us peace corps volunteer ict specialist mtongwe, kenya _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Skunkworks announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science - http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi - http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
participants (7)
-
ashok+skunkworks@parliaments.info
-
Bernard Owuor
-
Chris Mwirigi
-
Jonathan McLean
-
nyarotho kennedy
-
Peter Karunyu
-
Peter Koinange