Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th November 2012, 05:19 AM
bmentink Offline
Registered User
 
Join Date: Nov 2012
Location: Christchurch, New Zealand
Posts: 9
linuxfirefox
Shareing my 3G T-stick modem.

Hi Guys,

First time to Fedora so please be kind .....

I am trying to share my 3G network to the rest of my LAN and not having much luck.

My 3G interface is wwan0 set up by network manager and I get internet just fine.
I have my wired ethernet (em1) connected to a wireless router for the rest of the house ..

I have disabled em1 (wired) as a managed device in Network Manager else it just tries to use it as a primary interface and I have set it up to a fixed IP of 10.0.0.1, I have also set up and enabled dnsmasq to dish up 10.0.0.2 to .. 10.0.0.150 range.

I have then executed the following commands as root:

iptables -t nat -A POSTROUTING -o wwan0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

And then went into the firewall config to the masquerade setting and added the wwan0 interface and enabled it ..

However, devices plugged into the router do not get an IP .... what am I missing?

Thanks,
B
Reply With Quote
  #2  
Old 26th November 2012, 03:32 AM
bmentink Offline
Registered User
 
Join Date: Nov 2012
Location: Christchurch, New Zealand
Posts: 9
linuxchrome
Re: Shareing my 3G T-stick modem.

Anyone?

I have tried the network sharing options built into Network Manager, but I suspect that only works for Wireless, NM always tries to use the wired interface for internet which kills my 3G.

Hoping someone has an answer as this box is used to serve a SIP phone connection as well as being my general server ( .. read the wife is nagging me to get it going .... ;-)

Thanks

---------- Post added at 04:32 PM ---------- Previous post was at 07:49 AM ----------

Sorry I am used to Arch forums where someone answers in hours, even minutes, I am not used to not having any response ..
Can noone help me with such a basic task?
Reply With Quote
  #3  
Old 26th November 2012, 08:00 AM
AlexDudko Online
Registered User
 
Join Date: Mar 2007
Location: Ukraine
Posts: 381
linuxubuntufirefox
Re: Shareing my 3G T-stick modem.

Quote:
iptables -A FORWARD -i wwan0 -d 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -s 192.168.0.0/24 -i wwan0 -j ACCEPT


iptables --table nat --append POSTROUTING --out-interface wwan0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
Something like this will help.
Reply With Quote
  #4  
Old 26th November 2012, 10:23 PM
bmentink Offline
Registered User
 
Join Date: Nov 2012
Location: Christchurch, New Zealand
Posts: 9
linuxchrome
Re: Shareing my 3G T-stick modem.

Thanks, I managed to get it going on my original iptables rule .... my router was the issue, it had a stale local addres of 192.... wheras I am now using 10.... ip range ..

Thanks anyway.
Reply With Quote
Reply

Tags
modem, shareing, tstick

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Drivers and Application Software for ZTE MF627 HSDPA USB Stick Modem fuzzyresponse Hardware & Laptops 5 17th June 2010 02:29 PM
Using HUAWEI E160G HSPDA USB Stick modem in FC9 seforo Hardware & Laptops 4 12th March 2009 05:19 AM
Fedora 9 - How to Setup and Use a T-Mobile Web'n'Walk Stick/Huawei E170 3G USB Modem jaygeefed Guides & Solutions (No Questions) 0 2nd November 2008 10:30 AM
Shareing Broadband Connection qa1433 Servers & Networking 4 18th January 2005 11:03 AM
windowsxp internet shareing shadeyimpala Using Fedora 6 2nd January 2005 05:52 AM


Current GMT-time: 21:31 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat