From: Damion de Soto <damion@snapgear.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Router serving several inet ips
Date: Mon, 12 Jan 2004 01:57:03 +0000 [thread overview]
Message-ID: <4001FEEF.8060903@snapgear.com> (raw)
In-Reply-To: <000a01c3d780$0fa4a520$1000a8c0@keithar>
Hi Carlos,
> The iptables after '#' is what i tried.. but it did not work, it gave me
> this message:
> debian:/etc/init.d# sh nat.sh
> Warning: weird character in interface `eth1:0' (No aliases, :, ! or *).
> Warning: weird character in interface `eth1:0' (No aliases, :, ! or *).
> iptables v1.2.7a: multiple -j flags not allowed
>
> #iptables -t nat -A POSTROUTING -o eth1:0
> #iptables -A FORWARD -i eth0 -j ACCEPT -m state --state
> NEW,ESTABLISHED,RELATED
> #iptables -A FORWARD -i eth1:0 -j ACCEPT -m state --state
> ESTABLISHED,RELATED -j MASQUERADE
You need to fix those 3 lines just like the error messages say.
Iptables uses the real interface (eth1) not the aliased one.
and you can't combine two -j flags ACCEPT and MASQUERADE. I assume the -j MASQUERADE
option is a mistake and should belong elsewhere.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: damion@snapgear.com
SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809
| Custom Embedded Solutions fax: +61 7 3891 3630
| and Security Appliances web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- Free Embedded Linux Distro at http://www.snapgear.org ---
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2004-01-12 1:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-10 13:45 [LARTC] Router serving several inet ips Carlos L
2004-01-12 1:57 ` Damion de Soto [this message]
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=4001FEEF.8060903@snapgear.com \
--to=damion@snapgear.com \
--cc=lartc@vger.kernel.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