Harikrishnan's Blog

January 14, 2010

Sharing internet (PPP)

Filed under: Linux Tips — harikrishnanr @ 7:03 pm

Type the following commands in the System where internet is available
$ sysctl -w net.ipv4.ip_forward=1
$ iptables –table nat –append POSTROUTING –out-interface ppp0 -j MASQUERADE

Next command is issued in the client system
// Assigning gateway address
$ route add default gw [ip_of_system_having_net]
for example route add default gw 192.168.1.1

1 Comment »

  1. how to configure wifi in linux debian5

    Comment by Omal Bastin — April 30, 2010 @ 7:41 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.