Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Payal <rpayal@indiainfo.com>
To: netfilter@lists.samba.org
Subject: Re: migration to iptables
Date: Tue, 11 Jun 2002 07:56:55 +0530	[thread overview]
Message-ID: <ae3np4$ccb$2@main.gmane.org> (raw)
In-Reply-To: <200206101431.g5AEVpU08614@vulcan.rissington.net>

Hi,
Thanks for the mails.

iptables -A POSTROUTING -o $EXT_IF -j MASQUERADE
Warning: wierd character in interface `-j' (No aliases, :, ! or *).
Bad argument `MASQUERADE'
Try `iptables -h' or 'iptables --help' for more information.

and this gave,
iptables -A forward -j MASQUERADE
iptables: No chain/target/match by that name

My aim is very simple, I just wanted the equivalent command for 
ipchains -A forward -j MASQ 
in iptables.
Thanks a lot in advance and eagerly waiting for the help.
-Payal
On Monday 10 June 2002 08:01 pm, you wrote:
> On Monday 10 June 2002 3:18 pm, Payal wrote:
> > Hi all,
> > I used to use ipchains like
> > ipchains -A forward -j MASQ
> > to share internet connection. Now on Linux kernel 2.4.18 on Mdk 8.2 I
> > want to try iptables for a while.
> > I just substitued ipchains in the above command with iptables
> > iptables -A forward -j MASQ
> > iptables v1.2.5: Couldn't load target
> > `MASQ':/lib/iptables/libipt_MASQ.so: cannot open shared object file: No
> > such file or directory
>
> You need the appropriate FORWARD rules to allow the traffic through the box
> in the first place, but this is how you masquerade the source address
> behind your Internet link address:
>
> iptables -A POSTROUTING -o $EXT_IF -j MASQUERADE
>
> You might want to read:
>
> http://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO.html
>
> http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO.html
>
>
>
> Antony.


  reply	other threads:[~2002-06-11  2:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200206101942.43007@.>
2002-06-10 14:31 ` migration to iptables Antony Stone
2002-06-11  2:26   ` Payal [this message]
     [not found]   ` <200206110754.14398@.>
2002-06-13 12:38     ` Axel Heinrici
2002-06-10 14:18 Payal

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='ae3np4$ccb$2@main.gmane.org' \
    --to=rpayal@indiainfo.com \
    --cc=netfilter@lists.samba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox