LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to Share ppp connection over wifi (https://www.linuxquestions.org/questions/linux-networking-3/how-to-share-ppp-connection-over-wifi-675213/)

bigbrovar 10-08-2008 09:48 PM

How to Share ppp connection over wifi
 
Hi guys am quite new here and am still a noob as far as linux networking goes so i need a bit of helping hands . I have a 3g modem and can connect to it using wvdial, ie it connects over ppp0. I was wondering has anyone managed to share a 3g connection using the wireless card of their laptop .
my laptop uses Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)

Any help would be great,

Regards,

estabroo 10-09-2008 09:29 AM

You should be able to turn on forwarding (echo 1 > /etc/sys/net/ipv4/ip_forward) and set the other computer to using the laptop as its default route. Then just masquerade anything going out the ppp0 interface (iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE)


All times are GMT -5. The time now is 05:28 PM.