Masquerading my internet connection

I have set up a dhcp-server network with the ip range
My netbook is the gateway
My other laptops and android phones are connecting fine to this network.(I can ping them)
(And also I am using application called hostapd which allows converting a wifi adapter into an access point and provide privileges such as WPA authentication and ssid name definition)

The above setup worked in ubuntu 12.04

The problem:

I wish to share my ppp0 usb modem internet connection by entering the following iptables rule that worked in ubuntu.

iptables -t nat -A POSTROUTING -s -o ppp0 -j MASQUERADE

It doesn’t seem to have the same effect under openSUSE 12.1

Does anyone know if this rule is correct? Is there a better way of doing masquerading in Yast? - I just need to share the internet browsing and email services.

You can set up masquerading in Yast using the Security and Users > Firewall module

Whether it’s ‘better’ or not to use Yast is debatable but it worked ok for me when I set up a machine to work as a router some time ago, couldn’t get it to work when one of the adapters was wi-fi though but it was a few opensuse versions back

iptable rules that work for me are:

iptables --flush
iptables --table nat --flush
iptables -P INPUT ACCEPT
iptables -A POSTROUTING -t nat -s -o eth0 -j MASQUERADE

Flushing the rules will strip your machine open but it was the only solution for me without spending too much time figuring out how to prioritize the rules.