All of lore.kernel.org
 help / color / mirror / Atom feed
From: Askar <askarali@gmail.com>
To: "lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: Re: Sharing Limited Internet Connection
Date: Fri, 2 Sep 2005 16:07:06 +0500	[thread overview]
Message-ID: <a0f69e505090204074a5f0dbb@mail.gmail.com> (raw)
In-Reply-To: <4317FB85.2030209@my-mail.ch>

All you have to do on your linux gateway
# enable ip forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

#iptables nat rule goes as..
#use snat if you have static ip
iptables -t nat -A POSTROUTING -j SNAT --to xx.xxx.xxx.xx 
# use MASQ if you get dynamic ip
iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE


On client side make this route/gateway machine as default gateway.


hope this will helps.

regards

Askar
On 9/2/05, Ruprecht Helms <rhelms@my-mail.ch> wrote:
> 
> TestMail wrote:
> > Hello List!
> >
> > My ISP said i can only connect 1 PC in my DSL account (is this 
> true????).
> > If it is not true how can i share it using iptables???
> 
> Configure your gateway as proxy with nat.
> 
> Regards,
> Ruprecht
> 
> 
> ------------------------------------------------------------------------------------------
> Ruprecht Helms IT-Service & Softwareentwicklung
> 
> Tel./Fax +49[0]7621 16 99 16
> Web: htp://www.rheyn.de
> 
> 
> 
> 


-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)

  reply	other threads:[~2005-09-02 11:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-02 17:17 Sharing Limited Internet Connection TestMail
2005-09-02  2:39 ` /dev/rob0
2005-09-02 14:57   ` Eduardo Spremolla
2005-09-05 17:52   ` TestMail
2005-09-02  7:13 ` Ruprecht Helms
2005-09-02 11:07   ` Askar [this message]
2005-09-03  4:19     ` David Leangen
2005-09-03  4:39       ` /dev/rob0
2005-09-02 15:02 ` Tom Sullivan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a0f69e505090204074a5f0dbb@mail.gmail.com \
    --to=askarali@gmail.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.