Sharing 3G internet connection over ethernet
Posted: Fri Jan 31, 2014 12:36 pm
Hi, I am new to Pi and to the Linux. I want to create a simple bridge from ppp0 (which is CDMA modem connected by USB) to eth0. I tried a lot of tutorials out there and nothing seems to work.
I have a cdma connection up and running and I can browse internet on Raspbian. However I haven't figured out how to share this connection through ethernet. I set eth0 to static ip address by editing /etc/network/interfaces and after that I ping a router ,where I want to share internet to, without a problem.
After that I set iptables like this: iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
And start forwarding like this: sysctl net.ipv4.ip_forward=1
After this step my Raspberry runs at 100% communicating with router like crazy, but on router I have no internet. Can someone help me? I am trying to figure this out for like 2 days without any success and I really need to get this running : (
Thanks for any suggestions!
I have a cdma connection up and running and I can browse internet on Raspbian. However I haven't figured out how to share this connection through ethernet. I set eth0 to static ip address by editing /etc/network/interfaces and after that I ping a router ,where I want to share internet to, without a problem.
After that I set iptables like this: iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
And start forwarding like this: sysctl net.ipv4.ip_forward=1
After this step my Raspberry runs at 100% communicating with router like crazy, but on router I have no internet. Can someone help me? I am trying to figure this out for like 2 days without any success and I really need to get this running : (
Thanks for any suggestions!