<br><br><div class="gmail_quote">On Tue, Jan 25, 2011 at 11:32 AM, Mateen Fugawala <span dir="ltr">&lt;<a href="mailto:mateen.fugawala@hotmail.com">mateen.fugawala@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How do I get my clients to the internet when connected to the VPN? I believe<br>
that is disabled by default?<br>
<div class="im"><br></div></blockquote><div><br>Below rules will do the job. <br><br><b>DSTVPNNETWORK/16</b> is the network you access through VPN tunnel . This rule should be in placed first.<br><br>      iptables -t nat -A POSTROUTING -o eth1 -d DSTVPNNETWORK/16 -j ACCEPT<br>
<br><br>Then, <br>      <br>     iptables -t nat -A POSTROUTING -o eth1 -s YOURLAN/24 -j SNAT --to-source extipofvpngateway <br><br>Pls replace <b>YOURLAN/24</b> and <b>extipofvpngateway</b>  with yours. Pls also note <b>eth1</b> is connected to the internet. Pls replace with yours and be happy. If u r happy, I will rejoice it. <br>
<br><br><br><br><br><br><br><br> </div><br></div><br><br clear="all"><br>-- <br>Thank you<br>Indunil Jayasooriya<br><br>